Commit | Line | Data |
---|---|---|
f9e31323 TT |
1 | 2008-11-24 Paul Pluzhnikov <ppluzhnikov@google.com> |
2 | ||
3 | * valprint.c (val_print_array_elements): Pass correct | |
4 | element address to val_print. | |
5 | ||
a0b7aece JK |
6 | 2008-11-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
7 | ||
8 | Fix access of an already freed memory. | |
9 | * parse.c (parse_field_expression): Call xstrdup on `*name'. | |
10 | * completer.c (expression_completer): Free fieldname. | |
11 | ||
d962ef82 DJ |
12 | 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com> |
13 | ||
14 | PR gdb/2474 | |
15 | * remote.c (remote_read_description_p): New function. | |
16 | (remote_start_remote): Try to fetch the target description | |
17 | before adding shared libraries. Try again later if the | |
18 | target is running but stopped. | |
19 | (remote_open_1): Mark extended targets as exited by default. | |
20 | (remote_read_description): Check target_has_execution. | |
21 | ||
88828b32 JG |
22 | 2008-11-24 Jerome Guitton <guitton@adacore.com> |
23 | ||
24 | * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Use | |
25 | the frame address in block instead of the return address to | |
26 | locate the mdebug PDR of the frame. | |
27 | ||
d81191fc JB |
28 | 2008-11-21 Joel Brobecker <brobecker@adacore.com> |
29 | ||
30 | Remove the unused BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK. | |
31 | ||
32 | * breakpoint.h (enum bpstat_what_main_action): Remove | |
33 | BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK. | |
34 | * breakpoint.c (bpstat_what): Delete catch_shlib_event from enum class. | |
35 | Remove the BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK column from | |
36 | variable table. | |
37 | * infrun.c (wait_for_inferior): Remove handling of | |
38 | BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK. | |
39 | ||
a9322a30 TT |
40 | 2008-11-21 Tom Tromey <tromey@redhat.com> |
41 | ||
42 | * configure: Rebuild. | |
43 | * configure.ac: Merge calls to AC_CHECK_FUNCS, AC_CHECK_HEADERS, | |
44 | AC_CHECK_DECLS, and AC_CHECK_MEMBERS. | |
45 | ||
ca30a762 TT |
46 | 2008-11-21 Tom Tromey <tromey@redhat.com> |
47 | ||
48 | * python/python-internal.h (PyGILState_Ensure): New define. | |
49 | (PyGILState_Release): Likewise. | |
50 | (PyEval_InitThreads): Likewise. | |
51 | (PyThreadState_Swap): Likewise. | |
52 | (PyEval_InitThreads): Likewise. | |
53 | * python/python.c (_initialize_python): Initialize threads. | |
54 | Release GIL. | |
55 | (eval_python_from_control_command): Acquire GIL. | |
56 | (python_command): Likewise. | |
57 | * python/python-internal.h (make_cleanup_py_restore_gil): | |
58 | Declare. | |
59 | * python/python-utils.c (py_gil_restore): New function. | |
60 | (make_cleanup_py_restore_gil): Likewise. | |
61 | ||
d2bf72c0 DE |
62 | 2008-11-20 Doug Evans <dje@google.com> |
63 | ||
64 | * frame.c (frame_debug_got_null_frame): Remove file arg. | |
65 | All callers updated. | |
66 | ||
c7e8a53c PA |
67 | 2008-11-20 Pedro Alves <pedro@codesourcery.com> |
68 | ||
69 | * infrun.c (resume): If following a fork, also reset regcache, | |
70 | gdbarch and pc. | |
71 | ||
e2fd701e DE |
72 | 2008-11-20 Doug Evans <dje@google.com> |
73 | ||
74 | * printcmd.c (sym_info): Don't print the offset if it's zero. | |
75 | ||
607cecd2 PA |
76 | 2008-11-20 Pedro Alves <pedro@codesourcery.com> |
77 | ||
78 | * infrun.c (resume): If following a fork, reread the current | |
79 | thread. Avoid dereferencing a possibly dangling pointer. | |
80 | ||
642fd101 DE |
81 | 2008-11-19 Doug Evans <dje@google.com> |
82 | ||
83 | * inferior.h (proceed_to_finish): Delete, unused. | |
84 | (stop_registers): Tweak comment. | |
85 | * infrun.c (stop_registers): Tweak comment. | |
86 | ||
9bc7b6c6 KB |
87 | 2008-11-19 Kevin Buettner <kevinb@redhat.com> |
88 | ||
89 | * frv-tdep.c (frv_skip_main_prologue): New function. | |
90 | (frv_gdbarch_init): Register frv_skip_main_prologue. | |
91 | * solib-frv.c (fetch_loadmap): Return early when no segments are | |
92 | found. | |
93 | (frv_relocate_main_executable): Return early when both interpreter | |
94 | and executable loadmap addresses are zero. | |
95 | ||
d0107bb6 BW |
96 | 2008-11-19 Bob Wilson <bob.wilson@acm.org> |
97 | ||
98 | * xtensa-config.c (rmap): Remove entries for ar32 through ar63. Add | |
99 | threadptr, scompare1, mmid, epc5, epc6, epc7, eps5, eps6, eps7, | |
100 | excsave5, excsave6, excsave7, cpenable, and vecbase registers. | |
101 | (xtensa_submask0, xtensa_submask1, xtensa_submask2) | |
102 | (xtensa_submask3, xtensa_submask4, xtensa_submask5, xtensa_submask6) | |
103 | (xtensa_submask7, xtensa_submask8, xtensa_submask9, xtensa_submask10) | |
104 | (xtensa_submask11, xtensa_submask12, xtensa_submask13, xtensa_submask14) | |
105 | (xtensa_submask15): Adjust register numbers. | |
106 | * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4. | |
107 | (xtensa_regmap_table): Add entry for scompare1. | |
108 | * regformats/reg-xtensa.dat: Remove ar32 through ar63. Add threadptr | |
109 | and scompare1. | |
110 | ||
6e5abd65 PA |
111 | 2008-11-19 Pedro Alves <pedro@codesourcery.com> |
112 | ||
113 | * remote.c (escape_buffer): New. | |
114 | (putpkt_binary, read_frame, getpkt_or_notif_sane_1): Use it. Make | |
115 | sure debug output printing a packet buffer goes through a single | |
116 | fprintf_unfiltered call. | |
117 | * utils.c (vfprintf_unfiltered): If outputting timestamps, end | |
118 | output with a newline if it wasn't going to already. | |
119 | ||
15c99a44 PP |
120 | 2008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com> |
121 | ||
122 | * maint.c (maintenance_translate_address): Fix a buglet. | |
123 | ||
2c4ad781 TJB |
124 | 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com> |
125 | ||
126 | * features/Makefile (rs6000/powerpc-isa205-32l-expedite, | |
127 | rs6000/powerpc-isa205-altivec32l-expedite, | |
128 | powerpc-isa205-vsx32l-expedite, rs6000/powerpc-isa205-64l-expedite, | |
129 | rs6000/powerpc-isa205-altivec64l-expedite, | |
130 | powerpc-isa205-vsx64l-expedite): New variables. | |
131 | * regformats/rs6000/powerpc-isa205-32l.dat: Generate. | |
132 | * regformats/rs6000/powerpc-isa205-altivec32l.dat: Generate. | |
133 | * regformats/rs6000/powerpc-isa205-vsx32l.dat: Generate. | |
134 | * regformats/rs6000/powerpc-isa205-64l.dat: Generate. | |
135 | * regformats/rs6000/powerpc-isa205-altivec64l.dat: Generate. | |
136 | * regformats/rs6000/powerpc-isa205-vsx64l.dat: Generate. | |
137 | ||
69abc51c TJB |
138 | 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com> |
139 | ||
140 | * ppc-linux-nat.c (ppc_register_u_addr): Add special case to return | |
141 | offset for full 64-bit slot of FPSCR when in 32-bits. | |
142 | (ppc_linux_read_description): Return target description with 64-bit | |
143 | FPSCR when inferior is running on an ISA 2.05 or later processor. | |
144 | * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Call | |
145 | initialize_tdec_powerpc_isa205_32l, | |
146 | initialize_tdec_powerpc_isa205_altivec32l, | |
147 | initialize_tdec_powerpc_isa205_vsx32l, | |
148 | initialize_tdec_powerpc_isa205_64l, | |
149 | initialize_tdec_powerpc_isa205_altivec64l and | |
150 | initialize_tdec_powerpc_isa205_vsx64l. | |
151 | * ppc-linux-tdep.h: Add external declaration for | |
152 | tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l, | |
153 | tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_64l, | |
154 | tdesc_powerpc_isa205_altivec64l and tdesc_powerpc_isa205_vsx64l. | |
155 | * features/rs600/powerpc-fpu-isa205.xml: New file. | |
156 | * features/rs600/powerpc-isa205-32l.xml: New file. | |
157 | * features/rs600/powerpc-isa205-64l.xml: New file. | |
158 | * features/rs600/powerpc-isa205-altivec32l.xml: New file. | |
159 | * features/rs600/powerpc-isa205-altivec64l.xml: New file. | |
160 | * features/rs600/powerpc-isa205-vsx32l.xml: New file. | |
161 | * features/rs600/powerpc-isa205-vsx64l.xml: New file. | |
162 | * features/rs600/powerpc-isa205-32l.c: Generate. | |
163 | * features/rs600/powerpc-isa205-64l.c: Generate. | |
164 | * features/rs600/powerpc-isa205-altivec32l.c: Generate. | |
165 | * features/rs600/powerpc-isa205-altivec64l.c: Generate. | |
166 | * features/rs600/powerpc-isa205-vsx32l.c: Generate. | |
167 | * features/rs600/powerpc-isa205-vsx64l.c: Generate. | |
168 | ||
c14c28ba PP |
169 | 2008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com> |
170 | ||
171 | * objfiles.h: New MULTI_OBJFILE_P macro. | |
172 | * printcmd.c (sym_info): Print object name. | |
173 | * maint.c (maintenance_translate_address): Likewise. | |
174 | ||
d5cbbe6e JB |
175 | 2008-11-18 Joel Brobecker <brobecker@adacore.com> |
176 | ||
177 | * NEWS: Document the removal of "catch load" and "catch unload". | |
178 | ||
2e74121d DE |
179 | 2008-11-17 Doug Evans <dje@google.com> |
180 | ||
181 | * infcall.c (call_function_by_hand): Fix punctuation and capitalization | |
182 | on error messages. | |
183 | ||
a7212384 UW |
184 | 2008-11-17 Ulrich Weigand <uweigand@de.ibm.com> |
185 | ||
186 | PR gdb/2250 | |
187 | * infrun.c (clear_proceed_status_thread): New function. | |
188 | (clear_proceed_status_callback): New function. | |
189 | (clear_proceed_status): In all-stop mode, clear per-thread | |
190 | proceed status of *all* threads, not only the current. | |
191 | (handle_inferior_event): In all-stop mode, if we're stepping | |
192 | one thread, but got some inferior event in another thread | |
193 | that does not cause GDB to break to the user interface, | |
194 | ensure the interrupted stepping operation continues in the | |
195 | original thread. | |
196 | (currently_stepping): Move thread-related tests to ... | |
197 | (currently_stepping_thread): ... this new function. | |
198 | (currently_stepping_callback): New function. | |
199 | ||
66bb093b VP |
200 | 2008-11-17 Vladimir Prus <vladimir@codesourcery.com> |
201 | ||
202 | Implement =thread-selected notification. | |
203 | ||
204 | * mi/mi-common.h (struct mi_interp): New, moved from ... | |
205 | * mi/mi-interp.c: ...here. | |
206 | * mi/mi-main.c (mi_execute_command): If the thread changed | |
207 | as result of command, report that. | |
208 | ||
8dd4f202 VP |
209 | 2008-11-17 Vladimir Prus <vladimir@codesourcery.com> |
210 | ||
211 | Implement continue/interrupt of thread groups. | |
212 | ||
213 | * mi/mi-main.c (proceed_thread_callback): New. | |
214 | (mi_cmd_exec_continue): If --thread-group is specified, resume all | |
215 | threads in that group. | |
216 | (interrupt_thread_callback): New. | |
217 | (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt | |
218 | all threads in that group. | |
219 | ||
6418d433 VP |
220 | 2008-11-17 Vladimir Prus <vladimir@codesourcery.com> |
221 | ||
222 | Implement '-target-detach pid'. | |
223 | ||
224 | * infcmd.c (detach_command): Make nonstatic. | |
225 | * inferior.h (detach_command): Declare. | |
226 | * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI. | |
227 | * mi/mi-cmds.h (mi_cmd_target_detach): Declare. | |
228 | * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New. | |
229 | ||
3d043ef6 VP |
230 | 2008-11-17 Vladimir Prus <vladimir@codesourcery.com> |
231 | ||
232 | Include group-id in thread-created notification. | |
233 | ||
234 | * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include | |
235 | group id in the output. | |
236 | ||
4a92f99b VP |
237 | 2008-11-17 Vladimir Prus <vladimir@codesourcery.com> |
238 | ||
239 | Notification for attach/detach. | |
240 | ||
241 | * inferior.c: Call the process observers. | |
242 | * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New. | |
243 | (mi_interpreter_init): Register the above. | |
244 | ||
3ee1c036 VP |
245 | 2008-11-17 Vladimir Prus <vladimir@codesourcery.com> |
246 | ||
247 | Implement -list-thread-groups. | |
248 | ||
249 | * thread.c (print_thread_info): New parameter pid, to print | |
250 | threads of specific process. | |
251 | * gdbthread.h (print_thread_info): New parameter pid. | |
252 | * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups. | |
253 | * mi/mi-cmds.h (mi_cmd_list_thread_groups): New. | |
254 | * mi/mi-main.c (mi_cmd_thread_info): Adjust. | |
255 | (print_one_process, mi_cmd_list_thread_groups): New. | |
256 | ||
283de25f JB |
257 | 2008-11-16 Joel Brobecker <brobecker@adacore.com> |
258 | ||
259 | Remove some unused macros related to the old load/unload catchpoints. | |
260 | ||
261 | * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME) | |
262 | (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK) | |
263 | (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used. | |
264 | ||
533be4dd JB |
265 | 2008-11-16 Joel Brobecker <brobecker@adacore.com> |
266 | ||
267 | Remove support for catch load and catch unload commands. | |
268 | ||
269 | * breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload. | |
270 | (struct breakpoint): Remove fields dll_pathname and | |
271 | triggered_dll_pathname. | |
272 | (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete. | |
273 | * breakpoint.c (ep_is_catchpoint): Remove handling of | |
274 | bp_catch_load and bp_catch_unload. | |
275 | (print_it_typical, bpstat_check_location, bpstat_what) | |
276 | (print_one_breakpoint_location, print_one_breakpoint_location) | |
277 | (user_settable_breakpoint, allocate_bp_location) | |
278 | (set_raw_breakpoint_without_location, mention, delete_breakpoint, | |
279 | (breakpoint_re_set_one, disable_command, enable_command): Likewise. | |
280 | (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints) | |
281 | (catch_load_command_1, catch_unload_command_1): Delete. | |
282 | (_initialize_breakpoint): Remove the "catch load" and "catch unload" | |
283 | command creation. | |
284 | * infrun.c (handle_inferior_event): Remove the handling of | |
285 | load/unload catchpoint events. | |
286 | ||
59205f5a JB |
287 | 2008-11-15 Joel Brobecker <brobecker@adacore.com> |
288 | ||
289 | From Jerome Guitton <guitton@adacore.com> | |
290 | * dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint): | |
291 | New function. | |
292 | (dwarf_decode_lines): Detect null file numbers. Detect the end of | |
293 | the line program sequence when no end sequence is emitted. | |
294 | ||
96967637 JB |
295 | 2008-11-15 Joel Brobecker <brobecker@adacore.com> |
296 | ||
297 | * ada-lang.c (ada_evaluate_subexp): Improve handling of integer | |
298 | type dereferencing. | |
299 | ||
da8bd9a3 DJ |
300 | 2008-11-15 Daniel Jacobowitz <dan@codesourcery.com> |
301 | ||
302 | * NEWS: Mention sparc64-linux-gnu gdbserver support. | |
303 | ||
dfb64f85 DJ |
304 | 2008-11-14 Daniel Gutson <dgutson@codesourcery.com> |
305 | ||
306 | * configure.tgt (sparc64-*-linux*): Added gdbserver support. | |
307 | * regformats/reg-sparc64.dat: New file. | |
308 | ||
59669435 TT |
309 | 2008-11-14 Tom Tromey <tromey@redhat.com> |
310 | ||
311 | PR mi/2549: | |
312 | * mi/mi-main.c (get_register): Use get_formatted_print_options. | |
313 | ||
06be140c JB |
314 | 2008-11-13 Joel Brobecker <brobecker@adacore.com> |
315 | ||
316 | * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined. | |
317 | ||
759cc328 UW |
318 | 2008-11-13 Ulrich Weigand <uweigand@de.ibm.com> |
319 | ||
320 | * auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and | |
321 | AT_EXECFN. Re-sort AT_SECURE. | |
322 | ||
73e113d4 JK |
323 | 2008-11-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
324 | ||
325 | * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'. | |
326 | ||
c31ad2a1 JB |
327 | 2008-11-13 Joel Brobecker <brobecker@adacore.com> |
328 | ||
329 | * ia64-tdep.c: Remove commented out #define. | |
330 | ||
84290f2f JB |
331 | 2008-11-12 Joel Brobecker <brobecker@adacore.com> |
332 | ||
333 | From Joel Sherrill <joel.sherrill@oarcorp.com> | |
334 | * remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter | |
335 | instead of the "gdbsim_ops" global. | |
336 | ||
de04a248 DE |
337 | 2008-11-11 Doug Evans <dje@google.com> |
338 | ||
339 | * infcall.c (call_function_by_hand): Handle inferior exit. | |
340 | ||
3c8b2eda TJB |
341 | 2008-11-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
342 | ||
343 | * remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add | |
344 | missing struct target_ops argument. | |
345 | ||
f5d9a292 JS |
346 | 2008-11-11 Joel Sherrill <joel.sherrilL@oarcorp.com> |
347 | ||
348 | * MAINTAINERS: Add myself for write after approval privileges. | |
349 | ||
de8ee0e2 TT |
350 | 2008-11-10 Tom Tromey <tromey@redhat.com> |
351 | ||
352 | * gdbtypes.c (copy_type_recursive): Clear new fields. | |
353 | ||
b03a6ea4 TT |
354 | 2008-11-10 Tom Tromey <tromey@redhat.com> |
355 | ||
356 | * cli/cli-cmds.c (source_script): Clean up full_pathname. Run | |
357 | cleanups on early return. | |
358 | ||
136d6dae VP |
359 | 2008-11-09 Vladimir Prus <vladimir@codesourcery.com> |
360 | ||
361 | Kill pthread_ops_hack | |
362 | ||
363 | * target.h (struct target_ops): Make to_attach, to_detach, | |
364 | to_create_inferior and to_mourn_inferior accept a pointer | |
365 | to struct target_ops. | |
366 | (target_attach, target_create_inferior, target_create_inferior): | |
367 | Convert from macros to function. Find the right target to | |
368 | invoke a method of. | |
369 | (find_default_attach, find_default_create_inferior): New parameter | |
370 | ops. | |
371 | * corefile.c (core_file_command): Pass target to to_detach. | |
372 | * corelow.c (core_detach): Add 'ops' parameter. | |
373 | * fork-child.c (fork_inferior): Return the pid. Allow | |
374 | init_trace_fun to be NULL. | |
375 | * inf-ptrace (ptrace_ops_hack): Remove. | |
376 | (inf_ptrace_him): Remove, moving all logic into.... | |
377 | (inf_ptrace_create_inferior): ... here. Push the target | |
378 | passed as parameter. | |
379 | (inf_ptrace_mourn_inferior, inf_ptrace_attach, inf_ptrace_detach): | |
380 | Push/pop target passed as parameter, no ptrace_ops_hack. | |
381 | (inf_ptrace_target): Don't remember result. | |
382 | * inferior.h (fork_inferior): Adjust prototype. | |
383 | * linux-nat.c (linux_nat_create_inferior, linux_nat_attach) | |
384 | (linux_nat_detach, linux_nat_mourn_inferior): New parameter ops. | |
385 | Pass it to linux_ops target. | |
386 | * linux-thread-db.c (thread_db_detach, thread_db_mourn_inferior): | |
387 | New parameter ops. Pass it to the target beneath. | |
388 | * remote.c (remote_mourn, extended_remote_mourn, remote_detach) | |
389 | (extended_remote_create_inferior): New parameter ops. Pass it | |
390 | further. | |
391 | * target.c (debug_to_attach, debug_to_detach) | |
392 | (debug_to_mourn_inferior): New parameter ops. | |
393 | (target_create_inferior): New. | |
394 | (update_current_target): Do not inherit to_attach, to_detach, | |
395 | to_create_inferiour, to_mourn_inferior. Do not default | |
396 | to_detach and to_mourn_inferior. | |
397 | (target_detach): Find the right target to use. | |
398 | (target_mourn_inferior): New. | |
399 | (find_default_attach, find_default_create_inferior): New parameter | |
400 | ops. Pass the found target when calling its method. | |
401 | (init_dummy_target): Provide fallback definition of to_detach. | |
402 | (target_attach): New. | |
403 | (debug_to_attach, debug_to_detach, debug_to_create_inferior) | |
404 | (debug_to_mourn_inferiour): New parameter ops. | |
405 | * aix-thread.c: Adjust. | |
406 | * bsd-uthread.c: Adjust. | |
407 | * gnu-nat.c: Adjust. | |
408 | * go32-nat.c: Adjust. | |
409 | * hpux-thread.c: Adjust. | |
410 | * inf-ttrace.c: Ajust. | |
411 | * monitor.c: Adjust. | |
412 | * nto-procfs.c: Adjust. | |
413 | * procfs.c: Adjust. | |
414 | * remote-m32r-sdi.c: Adjust. | |
415 | * remote-mips.c: Adjust. | |
416 | * remote-sim.c: Adjust. | |
417 | * rs6000-nat.c: Adjust. | |
418 | * sol-thread.c: Adjust. | |
419 | * win32-nat.c: Adjust. | |
420 | * dec-thread.c: Adjust. | |
421 | ||
ed406532 VP |
422 | 2008-11-09 Vladimir Prus <vladimir@codesourcery.com> |
423 | ||
424 | * thread.c (print_thread_info): Eliminate now useless checks | |
425 | for exited threads. | |
426 | ||
48fb2d97 PA |
427 | 2008-11-06 Pedro Alves <pedro@codesourcery.com> |
428 | ||
429 | * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break | |
430 | to 0. | |
431 | ||
29c87f7f PA |
432 | 2008-11-05 Pedro Alves <pedro@codesourcery.com> |
433 | ||
434 | * remote.c (notice_new_inferiors): Add a new inferior only when | |
435 | we're going to add a new thread. | |
436 | ||
e0ba6746 PA |
437 | 2008-11-05 Pedro Alves <pedro@codesourcery.com> |
438 | ||
439 | * defs.h (add_inferior_continuation) | |
440 | (do_all_inferior_continuations) | |
441 | (discard_all_inferior_continuations): Declare. | |
442 | * utils.c (add_inferior_continuation) | |
443 | (do_all_inferior_continuations) | |
444 | (discard_all_inferior_continuations): New. | |
445 | * inferior.h (struct inferior) <continuations>: New field. | |
446 | * inferior.c (free_inferior): Discard all the inferior | |
447 | continuations. | |
448 | * inf-loop.c (inferior_event_handler): Do all current inferior | |
449 | continuations. | |
450 | * infcmd.c (attach_command): Register an inferior continuation | |
451 | instead of a thread continuation. | |
452 | * infrun.c (handle_inferior_event): If stop_soon is | |
453 | STOP_QUIETLY_NO_SIGSTOP, also expect a TARGET_SIGNAL_0. | |
454 | ||
d3fd5342 PA |
455 | 2008-11-04 Pedro Alves <pedro@codesourcery.com> |
456 | ||
457 | * inf-loop.c (inferior_event_handler): On INF_ERROR and | |
458 | INF_REG_EVENT throwing, don't call target_async or pop_target. | |
459 | Call pop_all_targets_above. | |
460 | * remote.c (remote_close): Call remote_terminal_ours. Don't call | |
461 | signal or target_async. | |
462 | ||
1c9f699c DJ |
463 | 2008-11-04 Daniel Jacobowitz <dan@codesourcery.com> |
464 | ||
465 | * eval.c (evaluate_subexp_standard): Assert that there is at | |
466 | least one array dimension. | |
467 | ||
cb0362bb VP |
468 | 2008-11-03 Vladimir Prus <vladimir@codesourcery.com> |
469 | ||
470 | Make attach_command exception-safe | |
471 | * infcmd.c (attach_command): Call async_enable_stdin | |
472 | if exception is thrown. | |
473 | ||
9bc9e927 PA |
474 | 2008-11-03 Pedro Alves <pedro@codesourcery.com> |
475 | ||
476 | * gdbarch.sh (has_global_solist): Mention global breakpoints. | |
477 | * gdbarch.h: Regenerate. | |
478 | ||
50c71eaf PA |
479 | 2008-11-03 Pedro Alves <pedro@codesourcery.com> |
480 | ||
481 | * remote.c (remote_start_remote): If the solib list is global, | |
482 | fetch libraries and insert breakpoints after connecting. | |
483 | * infcmd.c (post_create_inferior): If the solist is shared between | |
484 | inferiors, no need to refetch it on every new inferior. | |
485 | (detach_command): If the shared library list is shared between | |
486 | inferiors, then don't clear it on every inferior detach. | |
487 | * gdbarch.sh (has_global_solist): New. | |
488 | * i386-dicos-tdep.c (i386_dicos_init_abi): Set | |
489 | gdbarch_has_global_solist. | |
490 | * target.c (target_pre_inferior): If the shared library list is | |
491 | shared between inferiors, then don't clear it here, neither | |
492 | invalidate the memory regions or clear the target description. | |
493 | (target_detach): If the shared library list is shared between | |
494 | inferiors, then don't remove breakpoints from the target here. | |
495 | (target_disconnect): Comment. | |
496 | * solib.c (update_solib_list): Check for null_ptid. | |
497 | * breakpoint.c (insert_breakpoints, update_global_location_list): | |
498 | If the shared library list is shared between inferiors, insert | |
499 | breakpoints even if there's no execution. | |
500 | (breakpoint_init_inferior): If the shared library list is shared | |
501 | between inferiors, don't delete breakpoints or mark them | |
502 | uninserted here. | |
503 | ||
504 | * gdbarch.c, gdbarch.h: Regenerate. | |
505 | ||
2fdf0e42 PA |
506 | 2008-10-31 Pedro Alves <pedro@codesourcery.com> |
507 | ||
508 | * inferior.h (inferior_ignoring_leading_exec_events): Delete | |
509 | declaration. | |
510 | ||
3990c31b PA |
511 | 2008-10-31 Pedro Alves <pedro@codesourcery.com> |
512 | ||
513 | * inferior.h (write_inferior_status_register): Delete. | |
514 | * infrun.c (write_inferior_status_register): Delete. | |
515 | ||
2a2546f0 | 516 | 2008-10-30 Tom Tromey <tromey@redhat.com> |
f3134b88 TT |
517 | |
518 | * value.c (coerce_array): Use check_typedef. | |
519 | ||
2a2546f0 | 520 | 2008-10-30 Tom Tromey <tromey@redhat.com> |
724b958c TT |
521 | |
522 | * cli/cli-logging.c (handle_redirections): Make a cleanup. | |
523 | * reggroups.c (maintenance_print_reggroups): Make a cleanup. | |
524 | * regcache.c (regcache_print): Make a cleanup. | |
525 | * maint.c (maintenance_print_architecture): Make a cleanup. | |
526 | * dummy-frame.c (maintenance_print_dummy_frames): Make a cleanup. | |
527 | ||
a05016c0 TT |
528 | 2008-10-30 Tom Tromey <tromey@redhat.com> |
529 | ||
530 | * utils.c (make_cleanup_close): Use make_cleanup_dtor. | |
531 | (do_close_cleanup): Don't free 'fd'. | |
532 | ||
2a2546f0 | 533 | 2008-10-30 Tom Tromey <tromey@redhat.com> |
9fe4a216 TT |
534 | |
535 | * source.c (symtab_to_fullname): Test 'r >= 0'. | |
536 | (psymtab_to_fullname): Likewise. | |
537 | (get_filename_and_charpos): Make a cleanup. | |
538 | (forward_search_command): Likewise. | |
539 | (reverse_search_command): Likewise. | |
540 | * exec.c (exec_file_attach): Close scratch_chan on failure. | |
541 | * nto-procfs.c (procfs_open): Make a cleanup. | |
542 | (procfs_pidlist): Likewise. | |
543 | (do_closedir_cleanup): New function. | |
544 | ||
c2226152 AS |
545 | 2008-10-30 Andreas Schwab <schwab@suse.de> |
546 | ||
547 | * infcmd.c (construct_inferior_arguments): Handle newlines | |
548 | specially. | |
549 | ||
fe798b75 JB |
550 | 2008-10-30 Joel Brobecker <brobecker@adacore.com> |
551 | ||
552 | * breakpoint.h (enum bptype): Delete bp_catch_exec. | |
553 | * breakpoint.c (insert_catchpoint): Remove handling for | |
554 | bp_catch_exec breakpoint kinds. | |
555 | (insert_bp_location, update_breakpoints_after_exec, remove_breakpoint) | |
556 | (ep_is_catchpoint, print_it_typical, bpstat_check_location), | |
557 | (bpstat_check_location, bpstat_what, print_one_breakpoint_location) | |
558 | (print_one_breakpoint_location, user_settable_breakpoint) | |
559 | (breakpoint_address_is_meaningful, adjust_breakpoint_address) | |
560 | (allocate_bp_location, mention, breakpoint_re_set_one) | |
561 | (disable_command, enable_command): Likewise. | |
562 | (create_exec_event_catchpoint): Delete. | |
563 | (insert_catch_exec, remove_catch_exec, breakpoint_hit_catch_exec) | |
564 | (print_it_catch_exec, print_one_catch_exec, print_mention_catch_exec): | |
565 | New functions. | |
566 | (catch_exec_breakpoint_ops): New static global. | |
567 | (catch_exec_command_1): Use create_catchpoint instead of | |
568 | create_exec_event_catchpoint to create the exec catchpoint. | |
569 | ||
f154cae1 TT |
570 | 2008-10-28 Tom Tromey <tromey@redhat.com> |
571 | ||
572 | * Makefile.in (SUBDIR_CLI_OBS): Don't mention cli-utils.o. | |
573 | (SUBDIR_CLI_DEPS): Don't mention cli-utils.c. | |
574 | (HFILES_NO_SRCDIR): Don't mention cli-utils.h. | |
575 | (cli-utils.o): Remove. | |
576 | * cli/cli-utils.c: Remove. | |
577 | * cli/cli-utils.h: Remove. | |
578 | ||
79a45b7d TT |
579 | 2008-10-28 Tom Tromey <tromey@redhat.com> |
580 | ||
581 | * varobj.c (value_get_print_value): Include valprint.h. | |
582 | (value_get_print_value): Use get_formatted_print_options. | |
583 | * value.h (struct value_print_options): Declare. | |
584 | (value_print, val_print, common_val_print, val_print_string): | |
585 | Update. | |
586 | * value.c: Include valprint.h. | |
587 | (show_values): Use get_user_print_options. | |
588 | (show_convenience): Likewise. | |
589 | * valprint.h (prettyprint_arrays, prettyprint_structs): Don't | |
590 | declare. | |
591 | (struct value_print_options): New type. | |
592 | (vtblprint, unionprint, addressprint, objectprint, print_max, | |
593 | inspect_it, repeat_count_threshold, output_format, | |
594 | stop_print_at_null): Don't declare. | |
595 | (user_print_options, get_user_print_options, | |
596 | get_raw_print_options, get_formatted_print_options): Declare. | |
597 | (print_array_indexes_p): Don't declare. | |
598 | (maybe_print_array_index, val_print_array_elements): Update. | |
599 | * valprint.c (print_max): Remove. | |
600 | (user_print_options): New global. | |
601 | (get_user_print_options, get_raw_print_options, | |
602 | get_formatted_print_options): New functions. | |
603 | (print_array_indexes, repeat_count_threshold, stop_print_at_null, | |
604 | prettyprint_structs, prettyprint_arrays, unionprint, | |
605 | addressprint): Remove. | |
606 | (val_print): Remove format, deref_ref, pretty arguments; add | |
607 | options. Update. | |
608 | (common_val_print): Likewise. | |
609 | (print_array_indexes_p): Remove. | |
610 | (maybe_print_array_index): Remove format, pretty arguments; add | |
611 | options. Update. | |
612 | (val_print_array_elements): Remove format, deref_ref, pretty | |
613 | arguments; add options. Update. | |
614 | (val_print_string): Add options argument. Update. | |
615 | (_initialize_valprint): Use user_print_options. | |
616 | (output_format): Remove. | |
617 | (set_output_radix_1): Use user_print_options. | |
618 | * typeprint.c: Include valprint.h. | |
619 | (objectprint): Don't declare. | |
620 | (whatis_exp): Use get_user_print_options. | |
621 | * tui/tui-regs.c: Include valprint.h. | |
622 | (tui_register_format): Use get_formatted_print_options. | |
623 | * tracepoint.c: Include valprint.h. | |
624 | (addressprint): Don't declare. | |
625 | (trace_mention): Use get_user_print_options. | |
626 | (tracepoints_info): Likewise. | |
627 | * stack.c (print_frame_args): Use get_raw_print_options. | |
628 | (print_frame_info): Use get_user_print_options. | |
629 | (print_frame): Likewise. | |
630 | * sh64-tdep.c: Include valprint.h | |
631 | (sh64_do_register): Use get_formatted_print_options. | |
632 | * scm-valprint.c (scm_inferior_print): Remove format, deref_ref, | |
633 | pretty arguments; add options. | |
634 | (scm_scmlist_print): Likewise. Update. | |
635 | (scm_scmval_print): Likewise. | |
636 | (scm_val_print): Likewise. | |
637 | (scm_value_print): Remove format, pretty arguments; add options. | |
638 | Update. | |
639 | * scm-lang.h (scm_value_print, scm_val_print, scm_scmval_print): | |
640 | Update. | |
641 | * scm-lang.c (scm_printstr): Add options argument. | |
642 | * python/python-value.c: Include valprint.h. | |
643 | (valpy_str): Use get_user_print_options. | |
644 | * printcmd.c: Include valprint.h. | |
645 | (addressprint): Don't declare. | |
646 | (inspect_it): Remove. | |
647 | (print_formatted): Remove format option; add options. Update. | |
648 | (print_scalar_formatted): Likewise. | |
649 | (print_address_demangle): Use get_user_print_options. | |
650 | (do_examine): Use get_formatted_print_options. | |
651 | (print_command_1): Likewise. | |
652 | (output_command): Use get_formatted_print_options. | |
653 | (do_one_display): Likewise. | |
654 | (print_variable_value): Use get_user_print_options. | |
655 | * p-valprint.c (pascal_val_print): Remove format, deref_ref, | |
656 | pretty arguments; add options. Update. | |
657 | (pascal_value_print): Remove format, pretty arguments; add | |
658 | options. Update. | |
659 | (vtblprint, objectprint): Don't declare. | |
660 | (pascal_static_field_print): Remove. | |
661 | (pascal_object_print_value_fields): Remove format, pretty | |
662 | arguments; add options. Update. | |
663 | (pascal_object_print_static_field): Likewise. | |
664 | (_initialize_pascal_valprint): Use user_print_options. Update. | |
665 | * p-lang.h (pascal_val_print, pascal_value_print, | |
666 | pascal_printstr, pascal_object_print_value_fields): Update. | |
667 | (vtblprint, static_field_print): Don't declare. | |
668 | * p-lang.c (pascal_printstr): Add options argument. Update. | |
669 | * objc-lang.c (objc_printstr): Add options argument. Update. | |
670 | * mt-tdep.c: Include valprint.h. | |
671 | (mt_registers_info): Use get_raw_print_options. | |
672 | * mips-tdep.c: Include valprint.h. | |
673 | (mips_print_fp_register): Use get_formatted_print_options. | |
674 | (mips_print_register): Likewise. | |
675 | * mi/mi-main.c: Include valprint.h. | |
676 | (get_register): Use get_user_print_options. | |
677 | (mi_cmd_data_evaluate_expression): Likewise. | |
678 | (mi_cmd_data_read_memory): Use get_formatted_print_options. | |
679 | * mi/mi-cmd-stack.c: Include valprint.h. | |
680 | (list_args_or_locals): Use get_raw_print_options. | |
681 | * m2-valprint.c (print_function_pointer_address): Add addressprint | |
682 | argument. | |
683 | (m2_print_long_set): Remove format, pretty arguments. | |
684 | (m2_print_unbounded_array): Remove format, deref_ref, pretty | |
685 | arguments; add options. Update. | |
686 | (print_unpacked_pointer): Remove format argument; add options. | |
687 | Now static. Update. | |
688 | (print_variable_at_address): Remove format, deref_ref, pretty | |
689 | arguments; add options. Update. | |
690 | (m2_print_array_contents): Likewise. | |
691 | (m2_val_print): Likewise. | |
692 | * m2-lang.h (m2_val_print): Update. | |
693 | * m2-lang.c (m2_printstr): Add options argument. Update. | |
694 | * language.h (struct value_print_options): Declare. | |
695 | (struct language_defn) <la_printstr>: Add options argument. | |
696 | <la_val_print>: Remove format, deref_ref, pretty argument; add | |
697 | options. | |
698 | <la_value_print>: Remove format, pretty arguments; add options. | |
699 | <la_print_array_index>: Likewise. | |
700 | (LA_VAL_PRINT, LA_VALUE_PRINT, LA_PRINT_STRING, | |
701 | LA_PRINT_ARRAY_INDEX): Update. | |
702 | (default_print_array_index): Update. | |
703 | * language.c (default_print_array_index): Remove format, pretty | |
704 | arguments; add options. Update. | |
705 | (unk_lang_printstr): Add options argument. | |
706 | (unk_lang_val_print): Remove format, deref_ref, pretty arguments; | |
707 | add options. | |
708 | (unk_lang_value_print): Remove format, pretty arguments; add | |
709 | options. | |
710 | * jv-valprint.c (java_value_print): Remove format, pretty | |
711 | arguments; add options. Update. | |
712 | (java_print_value_fields): Likewise. | |
713 | (java_val_print): Remove format, deref_ref, pretty arguments; add | |
714 | options. Update. | |
715 | * jv-lang.h (java_val_print, java_value_print): Declare. | |
716 | * infcmd.c: Include valprint.h. | |
717 | (print_return_value): Use get_raw_print_options. | |
718 | (default_print_registers_info): Use get_user_print_options, | |
719 | get_formatted_print_options. | |
720 | (registers_info): Use get_formatted_print_options. | |
721 | * gdbtypes.h (struct value_print_options): Declare. | |
722 | (print_scalar_formatted): Update. | |
723 | * f-valprint.c (f77_print_array_1): Remove format, deref_ref, | |
724 | pretty arguments; add options. Update. | |
725 | (f77_print_array): Likewise. | |
726 | (f_val_print): Likewise. | |
727 | * f-lang.h (f_val_print): Update. | |
728 | * f-lang.c (f_printstr): Add options argument. Update. | |
729 | (c_value_print): Update declaration. | |
730 | * expprint.c: Include valprint.h. | |
731 | (print_subexp_standard): Use get_raw_print_options, | |
732 | get_user_print_options. | |
733 | * eval.c: Include valprint.h. | |
734 | (objectprint): Don't declare. | |
735 | (evaluate_subexp_standard): Use get_user_print_options. | |
736 | * cp-valprint.c (vtblprint, objectprint, static_field_print): | |
737 | Remove. | |
738 | (cp_print_value_fields): Remove format, pretty arguments; add | |
739 | options. Update. | |
740 | (cp_print_value): Likewise. | |
741 | (cp_print_static_field): Likewise. | |
742 | (_initialize_cp_valprint): Use user_print_options. Update. | |
743 | * c-valprint.c (print_function_pointer_address): Add addressprint | |
744 | argument. | |
745 | (c_val_print): Remove format, deref_ref, pretty arguments; add | |
746 | options. Update. | |
747 | (c_value_print): Add options argument. Update. | |
748 | * c-lang.h (c_val_print, c_value_print, c_printstr): Update. | |
749 | (vtblprint, static_field_print): Don't declare. | |
750 | (cp_print_value_fields): Update. | |
751 | * c-lang.c (c_printstr): Add options argument. Update. | |
752 | * breakpoint.c: Include valprint.h. | |
753 | (addressprint): Don't declare. | |
754 | (watchpoint_value_print): Use get_user_print_options. | |
755 | (print_one_breakpoint_location): Likewise. | |
756 | (breakpoint_1, print_it_catch_fork, print_it_catch_vfork, mention, | |
757 | print_exception_catchpoint): Likewise. | |
758 | * auxv.c (fprint_target_auxv): Don't declare addressprint. Use | |
759 | get_user_print_options. | |
760 | * ada-valprint.c (struct ada_val_print_args): Remove format, | |
761 | deref_ref, and pretty; add options. | |
762 | (print_optional_low_bound): Add options argument. | |
763 | (val_print_packed_array_elements): Remove format and pretty | |
764 | arguments; add options. Update. | |
765 | (printstr): Add options argument. Update. | |
766 | (ada_printstr): Likewise. | |
767 | (ada_val_print): Remove format, deref_ref, pretty arguments; add | |
768 | options argument. Update. | |
769 | (ada_val_print_stub): Update. | |
770 | (ada_val_print_array): Remove format, deref_ref, pretty arguments; | |
771 | add options. Update. | |
772 | (ada_val_print_1): Likewise. | |
773 | (print_variant_part): Likewise. | |
774 | (ada_value_print): Remove format, pretty arguments; add options. | |
775 | Update. | |
776 | (print_record): Likewise. | |
777 | (print_field_values): Likewise. | |
778 | * ada-lang.h (ada_val_print, ada_value_print, ada_printstr): | |
779 | Update. | |
780 | * ada-lang.c (ada_print_array_index): Add options argument; remove | |
781 | format and pretty arguments. | |
782 | (print_one_exception): Use get_user_print_options. | |
783 | ||
7c8a8b04 TT |
784 | 2008-10-28 Tom Tromey <tromey@redhat.com> |
785 | ||
786 | * cli/cli-script.c (do_fclose_cleanup): Remove. | |
787 | (script_from_file): Use make_cleanup_fclose. | |
788 | * xml-tdesc.c (do_cleanup_fclose): Remove. | |
789 | (fetch_xml_from_file): Use make_cleanup_fclose. | |
790 | * tracepoint.c (tracepoint_save_command): Use | |
791 | make_cleanup_fclose. Always free pathname. | |
792 | * source.c (print_source_lines_base): Use make_cleanup_fclose. | |
793 | * remote.c (fclose_cleanup): Remove. | |
794 | (remote_file_put): Use make_cleanup_fclose. | |
795 | (remote_file_get): Likewise. | |
796 | * linux-nat.c (linux_nat_find_memory_regions): Use | |
797 | make_cleanup_fclose. | |
798 | (linux_nat_info_proc_cmd): Likewise. | |
799 | (linux_proc_pending_signals): Likewise. | |
800 | * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose. | |
801 | Free file name. | |
802 | * cli/cli-dump.c (do_fclose_cleanup): Remove. | |
803 | (make_cleanup_fclose): Remove. | |
804 | * defs.h (make_cleanup_fclose): Declare. | |
805 | * utils.c (do_fclose_cleanup): New function. | |
806 | (make_cleanup_fclose): Likewise. | |
807 | ||
5a55c295 PA |
808 | 2008-10-27 Pedro Alves <pedro@codesourcery.com> |
809 | ||
810 | * inflow.c (kill_command): If the target claims there is still | |
811 | execution, don't clear the thread list. | |
812 | ||
5256a53b PA |
813 | 2008-10-27 Pedro Alves <pedro@codesourcery.com> |
814 | ||
815 | * cp-name-parser.y: Include defs.h instead of config.h. | |
816 | (parse_escape): Rename to ... | |
817 | (cp_parse_escape): ... this. | |
818 | (yylex): Update. | |
819 | (xfree) [TEST_CPNAMES]: New. | |
820 | ||
e8ecdb5c PA |
821 | 2008-10-27 Pedro Alves <pedro@codesourcery.com> |
822 | ||
823 | * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of | |
824 | 2.13 and configure.in. | |
825 | ||
8a305172 PA |
826 | 2008-10-27 Pedro Alves <pedro@codesourcery.com> |
827 | ||
828 | * target.h (struct target_ops) <to_supports_multi_process>: New | |
829 | field. | |
830 | (target_supports_multi_process): New define. | |
831 | * target.c (update_current_target): Inherit and de_fault | |
832 | to_supports_multi_process. | |
833 | * infcmd.c (attach_command): Allow attaching to multiple processes | |
834 | if the target supports it. | |
835 | (detach_command): If the target claims there is still execution, | |
836 | don't clear the thread list. | |
837 | * remote.c (remote_supports_multi_process): New. | |
838 | (init_remote_ops): Register remote_supports_multi_process. | |
839 | ||
676e87b3 PA |
840 | 2008-10-27 Pedro Alves <pedro@codesourcery.com> |
841 | ||
842 | * Makefile.in (.y.c, .l.c): sed free to xfree. | |
843 | ||
f0323ca0 PA |
844 | 2008-10-27 Pedro Alves <pedro@codesourcery.com> |
845 | ||
846 | * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to | |
847 | $(TM_CLIBS). | |
848 | (CDEPS): Remove reference to $(TM_CDEPS). | |
849 | ||
3067f6e5 MS |
850 | 2008-10-26 Michael Snyder <msnyder@vmware.com> |
851 | ||
852 | * infrun.c (handle_inferior_event): Handle dynamic symbol | |
853 | resolution in reverse. | |
854 | ||
6130d0b7 JB |
855 | 2008-10-25 Joel Brobecker <brobecker@adacore.com> |
856 | ||
857 | * infrun.c: Minor comment reformatting. | |
858 | ||
bbe2ba60 PA |
859 | 2008-10-25 Pedro Alves <pedro@codesourcery.com> |
860 | ||
861 | * ada-exp.y (write_object_renaming): Use malloc instead of | |
862 | xmalloc. | |
863 | * p-exp.y (pop_current_type): Use free instead of xfree. | |
864 | ||
2e979b94 PA |
865 | 2008-10-24 Pedro Alves <pedro@codesourcery.com> |
866 | ||
867 | * fork-child.c (startup_inferior): Only set threads not-executing | |
868 | after getting all the pending execs. On TARGET_WAITKIND_IGNORE, | |
869 | keep waiting, don't resume. On all other cases but | |
870 | TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to | |
871 | the event ptid. | |
872 | ||
74531fed PA |
873 | 2008-10-24 Pedro Alves <pedro@codesourcery.com> |
874 | ||
875 | Remote non-stop mode support. | |
876 | ||
877 | * remote.c (pending_stop_reply): New. | |
878 | (struct remote_state) <non_stop_aware, support_vCont_t>: New | |
879 | fields. | |
880 | (remote_async_inferior_event_token) | |
881 | (remote_async_get_pending_events_token): New. | |
882 | (notice_new_inferiors): New, abstracted out from record_currthread. | |
883 | (record_currthread): Call it. | |
884 | (remote_threads_info): Default threads to running in non-stop | |
885 | mode. In non-stop mode, only qfThreadInfo is supported. | |
886 | (remote_close): Discard all pending stop_replies. Close the event | |
887 | sources. | |
888 | (set_stop_requested_callback): New. | |
889 | (remote_start_remote): Implement non-stop mode startup. In | |
890 | all-stop, don't clear the thread list here. | |
891 | (remote_non_stop_feature): New. | |
892 | (remote_protocol_features): Add a "QNonStop" feature. | |
893 | (remote_open_1): Clear cached_wait_status and non_stop_aware. | |
894 | Clear the thread list here. | |
895 | (remote_detach_1): Discard pending stop replies of the process we | |
896 | detached from. | |
897 | (extended_remote_attach_1): Implement non-stop mode. | |
898 | (remote_vcont_probe): Recognize `vCont;t'. | |
899 | (remote_vcont_resume): Implement non-stop mode. | |
900 | (remote_resume): Don't set waiting_for_stop_reply in non-stop | |
901 | mode. | |
902 | (remote_stop_ns): New. | |
903 | (remote_stop): Rename to ... | |
904 | (remote_stop_as): ... this. If we have a cached wait status, | |
905 | don't bother interrupting the remote. | |
906 | (remote_stop): Reimplement as wrapper around remote_stop_as and | |
907 | remote_stop_ns. | |
908 | (interrupt_query): Don't query in async mode. | |
909 | (struct cached_reg, cahed_reg_t): New. | |
910 | (struct stop_reply): New. | |
911 | (stop_reply_queue): New. | |
912 | (stop_reply_xmalloc, stop_reply_xfree) | |
913 | (discard_pending_stop_replies, do_stop_reply_xfree) | |
914 | (queued_stop_reply, push_stop_reply, peek_stop_reply) | |
915 | (remote_parse_stop_reply, remote_get_pending_stop_replies) | |
916 | (process_stop_reply): New. | |
917 | (remote_wait_ns): New. | |
918 | (remote_wait_as): Use remote_parse_stop_reply. Invalidate the | |
919 | notion of current general thread is a process exit was reported. | |
920 | (remote_wait): Call remote_wait_ns in non-stop mode. | |
921 | (handle_notification): New. | |
922 | (putpkt_binary): Handle notifications. Don't care for | |
923 | waiting_for_stop_reply in non-stop mode. | |
924 | (getpkt_sane): Rename to ... | |
925 | (getpkt_or_notif_sane_1): ... this. Add `expecting_notif' | |
926 | argument. Handle it. Handle notifications. | |
927 | (getpkt_sane): Reimplement as wrapper around getpkt_or_notif_sane_1. | |
928 | (getpkt_or_notif_sane): New. | |
929 | (select_new_thread_callback): Check for exited state instead of | |
930 | comparing the ptid against minus_one_ptid. | |
931 | (extended_remote_create_inferior_1): Query the remote about the | |
932 | current thread. | |
933 | (remote_supports_non_stop): New. | |
934 | (init_remote_ops): Register it. | |
935 | (remote_async_inferior_event_handler): New. | |
936 | (remote_async_get_pending_events_handler): New. | |
937 | ||
938 | * infcmd.c (proceed_thread_callback): Comment. | |
939 | (proceed_after_attach_callback, proceed_after_attach): New. | |
940 | (attach_command_post_wait): In background attach, resume all | |
941 | threads, but only if they are unsignalled, and not explicitly | |
942 | stopped. In foreground attach, in non-stop mode, make sure to | |
943 | stop all threads of the just attached to process. | |
944 | (attach_command): In non-stop mode: If doing a background attach, | |
945 | stop at least one thread. If a foreground attach, stop all | |
946 | threads. | |
947 | ||
50d01748 PA |
948 | 2008-10-24 Pedro Alves <pedro@codesourcery.com> |
949 | ||
950 | * event-loop.h: Mention async_event_handlers. | |
951 | (async_event_handler): Forward declare. | |
952 | (async_event_handler_func): New typedef. | |
953 | (create_async_event_handler, delete_async_event_handler) | |
954 | (mark_async_event_handler): Declare. | |
955 | * event-loop.c (event_data): New. | |
956 | (event_handler_func): Take an event_data instead of an integer. | |
957 | (struct gdb_event): Replace the integer file descriptor by a | |
958 | generic event_data. | |
959 | (async_event_handler): New. | |
960 | (async_handler_ready): Delete. | |
961 | (async_event_handler_list): New. | |
962 | (create_event): New. | |
963 | (create_file_event): Use it. | |
964 | (process_event): Adjust. | |
965 | (gdb_do_one_event): Poll from the event sources in round-robin | |
966 | fashion across calls. Be sure to consult all sources before | |
967 | blocking. | |
968 | (handle_file_event): Take an event_data instead of an integer. | |
969 | Adjust. | |
970 | (gdb_wait_for_event): Add `block' argument. Handle it. | |
971 | (mark_async_signal_handler): Remove unneeded cast. | |
972 | (invoke_async_signal_handler): Rename to ... | |
973 | (invoke_async_signal_handlres): ... this. Return true if any was | |
974 | handled. | |
975 | (check_async_ready): Delete | |
976 | (create_async_event_handler): New. | |
977 | (mark_async_event_handler): New. | |
978 | (struct async_event_handler_data): New. | |
979 | (invoke_async_event_handler): New. | |
980 | (check_async_event_handlers): New. | |
981 | (delete_async_event_handler): New. | |
982 | (handle_timer_event): Adjust. | |
983 | ||
6dd47d34 DE |
984 | 2008-10-24 Doug Evans <dje@google.com> |
985 | ||
986 | * dwarf2read.c (typename_concat): Don't segv if prefix or suffix | |
987 | is NULL. Simplify obs == NULL case. | |
988 | ||
fff08868 HZ |
989 | 2008-10-24 Hui Zhu <teawater@gmail.com> |
990 | Pedro Alves <pedro@codesourcery.com> | |
991 | ||
992 | * infrun.c (can_use_displaced_stepping): Change type to | |
993 | const char pointer. | |
994 | (can_use_displaced_stepping_auto): New string. | |
995 | (can_use_displaced_stepping_on): New string. | |
996 | (can_use_displaced_stepping_off): New string. | |
997 | (can_use_displaced_stepping_enum): New array. | |
998 | (show_can_use_displaced_stepping): In auto mode, also show | |
999 | the current effect of the option. | |
1000 | (use_displaced_stepping): Return non-zero if displaced | |
1001 | stepping is auto, and can be used with GDBARCH, and in | |
1002 | non-stop mode. Return non-zero if displaced stepping is on, | |
1003 | and can be used with GDBARCH. Return zero otherwise. | |
1004 | (_initialize_infrun): Make the "set displaced-stepping" | |
1005 | command an enum command. Change its class to class_run. | |
1006 | Place it in the top level set list. Extend help to describe | |
1007 | the auto mode. | |
1008 | ||
252fbfc8 PA |
1009 | 2008-10-23 Pedro Alves <pedro@codesourcery.com> |
1010 | ||
1011 | * defs.h: Mention ptid_is_pid. | |
1012 | * inferior.h (ptid_is_pid): Declare. | |
1013 | * gdbthread.h (struct thread_info) <stop_requested>: New field. | |
1014 | (set_stop_requested): Declare. | |
1015 | * infcmd.c (interrupt_target_1): Call set_stop_requested. | |
1016 | * infrun.c (clear_proceed_status): Clear stop_requested. | |
1017 | (infrun_thread_stop_requested_callback, | |
1018 | infrun_thread_stop_requested): New. | |
1019 | (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a | |
1020 | thread that had an explicit stop request, pretend we got a | |
1021 | TARGET_SIGNAL_0. Always stop if the thread had an explicit stop | |
1022 | request. | |
1023 | (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not | |
1024 | outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped", | |
1025 | instead of mentioning signal 0. | |
1026 | (ptid_is_pid): New. | |
1027 | * thread.c (set_stop_requested): New. | |
1028 | ||
1029 | * linux-nat.c (queued_waitpid): Rename to ... | |
1030 | (queued_waitpid_1): ... this. Add `peek' argument. Handle it. | |
1031 | (queued_waitpid): New, as wrapper to queued_waitpid_1. | |
1032 | (push_waitpid): Push the SIGTRAP to the local event queue, to the | |
1033 | kernel's. | |
1034 | (send_sigint_callback): Delete. | |
1035 | (linux_nat_stop_lwp): New. | |
1036 | (linux_nat_stop): Use it. | |
1037 | ||
3c0ed299 PP |
1038 | 2008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com> |
1039 | ||
1040 | * python/python-value (valpy_getitem): Fix heap corruption. | |
1041 | ||
103fd00d AR |
1042 | 2008-10-23 Aleksandar Ristovski <aristovski@qnx.com> |
1043 | ||
1044 | * nto-procfs.c (do_attach): Form proper ptid including pid and tid. | |
1045 | (procfs_create_inferior): Fetch list of threads. | |
1046 | ||
3fdfcbf1 AR |
1047 | 2008-10-23 Aleksandar Ristovski <aristovski@qnx.com> |
1048 | ||
1049 | * nto-procfs.c (procfs_files_info): Fix a typo. | |
1050 | (procfs_create_inferior): Make attach_flag per-inferior. | |
1051 | ||
997339e8 PP |
1052 | 2008-10-23 Tom Tromey <tromey@redhat.com> |
1053 | ||
1054 | * python/python-value.c (value_to_value_object): Initialize | |
1055 | owned_by_gdb field. | |
1056 | (valpy_new): Likewise. | |
1057 | ||
d6b67a5e JK |
1058 | 2008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
1059 | Joel Brobecker <brobecker@adacore.com> | |
1060 | ||
1061 | * ada-tasks.c (task_states, long_task_states): Use constant N_() | |
1062 | initializer. Define the strings as const. | |
1063 | (short_task_info, info_task): Translate the strings above. | |
1064 | ||
aadc346a JB |
1065 | 2008-10-22 Joel Brobecker <brobecker@adacore.com> |
1066 | ||
1067 | * NEWS: Add entry for new feature (Ada tasking support). | |
1068 | ||
1069 | 2008-10-22 Joel Brobecker <brobecker@adacore.com> | |
77f120bf JB |
1070 | |
1071 | * configure.ac: On alpha-osf, error out if enable_tui is set to | |
1072 | "yes", and set enable_tui to "no" if previously set to "auto". | |
1073 | Check for waddstr only if TUI support was requested. Move the | |
1074 | part of the configure script that updates various Makefile | |
1075 | variables up, together with the check for waddstr. | |
1076 | * configure: Regenerate. | |
1077 | ||
4af88198 JB |
1078 | 2008-10-22 Joel brobecker <brobecker@adacore.com> |
1079 | ||
1080 | * gdbtypes.c (copy_type): New function. | |
1081 | * gdbtypes.h (copy_type): Add declaration. | |
1082 | * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ | |
1083 | variable, then use it. | |
1084 | ||
0ef643c8 JB |
1085 | 2008-10-22 Joel Brobecker <brobecker@adacore.com> |
1086 | ||
1087 | * target.h (struct target_ops): Add new field to_get_ada_task_ptid. | |
1088 | (target_get_ada_task_ptid): New macro. | |
1089 | * target.c (default_get_ada_task_ptid): New function. | |
1090 | (update_current_target): Inherit field default_get_ada_task_ptid. | |
1091 | (update_current_target): Make default_get_ada_task_ptid the default | |
1092 | value for field to_get_ada_task_ptid. | |
1093 | * ada-lang.h (struct task_control_block): Delete. Never used. | |
1094 | (struct task_ptid, task_ptid_t, struct task_entry, task_list): | |
1095 | Likewise. | |
1096 | (struct ada_task_info): New. | |
1097 | (ada_task_is_alive, ada_find_printable_frame) | |
1098 | (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add | |
1099 | declarations. | |
1100 | (ada_build_task_list): Update prototype. | |
1101 | (init_task_list, ada_is_exception_breakpoint): Remove prototypes. | |
1102 | * ada-lang.c (ada_find_printable_frame): Make non-static. | |
1103 | * ada-tasks.c: New file. | |
1104 | * Makefile.in (SFILES): Add ada-tasks.c. | |
1105 | (COMMON_OBS): Add ada-tasks.o. | |
1106 | * linux-thread-db.c (thread_db_find_thread_from_tid) | |
1107 | (thread_db_get_ada_task_ptid): New functions. | |
1108 | (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid. | |
1109 | ||
c209f847 TT |
1110 | 2008-10-22 Tom Tromey <tromey@redhat.com> |
1111 | ||
1112 | PR gdb/2506: | |
1113 | * c-exp.y (string_exp): New production. | |
1114 | (exp): Use it. | |
1115 | ||
5bc60cfb JK |
1116 | 2008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
1117 | ||
1118 | * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC | |
1119 | removed before. | |
1120 | ||
7f99b190 JB |
1121 | 2008-10-20 Joel Brobecker <brobecker@adacore.com> |
1122 | ||
1123 | * NEWS: Add entry mentioning thread-support on Tru64 | |
1124 | ||
7a052092 JB |
1125 | 2008-10-19 Joel Brobecker <brobecker@adacore.com> |
1126 | ||
1127 | * dec-thread.c: New file. | |
1128 | * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o. | |
1129 | (NAT_CLIBS): Define. | |
1130 | ||
40e12b06 HZ |
1131 | 2008-10-19 Hui Zhu <teawater@gmail.com> |
1132 | ||
1133 | * infrun.c (handle_inferior_event): Set "stop_pc" when | |
1134 | TARGET_WAITKIND_NO_HISTORY. | |
1135 | ||
f9176c46 PA |
1136 | 2008-10-19 Pedro Alves <pedro@codesourcery.com> |
1137 | ||
1138 | * python/python-value.c (value_object_methods) | |
1139 | (value_object_as_number, value_object_as_mapping): Move to bottom | |
1140 | of file. | |
1141 | (valpy_dealloc, valpy_new, valpy_length, valpy_getitem) | |
1142 | (valpy_setitem, valpy_str, valpy_add, valpy_subtract) | |
1143 | (valpy_multiply, valpy_divide, valpy_remainder, valpy_power) | |
1144 | (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero) | |
1145 | (valpy_richcompare, valpy_dereference): Don't forward-declare. | |
1146 | (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'. | |
1147 | ||
4058b839 PA |
1148 | 2008-10-18 Pedro Alves <pedro@codesourcery.com> |
1149 | ||
1150 | * infrun.c (adjust_pc_after_break): Do nothing if executing in | |
1151 | reverse. | |
1152 | ||
f42429a6 PA |
1153 | 2008-10-17 Pedro Alves <pedro@codesourcery.com> |
1154 | ||
1155 | * infcmd.c (GO_USAGE): Delete. | |
1156 | (go_command): Adjust. | |
1157 | ||
b2175913 MS |
1158 | 2008-10-17 Michael Snyder <msnyder@vmware.com> |
1159 | Target interface for reverse debugging. | |
1160 | * target.h (enum target_waitkind): | |
1161 | Add new wait event, TARGET_WAITKIND_NO_HISTORY. | |
1162 | (struct target_ops): New method to_can_execute_reverse. | |
1163 | (target_can_execute_reverse): New macro. | |
1164 | * target.c (update_current_target): Inherit to_can_execute_reverse. | |
1165 | ||
1166 | Remote interface for reverse debugging. | |
1167 | * remote.c (remote_can_execute_reverse): New target method. | |
1168 | (remote_resume): Check for reverse exec direction, and send | |
1169 | appropriate command to target. | |
1170 | (remote_wait_as): Check target response for NO_HISTORY status. | |
1171 | Also check for empty reply (target doesn't understand "bs" or "bc). | |
1172 | (remote_vcont_resume): Jump out if attempting reverse execution. | |
1173 | ||
1174 | Event handling interface for reverse debugging. | |
1175 | * infrun.c (execution_direction): New state variable. | |
1176 | (enum inferior_stop_reason): Add NO_HISTORY reason. | |
1177 | (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY. | |
1178 | Handle stepping over a function call in reverse. | |
1179 | Handle stepping thru a line range in reverse. | |
1180 | Handle setting a step-resume breakpoint in reverse. | |
1181 | Handle stepping into a function in reverse. | |
1182 | Handle stepping between line ranges in reverse. | |
1183 | (print_stop_reason): Print reason for NO_HISTORY. | |
1184 | (step_into_function): Rename to handle_step_into_function. | |
1185 | (handle_step_into_function_backward): New function. | |
1186 | (set_exec_direction_func, show_exec_direction_func): New funcs. | |
1187 | (proceed): No need to singlestep over a breakpoint | |
1188 | when resuming in reverse. | |
1189 | ||
1190 | * inferior.h (enum exec_direction_kind): New enum. | |
1191 | (execution_direction): Export new execution state variable. | |
1192 | ||
1193 | * breakpoint.c (make_breakpoint_silent): New function. | |
1194 | * breakpoint.h (make_breakpoint_silent): Export. | |
1195 | * infcmd.c (finish_command): Check for reverse exec direction. | |
1196 | (finish_backward): New function, handle finish cmd in reverse. | |
1197 | ||
1198 | User interface for reverse execution. | |
1199 | * Makefile.in (reverse.c): New file. | |
1200 | * reverse.c: New file. User interface for reverse execution. | |
1201 | ||
153ccabd PA |
1202 | 2008-10-17 Pedro Alves <pedro@codesourcery.com> |
1203 | ||
1204 | * remote.c (record_currthread): Add inferior before child threads. | |
1205 | (remote_threads_info): Check for exited threads. Mention | |
1206 | notification order. | |
1207 | ||
ce78b96d JB |
1208 | 2008-10-16 Joel Brobecker <brobecker@adacore.com> |
1209 | ||
1210 | * breakpoint.h (enum bptype): New enum bp_catchpoint. | |
1211 | Delete bp_catch_fork and bp_catch_vfork. | |
1212 | (struct breakpoint_ops): Add new methods "insert", "remove" | |
1213 | and "breakpoint_hit". | |
1214 | * breakpoint.c (create_fork_vfork_event_catchpoint) | |
1215 | (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove. | |
1216 | (insert_catchpoint): Remove handling of bp_catch_fork and | |
1217 | bp_catch_vfork catchpoints, and handle them as bp_catchpoint | |
1218 | catchpoints instead. | |
1219 | (insert_bp_location, update_breakpoints_after_exec) | |
1220 | (remove_breakpoint, bpstat_check_location, bpstat_what) | |
1221 | (allocate_bp_location): Likewise. | |
1222 | (print_it_typical, print_one_breakpoint_location, mention): Remove | |
1223 | handling of bp_catch_fork and bp_catch_vfork breakpoints. | |
1224 | (ep_is_catchpoint, user_settable_breakpoint) | |
1225 | (breakpoint_address_is_meaningful, adjust_breakpoint_address) | |
1226 | (breakpoint_re_set_one, disable_command, enable_command): | |
1227 | Remove use of bp_catch_fork and bp_catch_vfork. Add handling of | |
1228 | bp_catchpoint breakpoints. | |
1229 | (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork) | |
1230 | (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork): | |
1231 | New functions. | |
1232 | (catch_fork_breakpoint_ops): New static constant. | |
1233 | (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork) | |
1234 | (print_it_catch_vfork, print_one_catch_vfork) | |
1235 | (print_mention_catch_vfork): New functions. | |
1236 | (catch_vfork_breakpoint_ops): New static constant. | |
1237 | (create_catchpoint, create_fork_vfork_event_catchpoint): New functions. | |
1238 | (catch_fork_command_1): Use create_fork_vfork_event_catchpoint | |
1239 | to create the fork and vfork catchpoints. | |
1240 | (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields. | |
1241 | * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops | |
1242 | fields. | |
1243 | (catch_exception_unhandled_breakpoint_ops): Likewise. | |
1244 | (catch_assert_breakpoint_ops): Likewise. | |
1245 | ||
3c9c4b83 PA |
1246 | 2008-10-16 Pedro Alves <pedro@codesourcery.com> |
1247 | ||
1248 | * remote.c (set_general_process): New. | |
1249 | (remote_check_symbols): Use it. | |
1250 | ||
5c952c9b PA |
1251 | 2008-10-16 Pedro Alves <pedro@codesourcery.com> |
1252 | ||
1253 | * remote.c (push_remote_target): Delete. | |
1254 | * target.h (push_remote_target): Delete declaration. | |
1255 | ||
ce5ce7ed PA |
1256 | 2008-10-15 Pedro Alves <pedro@codesourcery.com> |
1257 | ||
1258 | * remote.c (remote_close): Unregister remote_desc from the event | |
1259 | loop. Always restore the SIGINT handler. Discard all inferiors | |
1260 | here. | |
1261 | (remote_detach_1, remote_disconnect): Don't unregister the file | |
1262 | descriptor from the event loop here. | |
1263 | (interrupt_query, readchar, getpkt_sane): Pop the target instead | |
1264 | of morning the current inferior. | |
1265 | (remote_kill): Don't unregister the file descriptor from the event | |
1266 | loop here. | |
1267 | (remote_mourn_1): Don't discard inferiors here. | |
1268 | ||
1c5cfe86 PA |
1269 | 2008-10-15 Pedro Alves <pedro@codesourcery.com> |
1270 | ||
1271 | * breakpoint.c (breakpoint_init_inferior): Clean up the moribund | |
1272 | locations list. | |
1273 | (moribund_breakpoint_here_p): Record the moribund | |
1274 | location in the moribund_locations vector. | |
1275 | * breakpoint.h (moribund_breakpoint_here_p): Declare. | |
1276 | (displaced_step_fixup): Check if the breakpoint the thread was | |
1277 | trying to step over has been removed since having been placed in | |
1278 | the displaced stepping queue. | |
1279 | (adjust_pc_after_break): In non-stop mode, check for a moribund | |
1280 | breakpoint at the stop pc. | |
1281 | (handle_inferior_event): Don't retire moribund breakpoints on | |
1282 | TARGET_WAITKIND_IGNORE. | |
1283 | ||
1284 | 2008-10-15 Pedro Alves <pedro@codesourcery.com> | |
ad53cd71 PA |
1285 | |
1286 | * infrun.c (displaced_step_prepare): Switch thread temporarily | |
1287 | while we're here. | |
1288 | (displaced_step_fixup): Make sure target_resume sees ptid as | |
1289 | inferior_ptid. Add debug output. | |
1290 | ||
63c715c6 PA |
1291 | 2008-10-14 Pedro Alves <pedro@codesourcery.com> |
1292 | ||
1293 | Remove dead code. | |
1294 | ||
1295 | * breakpoint.c (show_breakpoint_hit_counts): Delete. | |
1296 | (print_one_breakpoint_location): Adjust. | |
1297 | (breakpoint_clear_ignore_counts): Delete. | |
1298 | * breakpoint.h (breakpoint_clear_ignore_counts): Remove | |
1299 | declaration. | |
1300 | * target.c (generic_mourn_inferior): Don't clear ignore | |
1301 | counts (never reached). | |
1302 | ||
c764a876 DE |
1303 | 2008-10-10 Doug Evans <dje@google.com> |
1304 | ||
1305 | * dwarf2read.c (comp_unit_head): Use unsigned int consistently | |
1306 | for dwarf section offsets and sizes. | |
1307 | (dwarf2_cu): Ditto. | |
1308 | (dwarf2_per_cu_data): Ditto. | |
1309 | (create_all_comp_units): Change offset to unsigned int. | |
1310 | (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die, | |
1311 | dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto. | |
1312 | ||
1313 | * dwarf2read.c (read_initial_length): Delete cu_header arg. | |
1314 | All callers updated. | |
1315 | (read_checked_initial_length_and_offset): New function. | |
1316 | (read_offset_1): New function. | |
1317 | (read_offset): Call it. | |
1318 | (dwarf_decode_line_header): Call read_checked_initial_length_and_offset | |
1319 | instead of read_initial_length. Call read_offset_1 instead of | |
1320 | read_offset. | |
1321 | ||
1322 | * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'. | |
1323 | All callers updated. | |
1324 | ||
1325 | * dwarf2read.c (dwarf_attr_name): Unconditionally support all | |
1326 | DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with | |
1327 | DW_AT_HP_block_index. | |
1328 | ||
5fe04517 PA |
1329 | 2008-10-10 Pedro Alves <pedro@codesourcery.com> |
1330 | ||
1331 | * remote.c (remote_start_remote): Always tell the stub if we're in | |
1332 | extended-remote. | |
1333 | ||
c8e38a49 PA |
1334 | 2008-10-09 Pedro Alves <pedro@codesourcery.com> |
1335 | ||
1336 | * remote.c (remote_wait): Rename to... | |
1337 | (remote_wait_as): ... this. Don't loop here. If the remote | |
1338 | didn't stop, return TARGET_WAITKIND_IGNORE. | |
1339 | (remote_wait): New, reimplemented on top of remote_wait_as. | |
1340 | ||
9ca12bbf TS |
1341 | 2008-10-09 Thomas Schwinge <tschwinge@gnu.org> |
1342 | ||
d11d9deb TS |
1343 | * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem |
1344 | is fixed upstream. | |
1345 | ||
20249808 TS |
1346 | * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro. |
1347 | ||
9ca12bbf TS |
1348 | * MAINTAINERS (Write After Approval): Add myself. |
1349 | ||
0b62613e PA |
1350 | 2008-10-09 Pedro Alves <pedro@codesourcery.com> |
1351 | ||
1352 | Make it compile without warnings. | |
1353 | ||
1354 | * procfs.c (create_procinfo): Initialize `parent'. | |
1355 | (dead_procinfo): Pass a constant string as format to error. | |
1356 | (procfs_address_to_host_pointer): Add cast to gdb_type *. | |
1357 | (procfs_find_LDT_entry): Adjust format string to long int | |
1358 | ptid.tid. | |
1359 | (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast. | |
1360 | (procfs_xfer_memory): Adjust prototype. | |
1361 | (info_mappings_callback, info_proc_mappings): Adjust to not pass a | |
1362 | variable as printf_filtered format. | |
1363 | (procfs_make_note_section): Change type of auxv local to gdb_byte. | |
1364 | * Makefile.in: Remove special rule. | |
1365 | ||
c8d104ad PA |
1366 | 2008-10-09 Pedro Alves <pedro@codesourcery.com> |
1367 | Daniel Jacobowitz <dan@codesourcery.com> | |
1368 | ||
1369 | * remote.c (remote_open_1): Move acknowledging any pending ack, | |
1370 | querying supported features, activating noack mode, finding the | |
1371 | target description, enabling extended remote, and checking remote | |
1372 | symbols from here ... | |
1373 | (remote_start_remote): ... to here. | |
1374 | (remote_open_1): Don't pop the target if it is already gone. | |
1375 | * target.c (unpush_target): Check for the dummy target. | |
1376 | ||
efdb2a86 PA |
1377 | 2008-10-09 Pedro Alves <pedro@codesourcery.com> |
1378 | ||
1379 | * ser-mingw.c: Include "command.h". | |
1380 | (pipe_windows_open): Declare locals at the beginning of the scope. | |
1381 | ||
e24a49d8 PA |
1382 | 2008-10-08 Pedro Alves <pedro@codesourcery.com> |
1383 | ||
1384 | * remote.c (struct remote_state) <waiting_for_stop_reply>: New | |
1385 | field. | |
1386 | (remote_open_1): Clear waiting_for_stop_reply. | |
1387 | (remote_resume): Set waiting_for_stop_reply. | |
1388 | (remote_wait): Clear or set waiting_for_stop_reply accordingly. | |
1389 | (putpkt_binary): If we're in async mode and waiting for a stop | |
1390 | reply, bail out with an error. | |
1391 | (extended_remote_mourn_1): Clear waiting_for_stop_reply. | |
1392 | ||
3084dd77 PA |
1393 | 2008-10-08 Pedro Alves <pedro@codesourcery.com> |
1394 | ||
1395 | * remote.c (remote_get_thread_info): If the remote doesn't support | |
1396 | the query, bail out. | |
1397 | ||
d6a843b5 JK |
1398 | 2008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
1399 | ||
1400 | Convert static_kind into loc_kind enum. | |
1401 | * gdbtypes.h (enum field_loc_kind): New. | |
1402 | (union field_location): New field dwarf_block. | |
1403 | (struct field): Rename static_kind as loc_kind. | |
1404 | (FIELD_STATIC_KIND): Rename to ... | |
1405 | (FIELD_LOC_KIND): ... here. | |
1406 | (TYPE_FIELD_STATIC_KIND): Rename to ... | |
1407 | (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND. | |
1408 | (TYPE_FIELD_STATIC_HAS_ADDR): Remove. | |
1409 | (TYPE_FIELD_STATIC): Remove. | |
1410 | (TYPE_FIELD_BITPOS): Reformat. | |
1411 | (SET_FIELD_BITPOS): New. | |
1412 | (FIELD_PHYSADDR): Rename to ... | |
1413 | (FIELD_STATIC_PHYSADDR): ... here. | |
1414 | (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename. | |
1415 | (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND. | |
1416 | (FIELD_PHYSNAME): Rename to ... | |
1417 | (FIELD_STATIC_PHYSNAME): ... here. | |
1418 | (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename. | |
1419 | (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND. | |
1420 | (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New. | |
1421 | (field_is_static): New declaration. | |
1422 | * gdbtypes.c (field_is_static): New function. | |
1423 | (copy_type_recursive): Update throughout. | |
1424 | * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c, | |
1425 | eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c, | |
1426 | p-valprint.c, valops.c, value.c, varobj.c: Update throughout. | |
1427 | ||
c289427b PA |
1428 | 2008-10-07 Thomas Schwinge <tschwinge@gnu.org> |
1429 | Pedro Alves <pedro@codesourcery.com> | |
1430 | ||
1431 | * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to | |
1432 | avoid a name collision. | |
1433 | * gnu-nat.c: Likewise. | |
1434 | * i386gnu-nat.c: Likewise. | |
1435 | ||
8c1c099f JB |
1436 | 2008-10-07 Joel Brobecker <brobecker@adacore.com> |
1437 | ||
1438 | * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling | |
1439 | of arguments that are references. | |
1440 | ||
8a498d38 DE |
1441 | 2008-10-06 Doug Evans <dje@google.com> |
1442 | ||
d97bc12b DE |
1443 | * dwarf2read.c (dwarf2_die_debug): New static global. |
1444 | (dump_die_shallow): Renamed from dump_die, New args f, indent. | |
1445 | Print to specified file, indented by the specified amount. | |
1446 | (dump_die_for_error): New fn. Point all existing callers of | |
1447 | dump_die here. | |
1448 | (dump_die_die_1,dump_die): New fns, replaces ... | |
1449 | (dump_die_list): ... deleted. | |
1450 | (read_die_and_children_1): Old contents of read_die_and_children | |
1451 | moved here. | |
1452 | (read_die_and_children): Rewrite. | |
1453 | (read_die_and_siblings): Call read_die_and_children_1 instead of | |
1454 | read_die_and_children. | |
1455 | (_initialize_dwarf2_read): New option "debug dwarf2-die". | |
1456 | * gdbinit.in (pdie): New macro. | |
1457 | ||
45452591 DE |
1458 | * dwarf2read.c (offset_in_cu_p): New function. |
1459 | (find_partial_die,follow_die_ref): Use it. | |
1460 | ||
8a498d38 DE |
1461 | * symmisc.c (maintenance_info_symtabs): Watch for ^c. |
1462 | (maintenance_info_psymtabs): Ditto. | |
1463 | ||
360551e4 | 1464 | 2008-10-05 Michael Snyder <msnyder@vmware.com> |
8002d778 MS |
1465 | |
1466 | * infrun.c (handle_inferior_event): Fix typo in comment. | |
1467 | ||
c1828f25 VP |
1468 | 2008-10-04 Vladimir Prus <vladimir@codesourcery.com> |
1469 | ||
1470 | * mi/mi-interp.c (mi_on_resume): Flush raw_stdout. | |
1471 | ||
5ef73790 PP |
1472 | 2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com> |
1473 | ||
1474 | PR gdb/2384: | |
1475 | * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have | |
1476 | different lifetimes. | |
1477 | ||
352efb28 | 1478 | 2008-10-03 Joel Brobecker <brobecker@adacore.com> |
a7125ea9 JB |
1479 | |
1480 | * solib-osf.c: Include "solib.h". | |
1481 | ||
d1a41061 PP |
1482 | 2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com> |
1483 | ||
1484 | * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv | |
1485 | and check for out-of-memory condition. | |
1486 | * exec.c (exec_file_command): Call it. | |
1487 | * infrun.c (handle_command, xdb_handle_command): Likewise. | |
1488 | * interps.c (interpreter_exec_cmd): Likewise. | |
1489 | * linux-nat.c (linux_nat_info_proc_cmd): Likewise. | |
1490 | * procfs.c (info_proc_cmd): Likewise. | |
1491 | * remote-mips.c (common_open): Likewise. | |
1492 | * remote-sim.c (gdbsim_kill, gdbsim_create_inferior) | |
1493 | (gdbsim_open): Likewise. | |
1494 | * remote.c (extended_remote_run, remote_put_command) | |
1495 | (remote_get_command, remote_delete_command): Likewise. | |
1496 | * ser-mingw.c (pipe_windows_open): Likesise. | |
1497 | * source.c (add_path, show_substitute_path_command) | |
1498 | (unset_substitute_path_command, set_substitute_path_command): | |
1499 | Likewise. | |
1500 | * stack.c (backtrace_command): Likewise. | |
1501 | * symfile.c (symbol_file_command, generic_load) | |
1502 | (add_symbol_file_command): Likesise. | |
1503 | * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols) | |
1504 | (maintenance_print_msymbols): Likewise. | |
1505 | ||
d78df370 JK |
1506 | 2008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1507 | ||
1508 | Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined. | |
1509 | * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c | |
1510 | (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix), | |
1511 | valops.c (value_cast), varobj.c (c_number_of_children): Replace | |
1512 | TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by | |
1513 | TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED. | |
1514 | * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED. | |
1515 | * f-valprint.c (f77_get_dynamic_upperbound): Replace with ... | |
1516 | (f77_get_upperbound): ... this function handling now only | |
1517 | TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED. | |
1518 | (f77_get_dynamic_lowerbound): Replace with ... | |
1519 | (f77_get_lowerbound): ... this function handling now only | |
1520 | TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED. | |
1521 | (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl): | |
1522 | Update their callers. | |
1523 | * eval.c (evaluate_subexp_standard): Update their callers. | |
1524 | * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound) | |
1525 | (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their | |
1526 | prototypes. | |
1527 | (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove. | |
1528 | * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove | |
1529 | the lower_bound_was_default variable. Update the | |
1530 | f77_get_dynamic_upperbound, f77_get_upperbound and | |
1531 | TYPE_ARRAY_UPPER_BOUND_TYPE calls. | |
1532 | * gdbtypes.c (print_bound_type): Remove the function. | |
1533 | (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and | |
1534 | LOWER_BOUND_TYPE. | |
1535 | * gdbtypes.h (enum array_bound_type): Remove. | |
1536 | (struct main_type): Remove the fields upper_bound_type and | |
1537 | lower_bound_type. Comment the new overload of the field artificial. | |
1538 | (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ... | |
1539 | (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro. | |
1540 | (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ... | |
1541 | (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro. | |
1542 | ||
40debb5a TT |
1543 | 2008-10-02 Tom Tromey <tromey@redhat.com> |
1544 | ||
1545 | * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h. | |
1546 | ||
db5f024e DJ |
1547 | 2008-10-02 Daniel Jacobowitz <dan@codesourcery.com> |
1548 | ||
1549 | * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update | |
1550 | comments. | |
1551 | (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver. | |
1552 | (mips_linux_init_abi): Do not override skip_trampoline_code. | |
1553 | * configure.tgt (mips*-*-linux*): Add glibc-tdep.o. | |
1554 | * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches. | |
1555 | (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs. | |
1556 | (mips_skip_mips16_trampoline_code): Rename from | |
1557 | mips_skip_trampoline_code. | |
1558 | (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New. | |
1559 | * infrun.c (handle_inferior_event): Do not pass zero to | |
1560 | in_solib_dynsym_resolve_code. | |
1561 | ||
9f9d052e PM |
1562 | 2008-10-02 Pierre Muller <muller@ics.u-strasbg.fr> |
1563 | Pedro Alves <pedro@codesourcery.com> | |
1564 | ||
1565 | * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid. | |
1566 | ||
1567 | ||
bd2e94ce TT |
1568 | 2008-10-01 Tom Tromey <tromey@redhat.com> |
1569 | ||
1570 | * symtab.c (search_symbols): Update. | |
1571 | * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove. | |
1572 | ||
8b41ec65 TT |
1573 | 2008-10-01 Tom Tromey <tromey@redhat.com> |
1574 | ||
1575 | * symfile.c (syms_from_objfile): Update. | |
1576 | (reread_symbols): Update. | |
1577 | * objfiles.h (OBJF_SYMS): Remove. | |
1578 | (OBJF_REORDERED): Renumber. | |
1579 | (OBJF_SHARED): Likewise. | |
1580 | (OBJF_READNOW): Likewise. | |
1581 | (OBJF_USERLOADED): Likewise. | |
1582 | ||
712f90be TT |
1583 | 2008-10-01 Tom Tromey <tromey@redhat.com> |
1584 | ||
1585 | * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE. | |
1586 | (find_pc_sect_symtab): Likewise. | |
1587 | * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE. | |
1588 | * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use | |
1589 | MSYMBOL_TYPE, not SYMBOL_TYPE. | |
1590 | * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE. | |
1591 | * objc-lang.c (find_methods): Use MSYMBOL_TYPE. | |
1592 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use | |
1593 | MSYMBOL_TYPE. | |
1594 | * m2-exp.y (yylex): Use SYMBOL_CLASS. | |
1595 | ||
b887350f TT |
1596 | 2008-10-01 Tom Tromey <tromey@redhat.com> |
1597 | ||
1598 | * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update. | |
1599 | (scan_xcoff_symtab): Update. | |
1600 | * mdebugread.c (record_minimal_symbol): Update. | |
1601 | (parse_partial_symbols): Update. | |
1602 | * elfread.c (record_minimal_symbol): Update. | |
1603 | * dbxread.c (record_minimal_symbol): Update. | |
1604 | * coffread.c (record_minimal_symbol): Update. | |
1605 | * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine. | |
1606 | (sh64_elf_make_msymbol_special): Update. | |
1607 | * mips-tdep.c (mips_elf_make_msymbol_special): Use | |
1608 | MSYMBOL_TARGET_FLAG_1. | |
1609 | (mips_elf_make_msymbol_special): Likewise. | |
1610 | (msymbol_is_special): Likewise. | |
1611 | * minsyms.c (prim_record_minimal_symbol_and_info): Update. | |
1612 | (install_minimal_symbols): Likewise. | |
1613 | (prim_record_minimal_symbol): Update. | |
1614 | (prim_record_minimal_symbol_and_info): Remove 'info' argument. | |
1615 | * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine. | |
1616 | (MSYMBOL_SET_RTI): Redefine. | |
1617 | (MSYMBOL_IS_RTC): Redefine. | |
1618 | (MSYMBOL_IS_RTI): Redefine. | |
1619 | * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine. | |
1620 | (MSYMBOL_IS_SPECIAL): Redefine. | |
1621 | * symtab.h (struct minimal_symbol) <info>: Remove. | |
1622 | <target_flag_1, target_flag_2>: New fields. | |
1623 | (MSYMBOL_INFO): Remove. | |
1624 | (MSYMBOL_TARGET_FLAG_1): New macro. | |
1625 | (MSYMBOL_TARGET_FLAG_2): Likewise. | |
1626 | (prim_record_minimal_symbol_and_info): Update. | |
1627 | ||
d35e5795 JB |
1628 | 2008-09-30 Joel Brobecker <brobecker@adacore.com> |
1629 | ||
1630 | * ada-lang.c (is_digits_suffix): Delete unused function. | |
1631 | ||
d37209fd JB |
1632 | 2008-09-30 Paul Hilfinger <hilfinger@adacore.com> |
1633 | ||
1634 | * ada-lang.c (ada_modulus): Correct to avoid sign problem with | |
1635 | moduli >= 2**31. | |
1636 | ||
1637 | 2008-09-30 Paul Hilfinger <hilfinger@adacore.com> | |
b1f33ddd JB |
1638 | |
1639 | * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked" | |
1640 | variant branch. | |
1641 | (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not | |
1642 | supposed to be null. Fixes debugger segfaults. | |
1643 | (is_unchecked_variant): New function. | |
1644 | (to_fixed_variant_branch_type): Modify to leave unchecked unions | |
1645 | untouched. | |
1646 | (ada_template_to_fixed_record_type_1): Fix comment. | |
1647 | ||
3d0b0fa3 JB |
1648 | 2008-09-30 Joel Brobecker <brobecker@adacore.com> |
1649 | ||
1650 | * ada-lang.c (standard_exc): New static constant. | |
1651 | (ada_exception_catchpoint_cond_string): Add special handling | |
1652 | for the predefined exceptions. | |
1653 | ||
cdc7bb92 JB |
1654 | 2008-09-30 Joel Brobecker <brobecker@adacore.com> |
1655 | ||
1656 | * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update | |
1657 | the code accordingly. | |
1658 | ||
6b0d7253 JB |
1659 | 2008-09-30 Joel Brobecker <brobecker@adacore.com> |
1660 | ||
1661 | * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange | |
1662 | treatment of expect_type. Return the correct type when dereferencing | |
1663 | an integer. | |
1664 | ||
9a044a89 TT |
1665 | 2008-09-30 Tom Tromey <tromey@redhat.com> |
1666 | ||
1667 | PR gdb/2484: | |
1668 | * symtab.c (struct add_macro_name_data): New struct. | |
1669 | (add_macro_name): New function. | |
1670 | (default_make_symbol_completion_list): Complete macro names. | |
1671 | * scm-lang.c (scm_language_defn): Update. | |
1672 | * p-lang.c (pascal_language_defn): Update. | |
1673 | * objc-lang.c (objc_language_defn): Update. | |
1674 | * macrotab.h (macro_callback_fn): Add user_data argument. | |
1675 | (macro_for_each): Likewise. | |
1676 | (macro_for_each_in_scope): Declare. | |
1677 | * macrotab.c: (struct macro_for_each_data): New struct. | |
1678 | (foreach_macro): Use it. | |
1679 | (macro_for_each): Likewise. | |
1680 | (foreach_macro_in_scope): New function. | |
1681 | (macro_for_each_in_scope): Likewise. | |
1682 | * macrocmd.c (print_one_macro): Add argument. | |
1683 | (macro_list_command): Pass NULL to macro_for_each. | |
1684 | * m2-lang.c (m2_language_defn): Update. | |
1685 | * language.h (struct language_defn) <la_macro_expansion>: New | |
1686 | field. | |
1687 | (macro_expansion): New enum. | |
1688 | * language.c (unknown_language_defn): Update. Fix order of | |
1689 | initializers. | |
1690 | (auto_language_defn): Likewise. | |
1691 | (local_language_defn): Update. | |
1692 | * jv-lang.c (java_language_defn): Update. | |
1693 | * f-lang.c (f_language_defn): Update. | |
1694 | * c-lang.c (c_language_defn): Update. | |
1695 | (cplus_language_defn): Likewise. | |
1696 | (asm_language_defn): Likewise. | |
1697 | (minimal_language_defn): Likewise. | |
1698 | * ada-lang.c (ada_language_defn): Update. | |
1699 | ||
b084d499 JB |
1700 | 2008-09-30 Joel Brobecker <brobecker@adacore.com> |
1701 | ||
1702 | * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function. | |
1703 | (get_scope_pc_bounds): Use it. | |
1704 | ||
2fae03e8 TT |
1705 | 2008-09-27 Tom Tromey <tromey@redhat.com> |
1706 | ||
1707 | * NEWS: Update. | |
1708 | * macrocmd.c (extract_identifier): Add is_parameter argument. | |
1709 | (macro_define_command): Update. | |
1710 | (macro_undef_command): Likewise. | |
1711 | * macroexp.c (stringify): New function. | |
1712 | (find_parameter): Likewise. | |
1713 | (gather_arguments): Add nargs argument. Handle varargs. | |
1714 | (substitute_args): Add is_varargs and va_arg_name arguments. | |
1715 | Handle varargs, splicing, stringification. Use find_parameter. | |
1716 | (expand): Handle varargs. | |
1717 | ||
5c6ce71d TT |
1718 | 2008-09-27 Tom Tromey <tromey@redhat.com> |
1719 | ||
1720 | * scm-lang.c (scm_language_defn): Update. | |
1721 | * p-typeprint.c (pascal_print_typedef): New function. | |
1722 | * p-lang.h: (pascal_print_typedef): Declare. | |
1723 | * p-lang.c (pascal_language_defn): Update. | |
1724 | * objc-lang.c (objc_language_defn): Update. | |
1725 | * m2-typeprint.c (m2_print_typedef): New function. | |
1726 | * m2-lang.h (m2_print_typedef): Declare. | |
1727 | * m2-lang.c (m2_language_defn): Update. | |
1728 | * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal): | |
1729 | Remove. | |
1730 | (struct language_defn) <la_print_typedef>: New field. | |
1731 | (default_print_typedef): Declare. | |
1732 | (LA_PRINT_TYPEDEF): New define. | |
1733 | * language.c (unknown_language_defn): Update. | |
1734 | (auto_language_defn): Update. | |
1735 | (local_language_defn): Update. | |
1736 | * jv-lang.c (java_language_defn): Update. | |
1737 | * f-lang.c (f_language_defn): Update. | |
1738 | * c-typeprint.c (c_print_typedef): New function. | |
1739 | * c-lang.h (c_print_typedef): Declare. | |
1740 | * c-lang.c (c_language_defn): Update. | |
1741 | (cplus_language_defn): Update. | |
1742 | (asm_language_defn): Update. | |
1743 | (minimal_language_defn): Update. | |
1744 | * ada-lang.c (ada_language_defn): Update. | |
1745 | * typeprint.c (default_print_typedef): New function. | |
1746 | ||
09be204e TT |
1747 | 2008-09-27 Tom Tromey <tromey@redhat.com> |
1748 | ||
1749 | * jv-exp.y (insert_exp): Define using ISO syntax. | |
1750 | (copy_exp): Likewise. | |
1751 | (push_expression_name): Likewise. | |
1752 | (push_fieldnames): Likewise. | |
1753 | (java_type_from_name): Likewise. | |
1754 | (yyerror): Likewise. | |
1755 | (yylex): Likewise. | |
1756 | (parse_number): Likewise. | |
1757 | ||
3cd9d164 JB |
1758 | 2008-09-26 Joel Brobecker <brobecker@adacore.com> |
1759 | ||
1760 | * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves. | |
1761 | ||
e3168615 JB |
1762 | 2008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change) |
1763 | ||
1764 | * stack.c (print_frame_args): Fix typos in comments. | |
1765 | ||
8b8655b3 TJB |
1766 | 2008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com> |
1767 | ||
1768 | * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED. | |
1769 | ||
6fbd21a1 VP |
1770 | 2008-09-24 Vladimir Prus <vladimir@codesourcery.com> |
1771 | ||
1772 | * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis. | |
1773 | ||
45ef8ce0 AS |
1774 | 2008-09-24 Andreas Schwab <schwab@suse.de> |
1775 | ||
1776 | * frame.c (get_frame_register_bytes): Take pseudo registers into | |
68e007ca | 1777 | account. Avoid excessive function calls. |
45ef8ce0 | 1778 | |
9cbfa09e DE |
1779 | 2008-09-23 Doug Evans <dje@google.com> |
1780 | ||
07128da0 DE |
1781 | * dcache.c (state_chars): New static global. |
1782 | (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK. | |
1783 | All uses updated. | |
1784 | (dcache_info): Print cache state as mnemonically useful letters instead | |
1785 | of magic numbers. | |
1786 | ||
9cbfa09e DE |
1787 | * dwarf2read.c (comp_unit_head): Reorganize for better packing. |
1788 | ||
d4c0a7a0 TT |
1789 | 2008-09-22 Tom Tromey <tromey@redhat.com> |
1790 | ||
1791 | * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use | |
1792 | printf_filtered. | |
1793 | ||
6ca15a4b PA |
1794 | 2008-09-22 Pedro Alves <pedro@codesourcery.com> |
1795 | ||
1796 | * infrun.c (follow_exec): Don't do a generic mourn. Instead | |
1797 | inline the required bits. | |
1798 | * breakpoint.h (enum inf_context): Add inf_execd. | |
1799 | ||
795e548f PA |
1800 | 2008-09-22 Pedro Alves <pedro@codesourcery.com> |
1801 | ||
1802 | * infrun.c (handle_inferior_event): In the follow exec case, | |
1803 | context-switch before doing anything else. | |
1804 | ||
54a012c9 PA |
1805 | 2008-09-22 Pedro Alves <pedro@codesourcery.com> |
1806 | ||
1807 | * top.c (any_thread_of, kill_or_detach): New functions. | |
1808 | (quit_target): Iterate over all inferiors, killing or detaching | |
1809 | accordingly. | |
1810 | ||
181e7f93 PA |
1811 | 2008-09-22 Pedro Alves <pedro@codesourcery.com> |
1812 | ||
1813 | Remove the attach_flag global, and make it per-inferior. | |
1814 | ||
1815 | * inferior.h (attach_flag): Delete. | |
1816 | (inferior_process): Declare. | |
1817 | * solib.c (update_solib_list): Adjust. | |
1818 | * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust. | |
1819 | * inf-ptrace.c (inf_ptrace_detach): Adjust. | |
1820 | (inf_ptrace_files_info): Get it from the current inferior. | |
1821 | * inf-ttrace.c (inf_ttrace_attach): Adjust. | |
1822 | (inf_ttrace_files_info): Get it from the current | |
1823 | inferior. | |
1824 | * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap) | |
1825 | (clear_sigint_trap): Get it from the current process. | |
1826 | * remote.c (extended_remote_attach_1) | |
1827 | (extended_remote_create_inferior_1): Adjust. | |
1828 | * top.c (quit_confirm, quit_target): Get it from the current inferior. | |
1829 | * procfs.c (do_detach): Adjust. | |
1830 | (procfs_wait): Get it from the event inferior. | |
1831 | (procfs_files_info): Get it from the current inferior. | |
1832 | * nto-procfs.c (procfs_files_info): Likewise. | |
1833 | (procfs_attach): Adjust. Set the attach_flag here. | |
1834 | (do_attach): Don't set it here. | |
1835 | (procfs_detach): Don't clear it. | |
1836 | (procfs_mourn_inferior): Don't clear it. | |
1837 | * solib-osf.c (osf_solib_create_inferior_hook): Adjust. | |
1838 | * target.c (attach_flag): Delete. | |
1839 | (generic_mourn_inferior): Don't clear it. | |
1840 | * win32-nat.c (get_win32_debug_event): Get it from the event | |
1841 | process. | |
1842 | (do_initial_win32_stuff): Add attaching argument. Set attach_flag | |
1843 | in the inferior accordingly. | |
1844 | (win32_attach): Don't set the attach_flag here. Pass 1 to | |
1845 | do_intial_win32_stuff. | |
1846 | (win32_files_info): Get it from the current inferior. | |
1847 | (win32_create_inferior): Dont clear attach_flag here. Pass 0 to | |
1848 | do_intial_win32_stuff. | |
1849 | ||
d6b48e9c PA |
1850 | 2008-09-22 Pedro Alves <pedro@codesourcery.com> |
1851 | ||
1852 | Make the stop_soon global be per-inferior instead. | |
1853 | ||
1854 | * infcmd.c (attach_command_post_wait): Adjust. | |
1855 | (attach_command): Likewise. | |
1856 | ||
1857 | * inferior.h (stop_soon): Delete. | |
1858 | (struct inferior): Add stop_soon member. | |
1859 | ||
1860 | * infrun.c (stop_soon): Delete. | |
1861 | (clear_proceed_status, start_remote) | |
1862 | (fetch_inferior_event, handle_inferior_event): Adjust. | |
1863 | (signal_stop_state): Don't check stop_soon here. Check in callers | |
1864 | instead. | |
1865 | (save_inferior_status, restore_inferior_status): Adjust. | |
1866 | ||
1867 | * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass | |
1868 | signals to common code if starting up the inferior. | |
1869 | ||
1870 | * inferior.h (struct inferior_info): Added stop_soon member. | |
1871 | * inferior.c (add_inferior) Clear stop_soon. | |
1872 | ||
1873 | * mips-tdep.c (heuristic_proc_start): Adjust. | |
1874 | * nto-procfs.c (procfs_create_inferior): Adjust. | |
1875 | * solib-irix.c (irix_solib_create_inferior_hook): Adjust. | |
1876 | * solib-osf.c (osf_solib_create_inferior_hook): Adjust. | |
1877 | * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust. | |
1878 | * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust. | |
1879 | ||
1880 | * win32-nat.c (do_initial_win32_stuff): Adjust. | |
1881 | ||
1882 | * alpha-tdep.c (alpha_heuristic_proc_start): Adjust. | |
1883 | ||
82f73884 PA |
1884 | 2008-09-22 Pedro Alves <pedro@codesourcery.com> |
1885 | ||
1886 | Implement remote multi-process extensions. | |
1887 | ||
1888 | * remote.c (struct remote_state): Add extended and | |
1889 | multi_process_aware fields. | |
1890 | (remote_multi_process_p): New. | |
1891 | (PACKET_vKill): New. | |
1892 | (record_currthread): Use thread_change_ptid. Notice new | |
1893 | inferiors. | |
1894 | (set_thread, remote_thread_alive): Use write_ptid. | |
1895 | (write_ptid, read_ptid): New. | |
1896 | (remote_current_thread, remote_threads_extra_info): Use them. | |
1897 | (remote_threads_info): Likewise. Detect new inferiors. | |
1898 | (remote_start_remote): Add inferior to inferior list. | |
1899 | (remote_multi_process_feature): New. | |
1900 | (remote_protocol_features): Add "multiprocess" feature. | |
1901 | (remote_query_supported): Pass "multiprocess+" as supported | |
1902 | features. | |
1903 | (remote_open_1): Clear multi_process_aware. Set extended | |
1904 | accordingly. | |
1905 | (remote_detach_1): Detach current process. Use extended packet | |
1906 | format for extended-remote multi-process. Detach process from the | |
1907 | inferior list. Only mourn after printing output. | |
1908 | (extended_remote_attach_1): Add process to the inferior list. | |
1909 | (remote_vcont_resume): Use write_ptid to pass the thread ids. | |
1910 | (remote_wait): Use read_ptid. Implement the extended | |
1911 | multi-process extension format of the 'W' and 'X' reply packets. | |
1912 | Remove exited inferiors from inferior list. | |
1913 | (remote_xfer_memory): Set general thread. | |
1914 | (remote_vkill): New. | |
1915 | (extended_remote_kill): New. | |
1916 | (remote_mourn_1): Discard all inferiors. | |
1917 | (select_new_thread_callback): New. | |
1918 | (extended_remote_mourn_1): If there are more processes to debug, | |
1919 | switch to a thread in another process, and don't pop the target. | |
1920 | (extended_remote_create_inferior_1): Add the new process to the | |
1921 | inferior list. | |
1922 | (remote_stopped_by_watchpoint): Indenting. | |
1923 | (remote_xfer_partial): Set the general thread. | |
1924 | (remote_pid_to_str): If the remote is multi-process aware, print | |
1925 | the process id as well as the thread id. | |
1926 | (remote_get_thread_local_address): Use write_ptid. | |
1927 | (init_extended_remote_ops): Register extended_remote_kill. | |
1928 | (_initialize_remote): Register new packets. Change | |
1929 | magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid | |
1930 | member to 42000. | |
1931 | ||
1932 | * thread.c (thread_change_ptid): Also account for the inferior pid | |
1933 | changing. | |
1934 | ||
1935 | * inferior.h (discard_all_inferiors): Declare. | |
1936 | * inferior.c (discard_all_inferiors): New. | |
1937 | ||
7f9f62ba PA |
1938 | 2008-09-22 Pedro Alves <pedro@codesourcery.com> |
1939 | ||
1940 | * gnu-nat.c (gnu_attach): Add process to inferiors table. | |
1941 | (gnu_detach): Remove it. | |
1942 | * go32-nat.c (go32_create_inferior): Add process to gdb's inferior | |
1943 | table. | |
1944 | * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors | |
1945 | to inferior table accordingly. | |
1946 | (inf_ptrace_attach): Add new process to inferior table. | |
1947 | (inf_ptrace_detach): Remove it. | |
1948 | * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors | |
1949 | to inferior table accordingly. | |
1950 | (inf_ttrace_attach): Add process to inferior table. | |
1951 | (inf_ttrace_detach): Remove it. | |
1952 | * linux-fork.c (init_fork_list): Delete any left over inferior. | |
1953 | (linux_fork_mourn_inferior, detach_fork_command): Also delete | |
1954 | processes from inferior list. | |
1955 | * monitor.c (monitor_open): Add process to inferior list. | |
1956 | (monitor_close): Remove it. | |
1957 | * nto-procfs.c (procfs_attach): Add process to inferior list. | |
1958 | Find threads after pushing the target. | |
1959 | (procfs_detach): Remove process from inferior list. | |
1960 | (procfs_create_inferior): Add process to inferior list. | |
1961 | * procfs.c (procfs_detach): Remove process from inferior list. | |
1962 | (do_attach): Add process to inferior list. | |
1963 | * remote-sim.c (sim_create_inferior): Add process to inferior list. | |
1964 | (gdbsim_close): Remove it. | |
1965 | * target.c (generic_mourn_inferior): If inferior_ptid is not | |
1966 | null_ptid, remove the corresponding inferior from inferior list. | |
1967 | * win32-nat.c (do_initial_win32_stuff): Add process to inferior list. | |
1968 | (win32_detach): Remove it. | |
1969 | * linux-nat.c (linux_child_follow_fork): Delete and add inferiors | |
1970 | to inferior list accordingly. | |
1971 | * fork-child.c (fork_inferior): Add process to inferior list. | |
1972 | * corelow.c (CORELOW_PID): Define. | |
1973 | (core_close): Remove core from inferior list. | |
1974 | (core_open): Add it. | |
1975 | ||
b77209e0 PA |
1976 | 2008-09-22 Pedro Alves <pedro@codesourcery.com> |
1977 | ||
1978 | * inferior.h: Forward declare struct ui_out. | |
1979 | Forward declare struct private_inferior. | |
1980 | (struct inferior): New. | |
1981 | (init_inferior_list, add_inferior, add_inferior_silent) | |
1982 | (delete_inferior, delete_inferior_silent, detach_inferior) | |
1983 | (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list) | |
1984 | (valid_inferior_id, find_inferior_pid): New functions. | |
1985 | (inferior_callback_func): New typedef. | |
1986 | (iterate_over_inferiors, print_inferior, have_inferiors) | |
1987 | (current_inferior): New functions. | |
1988 | * inferior.c: New file. | |
1989 | ||
1990 | * Makefile.in (SFILES): Add inferior.c. | |
1991 | (COMMON_OBS): Add inferior.o. | |
1992 | ||
d8c3d48d JL |
1993 | 2008-09-22 Jonathan Larmour <jifl@eCosCentric.com> |
1994 | ||
1995 | * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal | |
1996 | instead of determining symbol and line info directly. | |
1997 | * MAINTAINERS: Update my email address. | |
1998 | ||
d54be744 DJ |
1999 | 2008-09-22 Daniel Jacobowitz <dan@codesourcery.com> |
2000 | ||
2001 | * symtab.c (skip_prologue_using_sal): Treat two consecutive lines | |
2002 | at the same address as a prologue marker. Do not skip an entire | |
2003 | function. | |
2004 | ||
26fae1d6 AS |
2005 | 2008-09-22 Andrew Stubbs <ams@codesourcery.com> |
2006 | ||
2007 | * frame.c (get_frame_register_bytes): Comment improvments. | |
2008 | ||
1ad15515 PA |
2009 | 2008-09-22 Pedro Alves <pedro@codesourcery.com> |
2010 | ||
2011 | * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in | |
2012 | all-stop mode. | |
2013 | ||
14fc49fb AS |
2014 | 2008-09-19 Andrew Stubbs <ams@codesourcery.com> |
2015 | ||
2016 | * MAINTAINERS: Update my email address. | |
2017 | ||
3f27f2a4 AS |
2018 | 2008-09-19 Andrew Stubbs <ams@codesourcery.com> |
2019 | ||
2020 | * frame.c (get_frame_register_bytes): Detect bad debug info. | |
2021 | ||
88ed393a JK |
2022 | 2008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
2023 | ||
2024 | Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread. | |
2025 | * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD | |
2026 | initialization ... | |
2027 | (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization | |
2028 | ... | |
2029 | (handle_inferior_event): ... here after the add_thread call together | |
2030 | with the local adjust_pc_after_break and reinit_frame_cache calls. | |
2031 | ||
d832cb68 DD |
2032 | 2008-09-16 David Daney <ddaney@avtrex.com> |
2033 | ||
2034 | * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for | |
2035 | all hardware bpstats. | |
2036 | ||
b1e40a6f JB |
2037 | 2008-09-16 Joel Brobecker <brobecker@adacore.com> |
2038 | ||
2039 | * gstdint.h: Delete. | |
2040 | ||
50a834af MK |
2041 | 2008-09-15 Mark Kettenis <kettenis@gnu.org> |
2042 | ||
2043 | * infcall.c (generic_push_dummy_code): Remove. | |
2044 | (push_dummy_code): Unconditionally call gdbarch_push_dummy_code. | |
2045 | ||
9d25dd43 DE |
2046 | 2008-09-15 Doug Evans <dje@google.com> |
2047 | ||
2048 | * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits. | |
2049 | (struct attribute): Ditto. | |
2050 | ||
85c83e99 DA |
2051 | 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
2052 | ||
326e541f DA |
2053 | * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record |
2054 | HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values. | |
2055 | ||
85c83e99 DA |
2056 | * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding |
2057 | "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers. | |
2058 | Correct arguments and improve comments. | |
2059 | (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete | |
2060 | disabled code. | |
2061 | * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating | |
2062 | point DBX register, change error to warning, and improve comments. | |
2063 | ||
76815b17 DE |
2064 | 2008-09-14 Doug Evans <dje@google.com> |
2065 | ||
2066 | * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits. | |
2067 | ||
51e753cf DA |
2068 | 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
2069 | ||
2070 | * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration. | |
2071 | ||
06e476f5 JB |
2072 | 2008-09-13 Joel Brobecker <brobecker@adacore.com> |
2073 | ||
2074 | * defs.h (GCC_GENERATED_STDINT_H): Define. | |
2075 | ||
6c761d9c TT |
2076 | 2008-09-13 Tom Tromey <tromey@redhat.com> |
2077 | ||
2078 | * varobj.c (varobj_set_display_format): Use xfree. | |
2079 | * tracepoint.c (stringify_collection_list): Use xfree. | |
2080 | * remote-fileio.c (remote_fileio_reset): Use xfree. | |
2081 | * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree. | |
2082 | * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use | |
2083 | asprintf. | |
2084 | * cp-support.c (mangled_name_to_comp): Use xfree. | |
2085 | ||
339c13b6 JB |
2086 | 2008-09-13 Joel Brobecker <brobecker@adacore.com> |
2087 | ||
2088 | * ada-lang.c (remove_extra_symbols): Remove stub symbols if | |
2089 | the associated complete symbol is also in the list. | |
2090 | (ada_add_local_symbols, ada_add_non_local_symbols): New functions, | |
2091 | extracted out from ada_lookup_symbol_list. | |
2092 | (ada_lookup_symbol_list): Use them. Remove the search through | |
2093 | the minimal symbols. | |
2094 | ||
bc30ff58 JB |
2095 | 2008-09-13 Joel Brobecker <brobecker@adacore.com> |
2096 | ||
2097 | * dwarf2read.c (add_partial_subprogram): New procedure. | |
2098 | (scan_partial_symbols): Use it. | |
2099 | (load_partial_dies): Read in children of subprogram and lexical | |
2100 | blocks for Ada compilation units. | |
2101 | ||
bb01da77 TT |
2102 | 2008-09-13 Tom Tromey <tromey@redhat.com> |
2103 | ||
2104 | * symfile.c (build_id_verify): Free 'found'. | |
2105 | (find_separate_debug_file): Use xfree, not free. | |
2106 | ||
d00adf39 DE |
2107 | 2008-09-12 Doug Evans <dje@google.com> |
2108 | ||
00630ca8 DE |
2109 | * corefile.c (write_memory): Remove unnecessary copying. |
2110 | ||
5d6fa950 DE |
2111 | * sol-thread.c (_initialize_sol_thread): Add FIXME regarding |
2112 | order of _initialize_* fns. | |
2113 | ||
d00adf39 DE |
2114 | * dwarf2read.c (comp_unit_head): Rename first_die_ptr to |
2115 | first_die_offset. All uses updated. | |
2116 | Delete unused members cu_head_ptr, next. | |
2117 | Move members base_known, base_address to ... | |
2118 | (dwarf2_cu) ... here. All uses updated. | |
2119 | ||
3d0bb823 PA |
2120 | 2008-09-12 Pedro Alves <pedro@codesourcery.com> |
2121 | ||
2122 | * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES). | |
2123 | * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New. | |
2124 | ||
3c35e65b UW |
2125 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2126 | ||
2127 | * fork-child.c (startup_inferior): Use target_wait and target_resume | |
2128 | directly instead of calling wait_for_inferior / resume. | |
2129 | ||
2130 | * infcmd.c (kill_if_already_running): Do not call no_shared_libraries | |
2131 | or init_wait_for_inferior. | |
2132 | (run_command_1): Call init_wait_for_inferior. | |
2133 | ||
4cca3ac9 UW |
2134 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2135 | ||
2136 | * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr, | |
2137 | builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short, | |
2138 | builtin_type_int, builtin_type_long, builtin_type_signed_char, | |
2139 | builtin_type_unsigned_char, builtin_type_unsigned_short, | |
2140 | builtin_type_unsigned_int, builtin_type_unsigned_long, | |
2141 | builtin_type_float, builtin_type_double, builtin_type_long_double, | |
2142 | builtin_type_complex, builtin_type_double_complex, builtin_type_string, | |
2143 | builtin_type_bool, builtin_type_long_long, | |
2144 | builtin_type_unsigned_long_long): Remove macros. | |
2145 | ||
2146 | (builtin_type_f_character, builtin_type_f_integer, | |
2147 | builtin_type_f_integer_s2, builtin_type_f_logical, | |
2148 | builtin_type_f_logical_s1, builtin_type_f_logical_s2, | |
2149 | builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16, | |
2150 | builtin_type_f_complex_s8, builtin_type_f_complex_s16, | |
2151 | builtin_type_f_complex_s32): Likewise. | |
2152 | ||
2153 | (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card, | |
2154 | builtin_type_m2_real, builtin_type_m2_bool): Likewise. | |
2155 | ||
2156 | (struct builtin_f_type, builtin_f_type): Move to f-lang.h. | |
2157 | (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h. | |
2158 | ||
2159 | * f-lang.h (struct builtin_f_type, builtin_f_type): Move here. | |
2160 | * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here. | |
2161 | ||
b6da22b0 UW |
2162 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2163 | ||
2164 | * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of | |
2165 | target_gdbarch instead of builtin_type_void_data_ptr. | |
2166 | (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME, | |
2167 | IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base, | |
2168 | solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap, | |
2169 | open_symbol_file_object): Likewise. | |
2170 | * nto-tdep.c (LM_ADDR): Likewise. | |
2171 | ||
ff7da468 UW |
2172 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2173 | ||
2174 | * bsd-uthread.c (bsd_uthread_read_memory_address): New function. | |
2175 | (bsd_uthread_fetch_registers, bsd_uthread_store_registers, | |
2176 | bsd_uthread_wait, bsd_uthread_find_new_threads): Use it. | |
2177 | ||
4e906f53 UW |
2178 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2179 | ||
2180 | * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch | |
2181 | and its associated types to perform pointer conversion. | |
2182 | (procfs_can_use_hw_breakpoint): Likewise. | |
2183 | (procfs_auxv_parse): Remove unused variable. | |
2184 | ||
ffe5a37e UW |
2185 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2186 | ||
2187 | * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch) | |
2188 | instead of builtin_type_void_data_ptr. | |
2189 | * target.c (default_region_ok_for_hw_watchpoint): Likewise. | |
2190 | ||
b806fb9a UW |
2191 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2192 | ||
2193 | * expprint.c (print_subexp_standard): Compare against builtin type | |
2194 | associated with exp->gdbarch instead of builtin_type_char. | |
2195 | ||
2196 | * f-valprint.c (f_val_print): Use extract_unsigned_integer to | |
2197 | extract values of arbitrary logical type. Handle arbitrary | |
2198 | complex types. | |
2199 | ||
2200 | * printcmd.c (float_type_from_length): New function. | |
2201 | (print_scalar_formatted, printf_command): Use it. | |
2202 | ||
3e3b026f UW |
2203 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2204 | ||
2205 | * valops.c: Include "objfiles.h" and "symtab.h". | |
2206 | (find_function_in_inferior): New argument OBJF_P. Use it to return | |
2207 | objfile where function is defined. Use per-objfile arch types | |
2208 | instead of builtin_type_ to define default return type. | |
2209 | ||
2210 | * linux-fork.c (checkpoint_command): Update calls. Use per-objfile | |
2211 | architecture to define inferior call argument types. | |
2212 | * gcore.c (derive_heap_segment): Likewise. | |
2213 | * objc-lang.c (value_nsstring): Likewise. | |
2214 | * scm-lang.c (scm_lookup_name): Likewise. | |
2215 | * scm-valprint.c (scm_inferior_print): Likewise. | |
2216 | * valops.c (value_allocate_space_in_inferior): Likewise. | |
2217 | ||
2218 | * eval.c (evaluate_subexp_standard): Update calls. | |
2219 | * objc-lang.c (lookup_objc_class, print_object_command): Likewise. | |
2220 | ||
2221 | * linux-fork.c: Include "objfiles.h". | |
2222 | * scm-lang.c: Include "objfiles.h". | |
2223 | * scm-valprint.c: Include "objfiles.h". | |
2224 | ||
f8dcfc0a UW |
2225 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2226 | ||
2227 | * gdbarch.sh (name_of_malloc): Remove. | |
2228 | * gdbarch.c, gdbarch.h: Re-generate. | |
2229 | * valops.c (value_allocate_space_in_inferior): Do not call | |
2230 | gdbarch_name_of_malloc. | |
2231 | ||
c56324e0 UW |
2232 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2233 | ||
2234 | * valarith.c (value_x_unop): Use builtin_type_int8 as type for | |
2235 | UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument. | |
2236 | (value_bit_index): Use extract_unsigned_integer | |
2237 | instead of unpack_long to read single byte. | |
2238 | ||
7788af6d UW |
2239 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2240 | ||
2241 | * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its | |
2242 | associates types instead of builtin_type_ macros. | |
2243 | (find_function_addr): Leave output VALUE_TYPE NULL if unknown. | |
2244 | (call_function_by_hand): Use per-architecture "int" type as | |
2245 | fall-back if find_function_addr returns NULL VALUE_TYPE. | |
2246 | Update call to value_arg_coerce. | |
2247 | ||
ad4820ab UW |
2248 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2249 | ||
2250 | * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter. | |
2251 | (cplus_make_method_ptr): Add TYPE parameter. | |
2252 | * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it | |
2253 | on to current_cp_abi.method_ptr_size callback. | |
2254 | (cplus_make_method_ptr): Add TYPE parameter. Pass it on to | |
2255 | current_cp_abi.make_method_ptr callback. | |
2256 | ||
2257 | * gdbtypes.c (lookup_methodptr_type): Pass target type | |
2258 | argument to cplus_method_ptr_size. | |
2259 | * valops.c (value_cast): Pass type argument to cplus_make_method_ptr. | |
2260 | (value_struct_elt_for_reference): Likewise. | |
2261 | ||
2262 | * gnu-v3-abi.c (get_class_arch): New function. | |
2263 | (vtable_address_point_offset): Add GDBARCH parameter. Use it | |
2264 | instead of current_gdbarch. Update all callers. | |
2265 | (gnuv3_get_vtable): Likewise. | |
2266 | (gnuv3_get_virtual_fn): Likewise. | |
2267 | (gnuv3_decode_method_ptr): Likewise. | |
2268 | (gnuv3_rtti_type): Call get_class_arch to determine architecture. | |
2269 | Use it instead of current_gdbarch. | |
2270 | (gnuv3_virtual_fn_field): Likewise. | |
2271 | (gnuv3_baseclass_offset): Likewise. | |
2272 | (gnuv3_print_method_ptr): Likewise. | |
2273 | (gnuv3_method_ptr_to_value): Likewise. | |
2274 | (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine | |
2275 | class architecture. Use architecture types instead of builtin types. | |
2276 | (gnuv3_make_method_ptr): Likewise. | |
2277 | ||
2278 | * cp-valprint.c (cp_print_class_member): Expect pointer type | |
2279 | instead of class type. Use its length when extracting value. | |
2280 | * c-valprint.c (c_val_print): Update call to cp_print_class_member. | |
2281 | ||
5ed92fa8 UW |
2282 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2283 | ||
2284 | * stack.c (return_command): Use frame architecture to determine | |
2285 | default integer return type. | |
2286 | ||
2287 | * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture | |
2288 | to determine pointer types. | |
2289 | (f77_get_dynamic_upperbound): Likewise. | |
2290 | ||
2291 | * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove. | |
2292 | (resolve_msgsend): Use architecture of current frame to determine | |
2293 | pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT. | |
2294 | (resolve_msgsend_stret, resolve_msgsend_super, | |
2295 | resolve_msgsend_super_stret): Likewise. | |
2296 | ||
0dfff4cb UW |
2297 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2298 | ||
2299 | * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch) | |
2300 | instead of builtin_type_ macros. | |
2301 | * amd64-tdep.c (amd64_register_type): Likewise. | |
2302 | (amd64_get_longjmp_target): Likewise. | |
2303 | * arm-tdep.c (arm_register_type): Likewise. | |
2304 | * avr-tdep.c (avr_register_type): Likewise. | |
2305 | * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise. | |
2306 | * frv-tdep.c (frv_register_type): Likewise. | |
2307 | * h8300-tdep.c (h8300_register_type): Likewise. | |
2308 | * hppa-tdep.c (hppa32_convert_from_func_ptr_addr, | |
2309 | hppa_skip_trampoline_code): Likewise. | |
2310 | * i386-tdep.c (i386_register_type): Likewise. | |
2311 | (i386_unwind_pc, i386_sse_type): Likewise. | |
2312 | * ia64-tdep.c (ia64_register_type): Likewise. | |
2313 | * m32r-tdep.c (m32r_register_type): Likewise. | |
2314 | * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise. | |
2315 | * m88k-tdep.c (m88k_register_type): Likewise. | |
2316 | * mep-tdep.c (mep_register_type): Likewise. | |
2317 | * mips-tdep.c (mips_pseudo_register_type): Likewise. | |
2318 | * mn10300-tdep.c (mn10300_register_type): Likewise. | |
2319 | * mt-tdep.c (mt_copro_register_type): Likewise. | |
2320 | * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise. | |
2321 | (rs6000_convert_register_p, rs6000_register_to_value, | |
2322 | rs6000_value_to_register): Likewise. | |
2323 | * s390-tdep.c (s390_register_type): Likewise. | |
2324 | * sh64-tdep.c (sh64_register_type): Likewise. | |
2325 | (sh64_build_float_register_type, sh64_do_fp_register): Likewise. | |
2326 | * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type, | |
2327 | sh_sh4_build_float_register_type, sh_sh4_register_type, | |
2328 | sh_default_register_type): Likewise. | |
2329 | * sparc64-tdep.c (sparc64_register_type): Likewise. | |
2330 | * sparc-tdep.c (sparc32_register_type): Likewise. | |
2331 | * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise. | |
2332 | * v850-tdep.c (v850_register_type): Likewise. | |
2333 | * vax-tdep.c (vax_register_type): Likewise. | |
2334 | * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc, | |
2335 | xtensa_push_dummy_call): Likewise. | |
2336 | ||
2337 | * std-regs.c (value_of_builtin_frame_fp_reg, | |
2338 | value_of_builtin_frame_pc_reg): Likewise. | |
2339 | * target-descriptions.c (tdesc_register_type): Likewise. | |
2340 | ||
6d84d3d8 UW |
2341 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2342 | ||
2343 | * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32 | |
2344 | instead of builtin_type_int as default unspecified integral type. | |
2345 | (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type, | |
2346 | assign_component, to_fixed_range_type): Likewise. | |
2347 | * ada-typeprint.c (print_range, print_range_bound, | |
2348 | print_range_type_named): Likewise. | |
2349 | * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise. | |
2350 | * eval.c (evaluate_subexp_standard): Likewise. | |
2351 | * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise. | |
2352 | * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset, | |
2353 | build_gdb_vtable_type): Likewise. | |
2354 | * jv-lang.c (java_array_type): Likewise. | |
2355 | * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise. | |
2356 | * m2-valprint.c (m2_print_long_set): Likewise. | |
2357 | * parse.c (follow_types): Likewise. | |
2358 | * p-typeprint.c (pascal_type_print_base): Likewise. | |
2359 | * valops.c (value_one, value_array, value_string, | |
2360 | value_bitstring): Likewise. | |
2361 | * value.c (allocate_repeat_value, value_from_string): Likewise. | |
2362 | * varobj.c (c_describe_child): Likewise. | |
2363 | * mt-tdep.c (mt_register_type): Likewise. | |
2364 | * sh-tdep.c (sh_sh4_build_float_register_type): Likewise. | |
2365 | * sh64-tdep.c (sh64_build_float_register_type): Likewise. | |
2366 | ||
180b9a0e UW |
2367 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2368 | ||
2369 | * defs.h (struct gdbarch): Add forward declaration. | |
2370 | (set_next_address): Add GDBARCH argument. | |
2371 | * printcmd.c (set_next_address): Use it to find pointer type. | |
2372 | * breakpoint.c (breakpoint_1): Update call. | |
2373 | * source.c (line_info): Likewise. | |
2374 | * findcmd.c (find_command): Use current_gdbarch to find pointer type. | |
2375 | ||
2376 | * breakpoint.c (set_breakpoint_count): Use platform-neutral | |
2377 | types for internal variable values. | |
2378 | * infrun.c (handle_inferior_event): Likewise. | |
2379 | * source.c (forward_search_command, reverse_search_command): Likewise. | |
2380 | * tracepoint.c (set_tracepoint_count, set_traceframe_num, | |
2381 | set_tracepoint_num, set_traceframe_context): Likewise. | |
2382 | ||
b769d911 UW |
2383 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2384 | ||
2385 | * gdbtypes.h (struct builtin_type): Remove builtin_true_char | |
2386 | and builtin_true_unsigned_char. | |
2387 | (builtin_type_true_char): Remove macro, add extern declaration. | |
2388 | (builtin_type_true_unsigned_char): Add extern declaration. | |
2389 | * gdbtypes.c (builtin_type_true_char): New global variable. | |
2390 | (builtin_type_true_unsigned_char): Likewise. | |
2391 | (_initialize_gdbtypes): Initialize them. | |
2392 | (gdbtypes_post_init): Do not initialize builtin_true_char | |
2393 | and builtin_true_unsigned_char members of struct builtin_type. | |
2394 | ||
2395 | * printcmd.c (print_scalar_formatted): Do not use builtin_type; | |
2396 | use builtin_type_true_unsigned_char instead. | |
2397 | ||
2398 | * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char | |
2399 | instead of builtin_type_char for internal string. | |
2400 | ||
fde6c819 UW |
2401 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2402 | ||
2403 | * gdbtypes.h (builtin_type_void): Remove macro, add declaration. | |
2404 | (builtin_type_f_void): Remove macro. | |
2405 | * gdbtypes.c (builtin_type_void): New global variable. | |
2406 | (_initialize_gdbtypes): Initialize it. | |
2407 | ||
2408 | * gnu-v3-abi.c (build_gdb_vtable_type): Do not call | |
2409 | lookup_pointer_type or lookup_function_type on builtin_type_void. | |
2410 | * printcmd.c (set_next_address): Likewise. | |
2411 | * objc-lang.c (value_nsstring): Likewise. | |
2412 | * mt-tdep.c (mt_copro_register_type): Likewise. | |
2413 | * xtensa-tdep.c (xtensa_register_type): Likewise. | |
2414 | ||
2415 | * symfile.c (syms_from_objfile): Remove special handling | |
2416 | of builtin_type_void and builtin_type_char. | |
2417 | ||
d4dbb9c7 UW |
2418 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2419 | ||
2420 | * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead | |
2421 | of builtin_type_ macros when handling OP_OBJC_ operations. | |
2422 | * objc-lang.c (print_object_command): Likewise. | |
2423 | ||
8ca1c40e UW |
2424 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2425 | ||
2426 | * ada-valprint.c: Include "objfiles.h". | |
2427 | (ada_val_print_1): Use the gdbarch associated with the objfile whether | |
2428 | a System.Address type is defined to retrieve the proper pointer type | |
2429 | to use to print it. | |
2430 | ||
3cb382c9 UW |
2431 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2432 | ||
2433 | * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as | |
2434 | result type instead of builtin_type_int. | |
2435 | (value_subscript_packed): Use pos_atr instead of value_pos_atr. | |
2436 | (ada_value_subscript): Update call to value_pos_atr. | |
2437 | (ada_value_ptr_subscript): Likewise. | |
2438 | (ada_evaluate_subexp): Likewise. | |
2439 | ||
a53b7a21 UW |
2440 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2441 | ||
2442 | * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double. | |
2443 | (cast_from_fixed_to_double): Rename to ... | |
2444 | (cast_from_fixed): ... this. Add TYPE parameter. Use it instead | |
2445 | of builtin_type_double. | |
2446 | (ada_value_cast): Use cast_from_fixed instead of casting result | |
2447 | of cast_from_fixed_to_double. | |
2448 | (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double. | |
2449 | ||
22fe0fbb UW |
2450 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2451 | ||
2452 | * valops.c (value_ind): No longer allow dereferencing an | |
2453 | integer type. | |
2454 | * eval.c (evaluate_subexp_standard): Handle deferencing an | |
2455 | integer type here. | |
2456 | * ada-lang.c (ada_evaluate_subexp): Likewise. | |
2457 | ||
d8631d21 UW |
2458 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2459 | ||
2460 | * ada-valprint.c (ada_val_print_1): When implicitly dereferencing | |
2461 | a reference type, pass the reference type directly to unpack_pointer. | |
2462 | * c-valprint.c (c_val_print): Likewise. | |
2463 | * f-valprint.c (f_val_print): Likewise. | |
2464 | * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise. | |
2465 | * p-valprint.c (pascal_val_print): Likewise. | |
2466 | ||
cb18ec49 UW |
2467 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2468 | ||
2469 | * eval.c (evaluate_subexp_standard): Use builtin_type_int8 | |
2470 | to construct the EVAL_SKIP dummy return value. | |
2471 | * ada-lang.c (ada_evaluate_subexp): Likewise. | |
2472 | * jv-lang.c (evaluate_subexp_java): Likewise. | |
2473 | * m2-lang.c (evaluate_subexp_modula2): Likewise. | |
2474 | * scm-lang.c (evaluate_exp): Likewise. | |
2475 | ||
0ab7ba45 UW |
2476 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2477 | ||
2478 | * value.h (coerce_enum, coerce_number): Remove prototypes. | |
2479 | * value.c (coerce_enum, coerce_number): Remove. | |
2480 | * valarith.c (value_x_binop): Do not call coerce_enum. | |
2481 | (value_x_unop): Likewise. | |
2482 | (value_logical_not): Call coerce_array instead of coerce_number. | |
2483 | ||
f7c79c41 UW |
2484 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2485 | ||
2486 | * ax-gdb.c: Include "language.h". | |
2487 | (gen_frame_args_address): Add GDBARCH parameter; use it | |
2488 | instead of current_gdbarch. | |
2489 | (gen_frame_locals_address): Likewise. | |
2490 | (gen_var_ref): Add GDBARCH parameter. Update calls to | |
2491 | gen_frame_args_address and gen_frame_locals_address. Use | |
2492 | pointer type from gdbarch. | |
2493 | (gen_usual_unary): Add EXP parameter. Use integer type | |
2494 | from exp->gdbarch. | |
2495 | (gen_usual_arithmetic): Likewise. | |
2496 | (gen_integral_promotions): Likewise. | |
2497 | (gen_add, gen_sub): Remove. | |
2498 | (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions. | |
2499 | (gen_logical_not): Use passed-in boolean result type | |
2500 | instead of builtin_type_int. | |
2501 | (gen_complement): Do not call gen_usual_unary or | |
2502 | gen_integral_promotions. | |
2503 | (gen_struct_ref): Call require_rvalue instead of gen_usual_unary. | |
2504 | (gen_repeat): Add EXP parameter. Update call to gen_expr. | |
2505 | Use builtin_type_int32 as internal range type. | |
2506 | (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE | |
2507 | as result type. Update call to gen_expr. | |
2508 | (gen_expr): Add EXP parameter. Update calls to gen_expr, | |
2509 | gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic, | |
2510 | and gen_integral_promotions. Call gen_ptradd, gen_ptrsub, | |
2511 | gen_ptrdiff, or gen_binop instead of gen_add or gen_sub. | |
2512 | Use exp->gdbarch instead of current_gdbarch. | |
2513 | Call language_bool_type to determine result type of UNOP_LOGICAL_NOT. | |
2514 | ||
f44316fa UW |
2515 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2516 | ||
2517 | * eval.c (evaluate_subexp_standard): Add calls to binop_promote | |
2518 | and unop_promote before calling value_binop et. al. | |
2519 | * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote | |
2520 | and unop_promote before calling value_binop et. al. | |
2521 | ||
2522 | * valarith.c (value_binop): Do not call binop_promote or unop_promote. | |
2523 | (value_pos): Do not call unop_promote. | |
2524 | (value_neg, value_complement): Likewise. | |
2525 | ||
4066e646 UW |
2526 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2527 | ||
2528 | * value.h (unop_promote, binop_promote): Add prototypes. | |
2529 | * eval.c (unop_promote, binop_promote): New functions. | |
2530 | * valarith.c (unop_result_type, binop_result_type): Remove. | |
2531 | (value_binop): Call binop_promote or unop_promote. | |
2532 | Inline remaining parts of binop_result_type. Remove special | |
2533 | code to truncate integer values for unsigned operations. | |
2534 | (value_pos): Call unop_promote. Inline remaining parts of | |
2535 | unop_result_type. | |
2536 | (value_neg, value_complement): Likewise. | |
2537 | ||
89eef114 UW |
2538 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2539 | ||
2540 | * value.h (value_add, value_sub): Remove. | |
2541 | (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes. | |
2542 | * valarith.c (value_add, value_sub): Remove. | |
2543 | (value_ptradd, value_ptrsub, value_ptrdiff): New functions. | |
2544 | (find_size_for_pointer_math): Add assertion. Update comment. | |
2545 | (value_binop): Update comment. | |
2546 | ||
2547 | * eval.c (ptrmath_type_p): New function. | |
2548 | (evaluate_subexp_standard): Replace value_add and value_sub | |
2549 | by value_ptradd, value_ptrsub, value_ptrdiff or value_binop. | |
2550 | Use builtin_type_uint8 instead of builtin_type_char to hold | |
2551 | the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations. | |
2552 | * valarith.c (value_subscript): Replace value_add by | |
2553 | value_ptradd. Replace value_sub by value_binop. | |
2554 | * ada-lang.c (ada_value_ptr_subscript): Likewise. | |
2555 | (ada_tag_name_2): Replace value_add by value_ptradd. | |
2556 | (ada_evaluate_subexp): Replace value_add and value_sub by | |
2557 | value_binop. | |
2558 | * m2-lang.c (evaluate_subexp_modula2): Replace value_add | |
2559 | by value_ptradd. | |
2560 | * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise. | |
2561 | * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise. | |
2562 | ||
98b90dd8 UW |
2563 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2564 | ||
2565 | * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of | |
2566 | the expression architecture instead of builtin_type_int as the | |
2567 | sizeof return type. | |
2568 | ||
c806c55a UW |
2569 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2570 | ||
2571 | * expression.h (enum exp_opcode): Document OP_COMPLEX to take | |
2572 | a type parameter as expression element. | |
2573 | * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result | |
2574 | type as expression element. | |
2575 | * f-exp.y: Pass in type when buildin OP_COMPLEX expression. | |
2576 | * parse.c (operator_length_standard): Update length of OP_COMPLEX. | |
2577 | ||
fbb06eb1 UW |
2578 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2579 | ||
2580 | * language.h (struct language_arch_info): New members | |
2581 | bool_type_default and bool_type_symbol. | |
2582 | (lang_bool_type): Remove prototype. | |
2583 | (LA_BOOL_TYPE): Remove macro. | |
2584 | (language_bool_type): Add prototype. | |
2585 | * language.c (lang_bool_type): Remove. | |
2586 | (language_bool_type): New function. | |
2587 | ||
2588 | * value.h (value_in): Change return value to int. | |
2589 | * value.c (value_in): Return int instead of struct value *. | |
2590 | ||
2591 | * eval.c (evaluate_subexp_standard): Call language_bool_type instead | |
2592 | of using LA_BOOL_TYPE. Update call to value_in. | |
2593 | * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead | |
2594 | of using LA_BOOL_TYPE or builtin_type_int for boolean values. | |
2595 | ||
2596 | * language.c (unknown_language_arch_info): Set bool_type_default member | |
2597 | of struct language_arch_info. | |
2598 | * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and | |
2599 | bool_type_default members of struct language_arch_info. | |
2600 | * c-lang.c (c_language_arch_info): Set bool_type_default member | |
2601 | of struct language_arch_info. | |
2602 | (cplus_language_arch_info): Set bool_type_symbol and bool_type_default | |
2603 | members of struct language_arch_info. | |
2604 | * f-lang.c (f_language_arch_info): Set bool_type_symbol and | |
2605 | bool_type_default members of struct language_arch_info. | |
2606 | * jv-lang.c (java_language_arch_info): Set bool_type_symbol and | |
2607 | bool_type_default members of struct language_arch_info. | |
2608 | * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and | |
2609 | bool_type_default members of struct language_arch_info. | |
2610 | * p-lang.c (p_language_arch_info): Set bool_type_symbol and | |
2611 | bool_type_default members of struct language_arch_info. | |
2612 | ||
de7b6b47 UW |
2613 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2614 | ||
2615 | * jv-lang.c (enum java_primitive_types): New type. | |
2616 | (java_language_arch_info): New function. | |
2617 | (java_language): Use it instead of c_language_arch_info. | |
2618 | ||
afc05acb UW |
2619 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2620 | ||
2621 | * value.h (value_bitstring_subscript): New prototype. | |
2622 | * valarith.h (value_bitstring_subscript): New function. | |
2623 | (value_subscript): No longer handle TYPE_CODE_BITSTRING. | |
2624 | * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript | |
2625 | instead of value_subscript to handle TYPE_CODE_BITSTRING. | |
2626 | ||
3e79cecf UW |
2627 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2628 | ||
2629 | * expression.h (struct expression): New member GDBARCH. | |
2630 | * parse.c (parse_exp_in_context): Initialize it. | |
2631 | * parser-def.h (parse_gdbarch, parse_language): New macros. | |
2632 | ||
2633 | * ada-exp.y (parse_type): New macro. | |
2634 | Replace builtin_type_ macros by using parse_type. | |
2635 | Replace current_language by parse_language. | |
2636 | * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch. | |
2637 | Replace builtin_type_ macros. | |
2638 | ||
2639 | * c-exp.y (parse_type): New macro. | |
2640 | Replace builtin_type_ macros by using parse_type. | |
2641 | (parse_number): Replace current_gdbarch by parse_gdbarch. | |
2642 | (yylex): Replace current_language by parse_language. | |
2643 | ||
2644 | * f-exp.y (parse_type, parse_f_type): New macros. | |
2645 | Replace builtin_type_ macros by using parse_{f_,}type. | |
2646 | (parse_number): Replace current_gdbarch by parse_gdbarch. | |
2647 | (yylex): Replace current_language by parse_language. | |
2648 | ||
2649 | * jv-exp.y (parse_type): New macro. | |
2650 | (parse_number): Replace builtin_type_ macros by using parse_type. | |
2651 | ||
2652 | * m2-exp.y (parse_type, parse_m2_type): New macros. | |
2653 | Replace builtin_type_ macros by using parse_{m2_,}type. | |
2654 | ||
2655 | * objc-exp.y (parse_type): New macro. | |
2656 | Replace builtin_type_ macros by using parse_type. | |
2657 | (parse_number): Replace current_gdbarch by parse_gdbarch. | |
2658 | (yylex): Replace current_language by parse_language. | |
2659 | ||
2660 | * p-exp.y (parse_type): New macro. | |
2661 | Replace builtin_type_ macros by using parse_type. | |
2662 | (parse_number): Replace current_gdbarch by parse_gdbarch. | |
2663 | (yylex): Replace current_language by parse_language. | |
2664 | ||
c841afd5 UW |
2665 | 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com> |
2666 | ||
2667 | * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE | |
2668 | and DATA_SYMBOL_TYPE arguments. | |
2669 | * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and | |
2670 | DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR. | |
2671 | (write_dollar_variable): Update call. | |
2672 | ||
2673 | * ada-exp.y (write_var_or_type): Update call. | |
2674 | * c-exp.y: Likewise. | |
2675 | * f-exp.y: Likewise. | |
2676 | * jv-exp.y: Likewise. | |
2677 | * m2-exp.y: Likewise. | |
2678 | * objc-exp.y: Likewise. | |
2679 | * p-exp.y: Likewise. | |
2680 | ||
0c1f74cf JB |
2681 | 2008-09-10 Joel Brobecker <brobecker@adacore.com> |
2682 | ||
2683 | * ada-lang.c (ada_parent_type): Add handling of the case where | |
2684 | the _parent field is a pointer and/or has a parallel XVS type. | |
2685 | (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an | |
2686 | EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return | |
2687 | the type of the tag instead of doing forcing an EVAL_NORMAL | |
2688 | expression evaluation. | |
2689 | ||
5823c3ef JB |
2690 | 2008-09-10 Paul N. Hilfinger <hilfinger@adacore.com> |
2691 | Joel Brobecker <brobecker@adacore.com> | |
2692 | ||
2693 | * ada-lang.c (is_digits_suffix): New function. | |
2694 | (is_dot_digits_suffix): Remove. | |
2695 | (ada_lookup_symbol_list): Remove digits suffix from minimal symbols | |
2696 | before looking up in symbol table, and do not use wild matches on them. | |
2697 | (wild_match): Reimplement for speed and to allow matching of operator | |
2698 | symbols. | |
2699 | (is_valid_name_for_wild_match): Return zero for names that do not | |
2700 | follow the GNAT encoding. | |
2701 | ||
2702 | (is_name_suffix): Fix typo in comment. | |
2703 | (to_record_with_fixed_variant_part): Ditto. | |
2704 | ||
e5fa8013 PA |
2705 | 2008-09-10 Pedro Alves <pedro@codesourcery.com> |
2706 | ||
2707 | * Makefile.in (gnu-nat.o): New rule. | |
2708 | ||
6d2e05aa JB |
2709 | 2008-09-10 Joel Brobecker <brobecker@adacore.com> |
2710 | ||
2711 | * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use | |
2712 | archecture-neutral builtin_type_int32 instead of builtin_type_int. | |
2713 | ||
2ac8a782 JB |
2714 | 2008-09-10 Joel Brobecker <brobecker@adacore.com> |
2715 | ||
2716 | * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]: | |
2717 | Add special handling for pointer types. | |
2718 | ||
b861ac81 PA |
2719 | 2008-09-10 Pedro Alves <pedro@codesourcery.com> |
2720 | ||
2721 | * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the | |
2722 | right scope level. | |
2723 | (inf_ttrace_resume, inf_ttrace_wait): Typos. | |
2724 | ||
030b4912 UW |
2725 | 2008-09-10 Ulrich Weigand <uweigand@de.ibm.com> |
2726 | ||
2727 | * ada-lang.c (ada_array_length): Use builtin_type_int32 instead | |
2728 | of builtin_type_int. | |
2729 | (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type | |
2730 | instead of builtin_type_int. | |
2731 | ||
d51fd4c8 PA |
2732 | 2008-09-09 Pedro Alves <pedro@codesourcery.com> |
2733 | ||
2734 | * infrun.c (normal_stop): Run hook-stop last. | |
2735 | ||
11cb6f65 PA |
2736 | 2008-09-09 Pedro Alves <pedro@codesourcery.com> |
2737 | ||
2738 | * gnu-nat.c (gnu_pid_to_exec_file): Delete. | |
2739 | (init_gnu_ops): Don't register it. | |
2740 | ||
a9ab7422 PA |
2741 | 2008-09-09 Pedro Alves <pedro@codesourcery.com> |
2742 | ||
2743 | * gnu-nat.c (gnu_attach): Push target before fetching the list of | |
2744 | threads. | |
2745 | ||
694182d2 DJ |
2746 | 2008-09-08 Daniel Jacobowitz <dan@codesourcery.com> |
2747 | ||
2748 | * valops.c (value_cast_structs): Return NULL for failure. | |
2749 | (value_cast): Handle NULL from value_cast_structs. | |
2750 | (value_fetch_lazy): Call check_typedef. Remove unused variable. | |
2751 | ||
dcf4fbde PA |
2752 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
2753 | ||
2754 | * inferior.h (context_switch_to): Delete. | |
2755 | * infrun.c (context_switch): Don't save and load infrun state. | |
2756 | (context_switch_to): Delete. | |
2757 | ||
2758 | * infcmd.c (proceed_thread_callback): Replace context_switch_to | |
2759 | calls by switch_to_thread calls. | |
2760 | ||
2761 | * gdbthread.h (save_infrun_state, load_infrun_state): Delete. | |
2762 | * thread.c (main_thread_state, main_thread_executing): Delete. | |
2763 | (inferior_thread): Delete references to them. | |
2764 | (add_thread_silent): Fix case where we're adding a thread with the | |
2765 | same ptid as an exited thread. Remove references to | |
2766 | context-switching. | |
2767 | (load_infrun_state, save_infrun_state): Delete. | |
2768 | (thread_alive, is_thread_state, any_running, is_executing) | |
2769 | (set_executing): Remove the special handling for targets that | |
2770 | don't register any thread. | |
2771 | (restore_current_thread, thread_apply_all_command) | |
2772 | (do_captured_thread_select): Unconditionally call | |
2773 | switch_to_thread. | |
2774 | ||
2775 | * mi/mi-main.c (mi_cmd_execute): Check for exited threads. | |
2776 | Call switch_to_thread instead of context_switch_to. | |
2777 | ||
95e54da7 PA |
2778 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
2779 | ||
2780 | Remove global continuations in favour of a per-thread | |
2781 | continuations. | |
2782 | ||
2783 | * gdbthread.h (struct thread_info): Add comments around | |
2784 | continuations and intermediate_continuations. | |
2785 | (save_infrun_state, load_infrun_state): Delete continuations and | |
2786 | intermediate_continuations arguments. | |
fedae5ff | 2787 | * infrun.c (context_switch): Don't context-switch the continuations. |
95e54da7 PA |
2788 | * thread.c (clear_thread_inferior_resources): Discard all |
2789 | continuations of the thread we're clearing. | |
2790 | (save_infrun_state, load_infrun_state): Delete continuations and | |
2791 | intermediate_continuations arguments, and the code referencing | |
2792 | them. | |
2793 | * utils.c: Include "gdbthread.h". | |
2794 | (cmd_continuation, intermediate_continuation): Delete. | |
2795 | (add_continuation): Add thread_info* argument. Install the | |
2796 | continuation on it. | |
2797 | (restore_thread_cleanup): New. | |
2798 | (do_all_continuations_ptid, do_all_continuations_thread_callback): | |
2799 | New. | |
2800 | (do_all_continuations): Reimplement. | |
2801 | (discard_all_continuations_thread_callback, | |
2802 | discard_all_continuations_thread): New. | |
2803 | (discard_all_continuations): Reimplement. | |
2804 | (add_intermediate_continuation): Add thread_info* argument. | |
2805 | Install the continuation on it. | |
2806 | (do_all_intermediate_continuations_thread_callback) | |
2807 | (do_all_intermediate_continuations_thread): New. | |
2808 | (do_all_intermediate_continuations): Reimplement. | |
2809 | (discard_all_intermediate_continuations_thread_callback): New. | |
2810 | (discard_all_intermediate_continuations_thread): New. | |
2811 | (discard_all_intermediate_continuations): Reimplement. | |
2812 | ||
2813 | * breakpoint.c (until_break_command): Install the continuation on | |
2814 | the current thread. | |
2815 | ||
2816 | * defs.h (cmd_continuation, intermediate_continuation): Delete. | |
2817 | (struct thread_info): Forward declare. | |
2818 | (add_continuation, add_intermediate_continuation): Add | |
2819 | thread_info* argument. | |
2820 | (do_all_continuations_thread, discard_all_continuations_thread) | |
2821 | (do_all_intermediate_continuations_thread) | |
2822 | (discard_all_intermediate_continuations_thread): Declare. | |
2823 | * inf-loop.c (inferior_event_handler): In non-stop only run | |
2824 | continuations on the thread that stopped. In all-stop, run | |
2825 | continuations on all threads. | |
2826 | * infcmd.c (step_once, finish_command): Adjust. | |
2827 | ||
414c69f7 PA |
2828 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
2829 | ||
2830 | Remove the global stop_step in favour of a per-thread | |
2831 | stop_step. | |
2832 | ||
2833 | * inferior.h (stop_step): Delete. | |
2834 | ||
2835 | * gdbthread.h (struct thread_info): Add comments to stop_step. | |
2836 | (save_infrun_state, load_infrun_state): Remove stop_step argument. | |
2837 | * thread.c (load_infrun_state, save_infrun_state): Remove | |
2838 | stop_step argument, and references to it. | |
2839 | ||
2840 | * infrun.c (clear_proceed_status): Clear stop_step. | |
2841 | (fetch_inferior_event): Adjust. | |
2842 | (context_switch): Don't context-switch stop_step. | |
2843 | (handle_inferior_event): Adjust. | |
2844 | (normal_stop): Adjust. | |
2845 | (save_inferior_status, restore_inferior_status): Adjust. | |
2846 | ||
2847 | * infcmd.c (stop_step): Delete. | |
2848 | (step_1, step_1_continuation, step_once, until_next_command): | |
2849 | Adjust. | |
2850 | ||
af679fd0 PA |
2851 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
2852 | ||
2853 | Remove the global step_multi in favour of a per-thread | |
2854 | step_multi. | |
2855 | ||
2856 | * inferior.h (step_multi): Delete. | |
2857 | * gdbthread.h (struct thread_info): Add comments around | |
2858 | step_multi. | |
2859 | (save_infrun_state, load_infrun_state): Remove step_multi | |
2860 | parameter. | |
2861 | * thread.c (load_infrun_state, save_infrun_state): Remove | |
2862 | step_multi argument, and references to it. | |
2863 | * infcmd.c (step_multi): Delete. | |
2864 | (step_1): Adjust. | |
2865 | (step_1_continuation, until_next_command): Adjust. | |
2866 | * infrun.c (fetch_inferior_event): Adjust. | |
2867 | (context_switch): Don't context-switch step_multi. | |
2868 | (print_stop_reason, normal_stop): Adjust. | |
2869 | ||
2020b7ab PA |
2870 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
2871 | ||
2872 | Remove the global stop_signal in favour of a per-thread | |
2873 | stop_signal. | |
2874 | ||
2875 | * inferior.h (stop_signal): Delete. | |
2876 | * gdbthread.h (save_infrun_state, load_infrun_state): Remove | |
2877 | stop_signal argument. | |
2878 | * thread.c (load_infrun_state, save_infrun_state): Remove | |
2879 | stop_signal argument. Don't reference it. | |
2880 | ||
2881 | * infcmd.c (stop_signal): Delete. | |
2882 | (program_info): Adjust. | |
2883 | * infrun.c (resume): Clear stop_signal. | |
2884 | (proceed): Adjust. Pass the last stop_signal to the thread we're | |
2885 | resuming. | |
2886 | (context_switch): Don't context-switch stop_signal. | |
2887 | (handle_inferior_event, keep_going): Adjust. | |
2888 | (save_inferior_status, restore_inferior_status): Adjust. | |
2889 | ||
2890 | * fbsd-nat.c: Include "gdbthread.h". | |
2891 | (find_signalled_thread, find_stop_signal): New. | |
2892 | (fbsd_make_corefile_notes): Use it. | |
2893 | * fork-child.c (startup_inferior): Adjust. | |
2894 | ||
2895 | * linux-nat.c (get_pending_status): Adjust. | |
2896 | (linux_nat_do_thread_registers): Adjust. | |
2897 | (find_signalled_thread, find_stop_signal): New. | |
2898 | (linux_nat_do_thread_registers): Add stop_signal parameter. | |
2899 | (struct linux_nat_corefile_thread_data): Add stop_signal member. | |
2900 | (linux_nat_corefile_thread_callback): Pass stop_signal. | |
2901 | (linux_nat_do_registers): Delete. | |
2902 | (linux_nat_make_corefile_notes): Use find_stop_signal. Assume | |
2903 | there's always a thread. | |
2904 | ||
2905 | * procfs.c (find_signalled_thread, find_stop_signal): New. | |
2906 | (find_stop_signal): New. | |
2907 | (procfs_do_thread_registers): Add stop_signal parameter. | |
2908 | (struct procfs_corefile_thread_data): Add stop_signal member. | |
2909 | (procfs_corefile_thread_callback): Pass args->stop_signal. | |
2910 | (procfs_make_note_section): Find the last stop_signal. | |
2911 | ||
2912 | * solib-irix.c: Include gdbthread.h. | |
2913 | (irix_solib_create_inferior_hook): Adjust. | |
2914 | * solib-osf.c: Include gdbthread.h. | |
2915 | (osf_solib_create_inferior_hook): Adjust. | |
2916 | * solib-sunos.c: Include gdbthread.h. | |
2917 | (sunos_solib_create_inferior_hook): Adjust. | |
2918 | * solib-svr4.c: Include gdbthread.h. | |
2919 | (svr4_solib_create_inferior_hook): Adjust. | |
2920 | ||
2921 | * win32-nat.c (do_initial_win32_stuff): Adjust. | |
2922 | ||
32400beb PA |
2923 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
2924 | ||
2925 | * gdbthread.h (struct thread_info): Add comments around | |
2926 | proceed_to_finish. | |
2927 | (save_infrun_state, load_infrun_state): Remove proceed_to_finish | |
2928 | argument. | |
2929 | * thread.c (load_infrun_state, save_infrun_state): Delete | |
2930 | proceed_to_finish argument and references to it. | |
2931 | ||
2932 | * infcall.c (call_function_by_hand): Adjust. | |
2933 | * infcmd.c (finish_command): Adjust. | |
2934 | * infrun.c (proceed_to_finish): Delete. | |
2935 | (clear_proceed_status): Adjust. | |
2936 | (context_switch): Don't context-switch proceed_to_finish. | |
2937 | (normal_stop, save_inferior_status, restore_inferior_status): | |
2938 | Adjust. | |
2939 | ||
347bddb7 PA |
2940 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
2941 | ||
2942 | * inferior.h (stop_bpstat): Delete. | |
2943 | ||
2944 | * breakpoint.h (bpstat_do_actions): Remove bpstat* argument. | |
2945 | ||
2946 | * breakpoint.c (bpstat_do_actions): Rename to ... | |
2947 | (bpstat_do_actions_1): ... this. Make static. Change return type | |
2948 | to int. Return true if a breakpoint proceeded. | |
2949 | (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1. | |
2950 | (delete_breakpoint): Don't reference the global stop_bpstat; it's | |
2951 | gone. | |
2952 | ||
2953 | * gdbthread.h (struct thread_info): Add stop_bpstat. | |
2954 | (save_infrun_state, load_infrun_state): Remove stop_bpstat | |
2955 | argument. | |
2956 | * thread.c (load_infrun_state, save_infrun_state): Remove | |
2957 | stop_bpstat argument, and the code referencing it. | |
2958 | ||
2959 | * infcall.c: Include "gdbthread.h". | |
2960 | (call_function_by_hand): Adjust. | |
2961 | * exceptions.c: Include "gdbthread.h". | |
2962 | (throw_exception): Adjust. | |
2963 | * infcmd.c (stop_bpstat): Delete. | |
2964 | (continue_command): In all-stop, set the ignore count on the | |
2965 | thread that reported the stop. In non-stop, set it on the current | |
2966 | thread. | |
2967 | (finish_command_continuation): Adjust. | |
2968 | (program_info): Adjust. | |
2969 | * infrun.c (clear_proceed_status): Adjust. | |
2970 | (context_switch): Don't context-switch stop_bpstat. | |
2971 | (handle_inferior_event): Adjust. | |
2972 | (normal_stop): Adjust. | |
2973 | (save_inferior_status, restore_inferior_status): Adjust. | |
2974 | ||
2975 | * inf-loop.c (inferior_event_handler): Remove parameter to | |
2976 | bpstat_do_actions call. | |
2977 | * top.c (command_loop): Remove parameter to bpstat_do_actions | |
2978 | call. Call it unconditionally. | |
2979 | * event-top.c (command_handler): Ditto. | |
2980 | * python/python.c (execute_gdb_command): Ditto. | |
2981 | ||
078130d0 PA |
2982 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
2983 | ||
2984 | * inferior.h (step_over_calls): Delete. | |
2985 | ||
2986 | * gdbthread.h (save_infrun_state, load_infrun_state): Remove | |
2987 | step_over_calls argument. | |
2988 | * thread.c (save_infrun_state, load_infrun_state): Remove | |
2989 | step_over_calls argument. Adjust. | |
2990 | ||
2991 | * infcmd.c (step_over_calls): Delete. | |
2992 | (step_1): Adjust. | |
2993 | * infrun.c (clear_proceed_status): Adjust. | |
2994 | (context_switch): Don't context-switch step_over_calls. | |
2995 | (handle_inferior_event, save_inferior_status) | |
2996 | (restore_inferior_status): Adjust. | |
2997 | ||
4e1c45ea PA |
2998 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
2999 | ||
3000 | Remove context switching in favour of accessing thread_info fields | |
3001 | directly. | |
3002 | ||
3003 | * infrun.c (stepping_over_breakpoint, step_resume_breakpoint): | |
3004 | Delete. | |
3005 | (struct thread_stepping_state): Delete. | |
3006 | (gtss, tss): Delete. | |
3007 | (follow_inferior_reset_breakpoints, follow_exec) | |
3008 | (resume, clear_proceed_status): Adjust. | |
3009 | (prev_pc): Delete. | |
3010 | (proceed, start_remote, init_wait_for_inferior): Adjust. | |
3011 | (struct execution_control_state): Add event_thread member. | |
3012 | (delete_step_resume_breakpoint_callback) | |
3013 | (delete_step_thread_step_resume_breakpoint) | |
3014 | (delete_step_thread_step_resume_breakpoint_cleanup) | |
3015 | (delete_step_thread_step_resume_breakpoint): New. | |
3016 | (wait_for_inferior, init_execution_control_state): Use | |
3017 | delete_step_thread_step_resume_breakpoint_cleanup. | |
3018 | (wait_for_inferior): Set the event_thread. | |
3019 | (fetch_inferior_event): Ditto. Delete the step-resume breakpoint | |
3020 | with delete_step_thread_step_resume_breakpoint. | |
3021 | (init_thread_stepping_state): Change parameter type to | |
3022 | thread_info. Adjust. | |
3023 | (context_switch): Don't context switch prev_pc, | |
3024 | stepping_over_breakpoint, step_resume_breakpoint, | |
3025 | step_range_start, step_range_end, step_frame_id, | |
3026 | tss->stepping_over_breakpoint, | |
3027 | tss->stepping_through_solib_after_catch, | |
3028 | tss->stepping_through_solib_catchpoints, tss->current_line, or | |
3029 | tss->current_symtab. | |
3030 | (adjust_pc_after_break, handle_inferior_event) | |
3031 | (currently_stepping, step_into_function) | |
3032 | (insert_step_resume_breakpoint_at_sal) | |
3033 | (insert_longjmp_resume_breakpoint, keep_going): Adjust. | |
3034 | (clear_stepping_state): New. | |
3035 | (normal_stop): Adjust. | |
3036 | (save_inferior_status, restore_inferior_status): Adjust. | |
3037 | ||
3038 | * gdbthread.h (struct thread_info): Comments describing the | |
3039 | members moved here. Add step_after_step_resume_breakpoint. | |
3040 | (delete_step_resume_breakpoint): Add thread_info argument. | |
3041 | (save_infrun_state, load_infrun_state): Remove prev_pc, | |
3042 | trap_expected, step_resume_breakpoint, step_range_start, | |
3043 | step_range_end, step_frame_id, another_trap, | |
3044 | stepping_through_solib_after_catch, | |
3045 | stepping_through_solib_catchpoints, current_line and | |
3046 | current_symtab function arguments. | |
3047 | (inferior_thread): Declare. | |
3048 | ||
3049 | * thread.c (inferior_thread): New. | |
3050 | (delete_step_resume_breakpoint): Add a thread_info parameter and | |
3051 | rewrite. | |
3052 | (load_infrun_state, save_infrun_state): Remove prev_pc, | |
3053 | trap_expected, step_resume_breakpoint, step_range_start, | |
3054 | step_range_end, step_frame_id, stepping_over_breakpoint, | |
3055 | stepping_through_solib_after_catch, | |
3056 | stepping_through_solib_catchpoints, current_line and | |
3057 | current_symtab args. Remove code referencing them. | |
3058 | ||
3059 | * infcmd.c (step_range_start, step_range_end, step_frame_id): | |
3060 | Delete. | |
3061 | (step_1, step_once, until_next_command): Adjust. | |
3062 | ||
3063 | * inferior.h (step_range_start, step_range_end, step_frame_id): | |
3064 | Delete. | |
3065 | ||
3066 | * linux-nat.c (linux_child_follow_fork): If following the child, | |
3067 | move the step state to it. Adjust. | |
3068 | * inf-ptrace.c (inf_ptrace_follow_fork): Ditto. | |
3069 | * inf-ttrace.c (inf_ttrace_follow_fork): Ditto. | |
3070 | ||
757f359d PA |
3071 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
3072 | ||
3073 | * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main | |
3074 | thread. | |
3075 | ||
0de3b513 PA |
3076 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
3077 | ||
3078 | * corelow.c (add_to_thread_list): If this is the first time we | |
3079 | hear about thread info, update inferior_ptid. | |
3080 | (core_open): Clear the thread list and set inferior_ptid before | |
3081 | acknowledging a new inferior. Find threads before fetching | |
3082 | register info. Give an upper target layer a chance to find and | |
3083 | claim new threads. Print core generation and stop signal info | |
3084 | after finding new threads. | |
3085 | (get_core_register_section): Look at the lwp member of | |
3086 | inferior_ptid for detecting if we have threads info, instead of | |
3087 | the pid member. | |
3088 | (core_pid_to_str): New. | |
3089 | (init_core_ops): Register core_pid_to_str. | |
3090 | ||
4189d2f8 PA |
3091 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
3092 | ||
3093 | * spu-linux-nat.c (spu_child_post_startup_inferior) | |
3094 | (spu_child_post_attach): Don't add the main thread here. | |
3095 | ||
617fd3b5 PA |
3096 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
3097 | ||
3098 | Use ptid_t.tid to store thread ids instead of ptid_t.pid. | |
3099 | ||
3100 | * gnu-nat.c (inf_validate_procs): If this is the first time we're | |
3101 | seeing a thread id, extend the main thread's ptid. If we still | |
3102 | have pending execs, don't be verbose about new threads. | |
3103 | (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive) | |
3104 | (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust. | |
3105 | * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): | |
3106 | Adjust. | |
3107 | ||
2689673f PA |
3108 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
3109 | ||
3110 | * procfs.c (to_attach): Create a procinfo for the current lwp. | |
3111 | Add it to gdb's thread list. | |
3112 | (procfs_fetch_registers, procfs_store_registers): Assume there's | |
3113 | always an lwp. | |
3114 | (procfs_wait): Don't add the main thread here. | |
3115 | (procfs_init_inferior): Create a procinfo for the main lwp here. | |
3116 | Change main thread's ptid with thread_change_ptid. | |
3117 | (procfs_notice_thread): Check for exited threads. | |
3118 | (procfs_corefile_thread_callback): Remove check for the main | |
3119 | process. | |
3120 | (procfs_make_note_section): Assume there is always a thread. | |
3121 | ||
3122 | * sol-thread.c (sol_thread_attach): Clear sol_thread_active before | |
3123 | attaching. Change the main thread ptid with thread_change_ptid. | |
3124 | (sol_thread_detach): Clear sol_thread_active. | |
3125 | (sol_thread_wait): Check for exited threads. | |
3126 | (sol_thread_create_inferior): Clear sol_thread_active before | |
3127 | creating a new inferior. Change the main thread ptid with | |
3128 | thread_change_ptid. | |
3129 | (sol_thread_mourn_inferior): Clear sol_thread_active. | |
3130 | (sol_find_new_threads_callback): Check for exited threads. | |
3131 | ||
62a93fa9 PA |
3132 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
3133 | ||
3134 | * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and | |
3135 | LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE, | |
3136 | TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole | |
3137 | process, and return TARGET_WAITKIND_IGNORE. | |
3138 | ||
438ac09b PA |
3139 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
3140 | ||
3141 | * inf-ttrace.c: Include <signal.h> | |
3142 | (inf_ttrace_delete_dead_threads_callback): New. | |
3143 | (inf_ttrace_resume_lwp): New. | |
3144 | (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't | |
3145 | delete dying threads until they are really dead. | |
3146 | (inf_ttrace_wait): After stopping the whole process, delete any | |
3147 | dying thread that is really dead by now. | |
3148 | (inf_ttrace_thread_alive): Return 1. | |
3149 | (inf_ttrace_extra_thread_info): New. | |
3150 | (inf_ttrace_target): Register inf_ttrace_extra_thread_info. | |
3151 | ||
2935f27f PA |
3152 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
3153 | ||
3154 | * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread | |
3155 | of the child fork. | |
3156 | (inf_ttrace_attach): Add the main thread. | |
3157 | (inf_ttrace_resume_callback): Check for exited threads. Adjust | |
3158 | for always a thread. | |
3159 | (inf_ttrace_wait): Decorate the main thread's ptid with lwp info | |
3160 | using thread_change_ptid, and set its private data. Don't add the | |
3161 | main thread here. | |
3162 | (inf_ttrace_pid_to_str): Adjust. | |
3163 | ||
fb5e7258 PA |
3164 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
3165 | ||
3166 | * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with | |
3167 | thread_change_ptid. Check for exited threads. | |
3168 | (bsd_uthread_find_new_threads): Check for exited threads. | |
3169 | ||
af990527 PA |
3170 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
3171 | ||
3172 | * inf-ptrace.c: Include "gdbthread.h". | |
3173 | (inf_ptrace_attach): Add the main thread here. | |
3174 | * linux-nat.c (linux_nat_attach): Don't add the main thread here. | |
3175 | Decorate the main thread id with the lwp id. | |
3176 | ||
27c9d204 PA |
3177 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
3178 | ||
3179 | * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with | |
3180 | thread_change_ptid. Don't add or mark the main thread as running | |
3181 | and executing here. | |
3182 | * fork-child.c (fork_inferior): Add the main thread here. | |
3183 | ||
de9f48f0 JG |
3184 | 2008-09-08 Jerome Guitton <guitton@adacore.com> |
3185 | ||
3186 | * rs6000-tdep.c (rs6000_fetch_instruction) | |
3187 | (rs6000_skip_stack_check): New functions. | |
3188 | (skip_prologue): Skip stack check sequence. | |
3189 | ||
52163a60 DD |
3190 | 2008-09-08 David Daney <ddaney@avtrex.com> |
3191 | ||
3192 | * dummy-frame.h (frame.h): Include it. | |
3193 | (struct frame_id): Remove declaration. | |
3194 | ||
87805e63 UW |
3195 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3196 | ||
3197 | * spu-tdep.c (spu_push_dummy_code): New function. | |
3198 | (spu_gdbarch_init): Install it. | |
3199 | ||
0b1553bc UW |
3200 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3201 | ||
3202 | * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz | |
3203 | instead of paddr_nz. | |
3204 | * gdbarch.c: Regenerate. | |
3205 | ||
3206 | * target.c (target_xfer_partial, debug_print_register): Use | |
3207 | core_addr_to_string_nz instead of paddr_nz. | |
3208 | ||
2454a024 UW |
3209 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3210 | ||
3211 | * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping | |
3212 | *before* calling gdbarch_init_osabi. | |
3213 | (rs6000_aix_init_osabi): Disable displaced stepping. | |
3214 | ||
b52323fa UW |
3215 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3216 | ||
3217 | * target.c (update_current_target): Do not inherit to_open | |
3218 | or to_close. | |
3219 | (pop_target): Call target_close on target_stack instead | |
3220 | of current_target. | |
3221 | (pop_all_targets_above): Likewise. | |
3222 | ||
fead6908 UW |
3223 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3224 | ||
3225 | * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function. | |
3226 | (gnuv3_print_method_ptr): Use it. | |
3227 | (gnuv3_method_ptr_to_value): Likewise. | |
3228 | ||
60441ab9 UW |
3229 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3230 | ||
3231 | * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to | |
3232 | register_area callback function. | |
3233 | * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter. | |
3234 | Use it instead of current_gdbarch. | |
3235 | * nto-procfs.c (procfs_store_registers): Update call. | |
3236 | ||
bb486190 UW |
3237 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3238 | ||
3239 | * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use | |
3240 | regcache architecture instead of current_gdbarch. | |
3241 | ||
9dacea90 UW |
3242 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3243 | ||
3244 | * mep-tdep.c (struct mep_prologue): Add gdbarch member. | |
3245 | (check_for_saved): Use it instead of current_gdbarch. | |
3246 | (is_arg_spill): Add gdbarch paramter. Use it instead | |
3247 | of current_gdbarch. | |
3248 | (mep_analyze_prologue): Add gdbarch parameter. Pass it | |
3249 | to is_arg_spill and check_for_saved. | |
3250 | (mep_skip_prologue, mep_analyze_frame_prologue): Update calls. | |
3251 | ||
5db8bbe5 UW |
3252 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3253 | ||
3254 | * hppa-tdep.c (internalize_unwinds): Use objfile architecture | |
3255 | instead of current_gdbarch. | |
3256 | ||
6ba38425 UW |
3257 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3258 | ||
3259 | * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter. | |
3260 | * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter. | |
3261 | Use it instead of current_gdbarch. | |
3262 | (m68kbsd_supply_fpregset): Update call. | |
3263 | * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
3264 | (m68kbsd_collect_fpregset): Likewise. | |
3265 | ||
35488783 UW |
3266 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3267 | ||
3268 | * cris-tdep.c (cris_version, cris_mode): Remove. | |
3269 | (crisv32_single_step_through_delay): Use tdep->cris_mode. | |
3270 | (cris_breakpoint_from_pc): Likewise. | |
3271 | (cris_frame_unwind_cache): Use tdep->cris_version. | |
3272 | (crisv32_scan_prologue): Likewise. | |
3273 | (cris_spec_reg_applicable): Add gdbarch argument. | |
3274 | Use tdep->cris_version. | |
3275 | (cris_register_size, cris_special_register_name): Update calls. | |
3276 | (cris_special_register_name): Add gdbarch argument. | |
3277 | (cris_register_name, crisv32_register_name): Update calls. | |
3278 | ||
9dae60cc UW |
3279 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3280 | ||
3281 | * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch | |
3282 | instead of current_gdbarch. | |
3283 | ||
3284 | * sh64-tdep.c (gdb_print_insn_sh64): Remove. | |
3285 | (sh64_gdbarch_init): Install print_insn_sh64 directly. | |
3286 | * sh-tdep.c (gdb_print_insn_sh): Remove. | |
3287 | (sh_gdbarch_init): Install print_insn_sh directly. | |
3288 | ||
3289 | * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi | |
3290 | from current_gdbarch. | |
3291 | (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions. | |
3292 | (mips_gdbarch_init): Install them instead of gdb_print_insn_mips | |
3293 | depending on mips_abi. | |
3294 | ||
24568a2c UW |
3295 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3296 | ||
3297 | * gdbarch.sh (addr_bits_remove): Change type to 'm'. | |
3298 | (smash_text_address): Likewise. | |
3299 | * gdbarch.c, gdbarch.h: Regenerate. | |
3300 | ||
3301 | * arch-utils.c (core_addr_identity): Add gdbarch parameter. | |
3302 | * arch-utils.h (core_addr_identity): Likewise. | |
3303 | * arm-tdep.c (arm_addr_bits_remove): Likewise. | |
3304 | (arm_smash_text_address): Likewise. | |
3305 | * hppa-tdep.c (hppa_smash_text_address): Likewise. | |
3306 | * m88k-tdep.c (m88k_addr_bits_remove): Likewise. | |
3307 | * s390-tdep.c (s390_addr_bits_remove): Likewise. | |
3308 | ||
3309 | * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter. | |
3310 | Use it instead of current_gdbarch. | |
3311 | ||
3312 | * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc, | |
3313 | arm_dwarf2_prev_register): Update calls. | |
3314 | * m88k-tdep.c (m88k_unwind_pc): Update call. | |
3315 | ||
f7fd4728 UW |
3316 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3317 | ||
3318 | * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument. | |
3319 | * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument. | |
3320 | Call gdbarch_integer_to_address directly instead of converting | |
3321 | to value and back. Update comment. | |
3322 | (execute_stack_op): Update call site. | |
3323 | * dwarf2loc.c (find_location_expression): Likewise. | |
3324 | (locexpr_describe_location): Update | |
3325 | ||
3326 | * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member. | |
3327 | * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch. | |
3328 | * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise. | |
3329 | (dwarf2_loc_desc_needs_frame): Likewise. | |
3330 | ||
714835d5 UW |
3331 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
3332 | ||
3333 | * breakpoint.h (struct bp_location): Change type of section | |
3334 | member to "struct obj_section *". | |
3335 | * tracepoint.h (struct tracepoint): Likewise. | |
3336 | * symtab.h (struct general_symbol_info): Replace bfd_section | |
3337 | member with obj_section. | |
3338 | (struct symtab_and_line): Change type of section member to | |
3339 | "struct obj_section *". | |
3340 | (SYMBOL_BFD_SECTION): Remove macro, replace by ... | |
3341 | (SYMBOL_OBJ_SECTION): ... this. | |
3342 | ||
3343 | * minsym.c (prim_record_minimal_symbol_and_info): Record symbol | |
3344 | section as obj_section instead of bfd_section. | |
3345 | ||
3346 | * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section | |
3347 | directly instead of looking of obj_section from bfd_section. | |
3348 | ||
3349 | * objfiles.h (find_pc_sect_section): Remove. | |
3350 | * objfiles.c (find_pc_sect_section): Remove. | |
3351 | (find_pc_section): Inline find_pc_sect_section code. | |
3352 | ||
3353 | * symfile.h (find_pc_overlay): Return struct obj_section *. | |
3354 | (find_pc_mapped_section): Likewise. | |
3355 | (section_is_overlay, section_is_mapped): Change type of section | |
3356 | argument to struct obj_section *. | |
3357 | (pc_in_mapped_range, pc_in_unmapped_range): Likewise. | |
3358 | (overlay_mapped_address, overlay_unmapped_address): Likewise. | |
3359 | (symbol_overlayed_address): Likewise. | |
3360 | * symtab.h (symbol_overlayed_address): Likewise. | |
3361 | * symfile.c (overlay_is_mapped): Remove. | |
3362 | (section_is_mapped): Inline overlay_is_mapped code. Update. | |
3363 | (overlay_invalidate_all): Update. | |
3364 | (section_is_overlay): Change section argument to type | |
3365 | "struct obj_section *". Use bfd_ methods. | |
3366 | (pc_in_unmapped_range): Likewise. Handle relocated sections. | |
3367 | (pc_in_mapped_range): Likewise. Handle relocated sections. | |
3368 | (sections_overlap): Likewise. | |
3369 | (overlay_unmapped_address): Likewise. | |
3370 | (overlay_mapped_address): Likewise. | |
3371 | (symbol_overlayed_address): Likewise. | |
3372 | (find_pc_overlay): Return struct obj_section *. | |
3373 | (find_pc_mapped_section): Likewise. | |
3374 | (list_overlays_command): Update. | |
3375 | (map_overlay_command, unmap_overlay_command): Update. | |
3376 | (simple_overlay_update): Update. | |
3377 | ||
3378 | * block.h (blockvector_for_pc_sect): Change section argument | |
3379 | to type "struct obj_section *". | |
3380 | (block_for_pc_sect): Likewise. | |
3381 | * block.c (blockvector_for_pc_sect): Change section argument | |
3382 | to type "struct obj_section *". | |
3383 | (block_for_pc_sect): Likewise. | |
3384 | * symtab.h (find_pc_sect_function, find_pc_sect_psymtab, | |
3385 | find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line, | |
3386 | lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise. | |
3387 | (matching_bfd_sections): Rename to ... | |
3388 | (matching_obj_sections): ... this. Update argument types. | |
3389 | * blockframe.c (find_pc_sect_function): Likewise. | |
3390 | * breakpoint.c (describe_other_breakpoints): Likewise. | |
3391 | (breakpoint_has_pc, check_duplicates_for): Likewise. | |
3392 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise. | |
3393 | (lookup_minimal_symbol_by_pc_section): Likewise. | |
3394 | * symtab.c (find_pc_sect_psymtab_closer): Likewise. | |
3395 | (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab, | |
3396 | find_pc_sect_line, find_function_start_pc): Likewise. | |
3397 | (matching_bfd_sections): Rename to ... | |
3398 | (matching_obj_sections): ... this. Update argument types. | |
3399 | ||
3400 | * blockframe.c (find_pc_partial_function): Update to section | |
3401 | type changes. No longer call find_pc_sect_section. | |
3402 | (cache_pc_function_section): Change to type "struct obj_section *". | |
3403 | * breakpoint.c (resolve_sal_pc): Update to section type changes. | |
3404 | * exec.c (xfer_memory): Likewise. | |
3405 | * findvar.c (read_var_value): Likewise. | |
3406 | * infcmd.c (jump_command): Likewise. | |
3407 | * linespec.c (minsym_found): Likewise. | |
3408 | * maint.c (maintenance_translate_address): Likewise. | |
3409 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise. | |
3410 | (lookup_solib_trampoline_symbol_by_pc): Likewise. | |
3411 | * parse.c (write_exp_msymbol): Likewise. | |
3412 | * printcmd.c (build_address_symbolic): Likewise. | |
3413 | (address_info, sym_info): Likewise. | |
3414 | * symmisc.c (dump_msymbols, print_symbol): Likewise. | |
3415 | * symtab.c (fixup_section): Likewise. | |
3416 | (fixup_symbol_section, fixup_psymbol_section): Likewise. | |
3417 | (find_pc_line, find_function_start_sal): Likewise. | |
3418 | * target.c (memory_xfer_partial): Likewise. | |
3419 | * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise. | |
3420 | * spu-tdep.c (spu_overlay_update): Likewise. | |
3421 | ||
623d3eb1 DE |
3422 | 2008-09-04 Doug Evans <dje@google.com> |
3423 | ||
3424 | * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d. | |
3425 | Change argument of pulongest from CORE_ADDR to ULONGEST. | |
3426 | All callers updated. | |
3427 | * utils.c (plongest): Renamed from paddr_d. | |
3428 | (pulongest): Renamed from paddr_u, change arg type to ULONGEST. | |
3429 | * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in | |
3430 | `CORE_ADDR addr' arg of error message. | |
3431 | ||
8775bb90 MS |
3432 | 2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com> |
3433 | ||
3434 | * ser-tcp.c (ser_tcp_send_break): New function. | |
3435 | (_initialize_ser_tcp): Use ser_tcp_send_break. | |
3436 | * ser-tcp.h (ser_tcp_send_break): New prototype. | |
3437 | ||
9ff3afda UW |
3438 | 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com> |
3439 | ||
3440 | * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots | |
3441 | when allocating stack frame for inferior call. | |
3442 | ||
c4891da7 UW |
3443 | 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com> |
3444 | ||
3445 | * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind | |
3446 | SP or return address if we failed to find a valid frame. | |
3447 | ||
514f746b AR |
3448 | 2008-09-03 Aleksandar Ristovski <aristovski@qnx.com> |
3449 | ||
3450 | * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only | |
3451 | non-permanent breakpoints. | |
3452 | (bpstat_stop_status): Change enable_state to bp_disabled only for | |
3453 | non-permanent breakpoints. | |
3454 | (bp_loc_is_permanent): New function. | |
3455 | (create_breakpoint): Check if the location points to a permanent | |
3456 | breakpoint and if it does, make breakpoint permanent. | |
3457 | (update_breakpoint_locations): Make sure new locations of permanent | |
3458 | breakpoints are properly initialized. | |
3459 | * i386-tdep.c (i386_skip_permanent_breakpoint): New function. | |
3460 | (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint. | |
3461 | ||
a12654ce PA |
3462 | 2008-09-02 Pedro Alves <pedro@codesourcery.com> |
3463 | ||
3464 | * breakpoint.c (insert_breakpoints, update_global_location_list): | |
3465 | Check breakpoints_always_inserted_mode instead of | |
3466 | always_inserted_mode directly. | |
3467 | ||
8b7a6d61 AS |
3468 | 2008-09-02 Andreas Schwab <schwab@suse.de> |
3469 | ||
3470 | * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr. | |
3471 | ||
d68209e4 JK |
3472 | 2008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
3473 | ||
3474 | Stay compatible after the GCC PR fortran/29635 fix. | |
3475 | * dwarf2read.c (process_die <DW_TAG_imported_module>) | |
3476 | (process_die <DW_TAG_imported_module>): Do not assert anything about | |
3477 | these unsupported tags. | |
3478 | ||
ef4cb050 TT |
3479 | 2008-08-29 Tom Tromey <tromey@redhat.com> |
3480 | ||
3481 | * maint.c (_initialize_maint_cmds): Fix typo. | |
3482 | ||
a683b3c0 TT |
3483 | 2008-08-29 Tom Tromey <tromey@redhat.com> |
3484 | ||
3485 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on | |
3486 | obstack. | |
3487 | ||
3e88cf8d UW |
3488 | 2008-08-27 Ulrich Weigand <uweigand@de.ibm.com> |
3489 | ||
3490 | * remote.c: Include "gdb_stat.h". | |
3491 | ||
a45ae3ed UW |
3492 | 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com> |
3493 | ||
3494 | * dummy-frame.h (dummy_frame_pop): Add prototype. | |
3495 | * dummy-frame.c: Include "observer.h". | |
3496 | (dummy_frame_push): Do not check for stale frames. | |
3497 | (dummy_frame_pop): New function. | |
3498 | (cleanup_dummy_frames): New function. | |
3499 | (_initialize_dummy_frame): Install it as inferior_created observer. | |
3500 | ||
3501 | * frame.h (struct frame_id): Update comments. | |
3502 | (frame_id_inner): Remove prototype. | |
3503 | * frame.c (frame_id_inner): Make static. Add comments. | |
3504 | (frame_find_by_id): Update frame_id_inner safety net check to avoid | |
3505 | false positives for targets using non-contiguous stack ranges. | |
3506 | (get_prev_frame_1): Update frame_id_inner safety net check. | |
3507 | (frame_pop): Call dummy_frame_pop when popping a dummy frame. | |
3508 | ||
3509 | * stack.c (return_command): Directly pop the selected frame. | |
3510 | * infrun.c (handle_inferior_event): Remove dead code. | |
3511 | * i386-tdep.c (i386_push_dummy_call): Update comment. | |
3512 | ||
879d1e6b UW |
3513 | 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com> |
3514 | ||
3515 | * breakpoint.c (remove_breakpoint): Do not fail if unable to remove | |
3516 | breakpoint from shared library. | |
3517 | ||
97ec2c2f UW |
3518 | 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com> |
3519 | ||
3520 | * solib-svr4.c (read_program_header): New function. | |
3521 | (scan_dyntag_auxv): New function. | |
3522 | (elf_locate_base): Use it if scan_dyntag fails. | |
3523 | (find_program_interpreter): New function. | |
3524 | (enable_break): Use it instead of .interp section. | |
3525 | ||
f1838a98 UW |
3526 | 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com> |
3527 | ||
3528 | * remote.h (remote_filename_p, remote_bfd_open): Add prototypes. | |
3529 | * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close, | |
3530 | remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p, | |
3531 | remote_bfd_open): New functions. | |
3532 | (remote_hostio_send_command): Fail safely if remote connection | |
3533 | is not set up. | |
3534 | ||
3535 | * solist.h (solib_open): Remove prototype. | |
3536 | (solib_bfd_open): Add prototype. | |
3537 | * solib.c: Include "remote.h". | |
3538 | (solib_open): Remove, replace by ... | |
3539 | (solib_bfd_open): ... this new function. Handle remote BFDs. | |
3540 | (solib_map_sections): Replace solib_open by solib_bfd_open. | |
3541 | * solib-frv.c: Include "exceptions.h". | |
3542 | (enable_break2): Replace solib_open by solib_bfd_open. | |
3543 | * solib-svr4.c: Include "exceptions.h". | |
3544 | (enable_break): Replace solib_open by solib_bfd_open. | |
3545 | ||
3546 | * symfile.c: Include "remote.h". | |
3547 | (build_id_verify): Handle remote BFDs. | |
3548 | (separate_debug_file_exists): Use BFD to access file. Handle | |
3549 | remote BFDs. | |
3550 | (symfile_bfd_open): Handle remote BFDs. | |
3551 | (reread_symbols): Handle remote BFDs. | |
3552 | ||
3553 | * NEWS: Mention "remote:" argument prefix to "set sysroot". | |
3554 | ||
1cf3db46 UW |
3555 | 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com> |
3556 | ||
3557 | * gdbarch.sh (target_gdbarch): New global variable. | |
3558 | (deprecated_current_gdbarch_select_hack): Set it. | |
3559 | * gdbarch.c, gdbarch.h: Regenerate. | |
3560 | ||
3561 | * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead | |
3562 | of current_gdbarch. | |
3563 | * target-descriptions.c (target_find_description): Likewise. | |
3564 | * arm-tdep.c (arm_update_current_architecture): Likewise. | |
3565 | (show_fp_model, arm_show_abi, arm_show_fallback_mode, | |
3566 | arm_show_force_mode): Likewise. | |
3567 | * mips-tdep.c (show_mask_address, show_mipsfpu_command, | |
3568 | show_mips_abi): Likewise. | |
3569 | * mep-tdep.c (me_module_register_set, current_me_module): Likewise. | |
3570 | ||
3571 | * target.c (target_translate_tls_address): Use target_gdbarch | |
3572 | instead of current_gdbarch. | |
3573 | * remote.c (struct packet_reg): Likewise. | |
3574 | (get_remote_arch_state, packet_reg_from_regnum, | |
3575 | packet_reg_from_pnum, remote_check_symbols, remote_wait, | |
3576 | remote_address_masked, remote_insert_breakpoint, | |
3577 | remote_insert_hw_breakpoint, remote_read_description): Likewise. | |
3578 | * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise. | |
3579 | * remote-mips.c (mips_open, mips_common_breakpoint): Likewise. | |
3580 | * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise. | |
3581 | ||
3582 | * solib.c (solib_open, solib_map_sections, solib_read_symbols, | |
3583 | solib_add, info_sharedlibrary_command, solib_address, | |
3584 | solib_create_inferior_hook, in_solib_dynsym_resolve_code, | |
3585 | solib_global_lookup): Likewise. | |
3586 | * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise. | |
3587 | * solib-irix.c (irix_current_sos, irix_open_symbol_file_object): | |
3588 | Likewise. | |
3589 | * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise. | |
3590 | * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so, | |
3591 | set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets): | |
3592 | Likewise. | |
3593 | * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix, | |
3594 | nto_truncate_ptr): Likewise. | |
3595 | * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise. | |
3596 | ||
6207416c LM |
3597 | 2008-08-26 Luis Machado <luisgpm@br.ibm.com> |
3598 | ||
3599 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure. | |
3600 | (ppc_linux_vmx_regset_sections): New structure. | |
3601 | (ppc_linux_fp_regset_sections): New structure. | |
3602 | (ppc_linux_init_abi): Select core-file regset based on target | |
3603 | features. | |
3604 | ||
0ff58721 UW |
3605 | 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com> |
3606 | ||
3607 | * target.c (debug_print_register): Use regcache_raw_collect | |
3608 | instead of regcache_cooked_read. Only handle raw registers. | |
3609 | ||
6c5561f9 PA |
3610 | 2008-08-25 Pedro Alves <pedro@codesourcery.com> |
3611 | ||
3612 | * cp-name-parser.y: Include config.h before system headers. | |
3613 | ||
ed0c3906 UW |
3614 | 2008-08-25 Ulrich Weigand <uweigand@de.ibm.com> |
3615 | ||
3616 | * m88k-tdep.c: Update for unwinder changes. | |
3617 | ||
119ac181 TT |
3618 | 2008-08-24 Tom Tromey <tromey@redhat.com> |
3619 | ||
3620 | * s390-tdep.c (s390_address_class_type_flags): Use | |
3621 | TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1. | |
3622 | (s390_address_class_type_flags_to_name): Likewise. | |
3623 | (s390_address_class_name_to_type_flags): Likewise. | |
3624 | ||
803e1097 TT |
3625 | 2008-08-24 Tom Tromey <tromey@redhat.com> |
3626 | ||
3627 | * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use | |
3628 | TYPE_FLAGS. | |
3629 | * features/rs6000/powerpc-vsx32l.c | |
3630 | (initialize_tdesc_powerpc_vsx32l): Update. | |
3631 | * features/rs6000/powerpc-vsx32.c | |
3632 | (initialize_tdesc_powerpc_vsx32): Update. | |
3633 | * features/rs6000/powerpc-vsx64.c | |
3634 | (initialize_tdesc_powerpc_vsx64): Update. | |
3635 | * features/rs6000/powerpc-vsx64l.c | |
3636 | (initialize_tdesc_powerpc_vsx64l): Update. | |
3637 | * target-descriptions.c (maint_print_c_tdesc_cmd): Emit | |
3638 | TYPE_VECTOR, not TYPE_FLAGS. | |
3639 | ||
876cecd0 TT |
3640 | 2008-08-24 Tom Tromey <tromey@redhat.com> |
3641 | ||
3642 | * xml-tdesc.c (tdesc_end_union): Update. | |
3643 | * stabsread.c (define_symbol): Update. | |
3644 | (read_type): Update. | |
3645 | (read_struct_type): Update. | |
3646 | (read_enum_type): Update. | |
3647 | * spu-tdep.c (spu_builtin_type_vec128): Update. | |
3648 | * sh-tdep.c (sh_push_dummy_call_fpu): Update. | |
3649 | (sh_push_dummy_call_nofpu): Update. | |
3650 | * mdebugread.c (parse_symbol): Update. | |
3651 | (parse_symbol): Update. | |
3652 | (parse_symbol): Update. | |
3653 | (upgrade_type): Update. | |
3654 | * jv-lang.c (java_lookup_class): Update. | |
3655 | * iq2000-tdep.c (iq2000_pointer_to_address): Update. | |
3656 | * i386-tdep.c (i386_mmx_type): Update. | |
3657 | (i386_sse_type): Update. | |
3658 | * gdbtypes.h (enum type_flag_value): New enum. | |
3659 | (enum type_instance_flag_value): New enum. | |
3660 | (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB, | |
3661 | TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED, | |
3662 | TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR, | |
3663 | TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED, | |
3664 | TYPE_FLAG_NOTTEXT): Now enum constants. | |
3665 | (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE, | |
3666 | TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1, | |
3667 | TYPE_FLAG_ADDRESS_CLASS_2): Remove. | |
3668 | (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE, | |
3669 | TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE, | |
3670 | TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1, | |
3671 | TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants. | |
3672 | (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB, | |
3673 | TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS, | |
3674 | TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, | |
3675 | TYPE_NOTTEXT): Update. | |
3676 | (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove. | |
3677 | (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define. | |
3678 | (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE, | |
3679 | TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2, | |
3680 | TYPE_ADDRESS_CLASS_ALL): Update. | |
3681 | (struct main_type) <flags>: Remove. | |
3682 | <flag_unsigned, flag_nosign, flag_stub, flag_target_stub, | |
3683 | flag_static, flag_prototyped, flag_incomplete, flag_varargs, | |
3684 | flag_vector, flag_stub_supported, flag_nottext, | |
3685 | flag_fixed_instance>: New fields. | |
3686 | <nfields, vptr_fieldno>: Move earlier. | |
3687 | (TYPE_FLAGS): Remove. | |
3688 | * gdbtypes.c (make_pointer_type): Update. | |
3689 | (address_space_name_to_int): Update. | |
3690 | (address_space_int_to_name): Update. | |
3691 | (make_type_with_address_space): Update. | |
3692 | (make_cv_type): Update. | |
3693 | (create_range_type): Update. | |
3694 | (get_discrete_bounds): Update. | |
3695 | (create_set_type): Update. | |
3696 | (make_vector_type): Update. | |
3697 | (smash_to_method_type): Update. | |
3698 | (check_typedef): Update. | |
3699 | (check_stub_method): Update. | |
3700 | (init_type): Individually assign flag fields. | |
3701 | (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do | |
3702 | print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT. | |
3703 | (copy_type_recursive): Copy the entire main type. Don't use | |
3704 | TYPE_FLAGS. | |
3705 | * features/rs6000/powerpc-altivec64l.c | |
3706 | (initialize_tdesc_powerpc_altivec64l): Update. | |
3707 | * features/rs6000/powerpc-altivec64.c | |
3708 | (initialize_tdesc_powerpc_altivec64): Update. | |
3709 | * features/rs6000/powerpc-altivec32l.c | |
3710 | (initialize_tdesc_powerpc_altivec32l): Update. | |
3711 | * features/rs6000/powerpc-altivec32.c | |
3712 | (initialize_tdesc_powerpc_altivec32): Update. | |
3713 | * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400): | |
3714 | Update. | |
3715 | * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt): | |
3716 | Update. | |
3717 | * dwarf2read.c (read_structure_type): Update. | |
3718 | (read_enumeration_type): Likewise. | |
3719 | (process_enumeration_scope): Likewise. | |
3720 | (read_tag_pointer_type): Likewise. | |
3721 | (read_subroutine_type): Likewise. | |
3722 | (read_subroutine_type): Likewise. | |
3723 | (read_base_type): Likewise. | |
3724 | * coffread.c (coff_read_enum_type): Update. | |
3725 | * ada-valprint.c (adjust_type_signedness): Update. | |
3726 | * ada-typeprint.c (print_record_field_types): Update. | |
3727 | * ada-lang.c (packed_array_type): Update. | |
3728 | (empty_record): Don't reset TYPE_FLAGS. | |
3729 | (ada_template_to_fixed_record_type_1): Update. | |
3730 | (ada_template_to_fixed_record_type_1): Likewise. | |
3731 | (template_to_static_fixed_type): Likewise. | |
3732 | (to_record_with_fixed_variant_part): Likewise. | |
3733 | (to_fixed_record_type): Likewise. | |
3734 | (to_fixed_array_type): Likewise. | |
3735 | (to_static_fixed_type): Likewise. | |
3736 | ||
d4ce0d3f TT |
3737 | 2008-08-23 Jim Blandy <jimb@redhat.com> |
3738 | ||
3739 | PR macros/607: | |
3740 | * symmisc.c (print_symbol_bcache_statistics): Include statistics | |
3741 | for the macro bcache. | |
3742 | ||
2e668a5d TT |
3743 | 2008-08-23 Tom Tromey <tromey@redhat.com> |
3744 | ||
3745 | * macrotab.h (struct macro_definition) <kind>: Shrink to one bit. | |
3746 | (argc): Now 31 bits. | |
3747 | ||
75a2d5e7 TT |
3748 | 2008-08-22 Tom Tromey <tromey@redhat.com> |
3749 | ||
3750 | * NEWS: Move macro entries back under "New commands". | |
3751 | ||
25db0f1b UW |
3752 | 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com> |
3753 | ||
3754 | * breakpoint.c (create_overlay_event_breakpoint): Rename to ... | |
3755 | (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter. | |
3756 | (create_overlay_event_breakpoint): Loop over all objfiles to install | |
3757 | multiple instances of the overlay event breakpoint if present. | |
3758 | ||
0391f248 UW |
3759 | 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com> |
3760 | ||
3761 | * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles. | |
3762 | (info_spu_event_command): Command only supported on SPU architecture. | |
3763 | (info_spu_signal_command): Likewise. | |
3764 | (info_spu_mailbox_command): Likewise. | |
3765 | (info_spu_dma_command): Likewise. | |
3766 | (info_spu_proxydma_command): Likewise. | |
3767 | ||
24a73cce UW |
3768 | 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com> |
3769 | ||
3770 | * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache | |
3771 | if the thread has already exited. | |
3772 | ||
e0bb1c1c PA |
3773 | 2008-08-22 Pedro Alves <pedro@codesourcery.com> |
3774 | ||
3775 | * infrun.c (proceed): Move back setting previous_inferior_ptid | |
3776 | from here ... | |
3777 | (wait_for_inferior): ... to here. | |
3778 | (fetch_inferior_event): ... and here. | |
3779 | ||
a3ecef73 UW |
3780 | 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com> |
3781 | ||
3782 | * gdbarch.sh: Include "regcache.h" into gdbarch.c. | |
3783 | (deprecated_current_gdbarch_select_hack): Call registers_changed | |
3784 | instead of reinit_frame_cache. | |
3785 | * gdbarch.c: Regenerate. | |
3786 | ||
45148c2e UW |
3787 | 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com> |
3788 | ||
3789 | * elfread.c (elf_symtab_read): Do not relocate thread-local symbols. | |
3790 | ||
6a94242b DJ |
3791 | 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com> |
3792 | ||
3793 | * xcoffread.c (SYMNAME_ALLOC): Correct syntax. | |
3794 | ||
5045add0 UW |
3795 | 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com> |
3796 | ||
3797 | * findvar.c (locate_var_value): Do not call get_frame_arch | |
3798 | with a NULL frame argument. | |
3799 | ||
029a67e4 UW |
3800 | 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com> |
3801 | ||
3802 | * frame.h (frame_map_regnum_to_name): Remove prototype. | |
3803 | (frame_map_name_to_regnum): Remove prototype. | |
3804 | * frame.c (frame_map_regnum_to_name): Remove. | |
3805 | (frame_map_name_to_regnum): Remove. | |
3806 | (frame_unwind_register_value): Use user_reg_map_regnum_to_name | |
3807 | instead of frame_map_regnum_to_name. | |
3808 | * ax-gdb.c: Include "user-regs.h". | |
3809 | (gen_expr): Use user_reg_map_name_to_regnum instead of | |
3810 | frame_map_name_to_regnum. | |
3811 | * eval.c: Include "user-regs.h". | |
3812 | (evaluate_subexp_standard): Use user_reg_map_name_to_regnum | |
3813 | instead of frame_map_name_to_regnum. | |
3814 | * infcmd.c (registers_info): Likewise. | |
3815 | * parse.c: Include "user-regs.h". | |
3816 | (write_dollar_variable): Use user_reg_map_name_to_regnum | |
3817 | instead of frame_map_name_to_regnum. | |
3818 | * tracepoint.c: Include "user-regs.h". | |
3819 | (encode_actions): Use user_reg_map_name_to_regnum | |
3820 | instead of frame_map_name_to_regnum. | |
3821 | * valops.c: Include "user-regs.h". | |
3822 | (value_fetch_lazy): Use user_reg_map_regnum_to_name instead | |
3823 | of frame_map_regnum_to_name. | |
3824 | ||
e84ee240 UW |
3825 | 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com> |
3826 | ||
3827 | * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read | |
3828 | and manually relocate .opd contents from BFD instead of reading | |
3829 | them from target memory. | |
3830 | ||
0114d602 DJ |
3831 | 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com> |
3832 | ||
3833 | * dwarf2read.c (processing_current_prefix): Delete static | |
3834 | variable. | |
3835 | (process_full_comp_unit): Do not set processing_current_prefix. | |
3836 | (dwarf2_full_name): New function. | |
3837 | (read_func_scope): Do not set processing_current_prefix. Use | |
3838 | determine_prefix. | |
3839 | (read_structure_type): Do not set processing_current_prefix. Remove | |
3840 | unused inner cleanup. | |
3841 | (process_structure_scope): Do not set processing_current_prefix. | |
3842 | (read_enumeration_type): Use dwarf2_full_name. | |
3843 | (determine_class_name): Return a const char *. Put the result | |
3844 | on the objfile obstack. Use dwarf2_full_name. | |
3845 | (read_namespace_type): New function. | |
3846 | (read_namespace): Do not create the type here. Use | |
3847 | determine_prefix. | |
3848 | (read_typedef): Use dwarf2_full_name. Do not pass the name | |
3849 | to init_type. | |
3850 | (read_base_type): Do not pass the name to init_type. Handle | |
3851 | TYPE_FLAG_NOSIGN. | |
3852 | (read_unspecified_type): Do not pass the name to init_type. | |
3853 | (new_symbol): Use dwarf2_full_name instead of | |
3854 | processing_current_prefix. | |
3855 | (read_type_die): Do not set processing_current_prefix. Handle | |
3856 | DW_TAG_namespace. | |
3857 | (determine_prefix): Handle specifications. Return the result | |
3858 | on the objfile obstack. Handle unions correctly. | |
3859 | ||
df8a16a1 DJ |
3860 | 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com> |
3861 | ||
3862 | * buildsym.c (add_symbol_to_list): Do not call | |
3863 | cp_scan_for_anonymous_namespaces here. | |
3864 | (finish_block): Do not call cp_set_block_scope here. | |
3865 | * cp-namespace.c (processing_has_namespace_info) | |
3866 | (processing_current_prefix): Delete. | |
3867 | (cp_initialize_namespace): Do not initialize | |
3868 | processing_has_namespace_info. | |
3869 | (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do | |
3870 | not check processing_has_namespace_info. | |
3871 | (cp_set_block_scope): Take prefix and namespace info flag as | |
3872 | arguments. Honor namespaces regardless of a demangled name. | |
3873 | * cp-support.h (processing_has_namespace_info) | |
3874 | (processing_current_prefix): Delete declarations. | |
3875 | (cp_set_block_scope): Update prototype. | |
3876 | * dwarf2read.c (processing_has_namespace_info) | |
3877 | (processing_current_prefix): New static variables. | |
3878 | (read_file_scope): Initialize processing_has_namespace_info. | |
3879 | (read_func_scope): Call cp_set_block_scope for C++. | |
3880 | (new_symbol): Call cp_scan_for_anonymous_namespaces for C++. | |
3881 | * symtab.c (symbol_demangled_name): Accept a const argument. | |
3882 | * symtab.h (symbol_demangled_name): Update prototype. | |
3883 | ||
3567439c DJ |
3884 | 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com> |
3885 | ||
3886 | * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME. | |
3887 | * blockframe.c (find_pc_partial_function): Likewise. | |
3888 | * buildsym.c (find_symbol_in_list): Likewise. | |
3889 | * c-valprint.c (c_val_print): Likewise. | |
3890 | * coffread.c (patch_opaque_types, process_coff_symbol): Likewise. | |
3891 | (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME. | |
3892 | * cp-support.c (cp_remove_params): Renamed from remove_params and | |
3893 | made global. | |
3894 | (overload_list_add_symbol): Update call to remove_params. | |
3895 | * cp-support.h (cp_remove_params): Declare. | |
3896 | * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME. | |
3897 | (dwarf2_const_value): Use SYMBOL_PRINT_NAME. | |
3898 | * expprint.c (dump_subexp_body_standard): Likewise. | |
3899 | * f-valprint.c (info_common_command, there_is_a_visible_common_named): | |
3900 | Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME | |
3901 | for messages. | |
3902 | * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME. | |
3903 | * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise. | |
3904 | * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) | |
3905 | (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find | |
3906 | symbols and SYMBOL_PRINT_NAME for messages. | |
3907 | * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME. | |
3908 | * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME. | |
3909 | * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and | |
3910 | SYMBOL_SET_LINKAGE_NAME. | |
3911 | (mylookup_symbol): Use SYMBOL_LINKAGE_NAME. | |
3912 | * minsyms.c (add_minsym_to_demangled_hash_table): Use | |
3913 | SYMBOL_SEARCH_NAME. | |
3914 | (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or | |
3915 | SYMBOL_MATCHES_SEARCH_NAME, depending on the pass. | |
3916 | * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME. | |
3917 | * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME. | |
3918 | (address_info): Use SYMBOL_PRINT_NAME for messages and | |
3919 | SYMBOL_LINKAGE_NAME for lookups. | |
3920 | * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages. | |
3921 | * stabsread.c (patch_block_stabs, define_symbol) | |
3922 | (read_type, read_enum_type, common_block_end) | |
3923 | (cleanup_undefined_types_1, scan_file_globals): Use | |
3924 | SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS, | |
3925 | and SYMBOL_PRINT_NAME. | |
3926 | * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME. | |
3927 | (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use | |
3928 | cp_remove_params instead of cplus_demangle. | |
3929 | (print_block_frame_labels, print_frame_arg_vars): Use | |
3930 | SYMBOL_LINKAGE_NAME. | |
3931 | * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and | |
3932 | SYMBOL_LINKAGE_NAME. | |
3933 | (dump_symtab_1, print_symbol, print_partial_symbols) | |
3934 | (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME. | |
3935 | * symtab.h (DEPRECATED_SYMBOL_NAME): Delete. | |
3936 | (SYMBOL_SET_LINKAGE_NAME): New. | |
3937 | (SYMBOL_SET_NAMES): Add a comment. | |
3938 | * tracepoint.c (set_traceframe_context, validate_actionline) | |
3939 | (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for | |
3940 | lookups and SYMBOL_PRINT_NAME for output. | |
3941 | * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME. | |
3942 | * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME. | |
3943 | ||
aded6f54 PA |
3944 | 2008-08-21 Pedro Alves <pedro@codesourcery.com> |
3945 | ||
3946 | * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr. | |
3947 | * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise. | |
3948 | * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use | |
3949 | obj_section_addr and obj_section_endaddr. | |
3950 | * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise. | |
3951 | * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise. | |
3952 | * ia64-tdep.c (ia64_find_global_pointer): Likewise. | |
3953 | (find_extant_func_descr): Likewise. | |
3954 | * solib-frv.c (frv_relocate_main_executable): Use | |
3955 | obj_section_addr. | |
3956 | * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use | |
3957 | obj_section_addr and obj_section_endaddr. | |
3958 | ||
158c7665 PH |
3959 | 2008-08-21 Paul N. Hilfinger <hilfinger@adacore.com> |
3960 | ||
3961 | * NEWS: Amplify last entry on boolean types in Ada. | |
3962 | ||
f2f0e013 DJ |
3963 | 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com> |
3964 | ||
3965 | * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref): | |
3966 | Make the dwarf2_cu * parameter output as well as input. Update it if | |
3967 | we follow a reference to another CU. | |
3968 | (read_func_scope, determine_class_name, namespace_name, dwarf2_attr) | |
3969 | (die_type, die_containing_type): Update calls to changed functions. | |
3970 | Use the returned CU along with the returned DIE. | |
3971 | (read_namespace): Use dwarf2_attr instead of dwarf2_extension. | |
3972 | ||
03dd20cc DJ |
3973 | 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com> |
3974 | ||
3975 | * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read | |
3976 | in the DIEs here. | |
3977 | (process_queue): Do not read in the DIEs here. | |
3978 | (psymtab_to_symtab_1): Update call to queue_comp_unit. | |
3979 | (read_full_die): Do not call queue_comp_unit from here. | |
3980 | (maybe_queue_comp_unit): New function. | |
3981 | (follow_die_ref): Use it. | |
3982 | ||
b60c80d6 DJ |
3983 | 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com> |
3984 | ||
3985 | * dwarf2read.c (struct attribute): Move earlier. | |
3986 | (struct die_info): Change attrs to a trailing array. | |
3987 | (dwarf_alloc_die): Take the number of attributes. Allocate space | |
3988 | for them. | |
3989 | (read_full_die): Update call to dwarf_alloc_die. Do not manually | |
3990 | allocate attributes. | |
3991 | ||
51545339 DJ |
3992 | 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com> |
3993 | ||
3994 | * dwarf2read.c (REF_HASH_SIZE): Delete. | |
3995 | (struct dwarf2_cu): Replace die_ref_table with die_hash. | |
3996 | (struct die_info): Remove next_ref. | |
3997 | (store_in_ref_table): Remove offset argument. Rewrite to use | |
3998 | htab_find_slot_with_hash. | |
3999 | (die_hash, die_eq): New. | |
4000 | (read_comp_unit): Allocate the die_hash. | |
4001 | (read_die_and_children): Update call to store_die_ref. | |
4002 | (follow_die_ref): Rewrite to use htab_find_with_hash. | |
4003 | ||
7475d072 DJ |
4004 | 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com> |
4005 | ||
4006 | * dwarf2read.c (free_die_list, copy_die): Delete. | |
4007 | (dwarf_alloc_die): Take a CU argument. Allocate the new DIE | |
4008 | on the obstack. | |
4009 | (read_full_die): Update call to dwarf_alloc_die. Allocate | |
4010 | attributes on the CU obstack. | |
4011 | (free_one_comp_unit): Do not call free_die_list. | |
4012 | ||
1d325ec1 DJ |
4013 | 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com> |
4014 | ||
4015 | * dwarf2read.c (read_die_and_children): Ignore NULL DIEs. | |
4016 | (read_die_and_siblings): Likewise. Do not add padding DIEs to the | |
4017 | sibling list. | |
4018 | (read_full_die): Do not allocate DIEs for abbrev 0. | |
4019 | (follow_die_ref): Correct error message. | |
4020 | ||
b96e2927 PA |
4021 | 2008-08-20 Pedro Alves <pedro@codesourcery.com> |
4022 | ||
4023 | * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if | |
4024 | there are no symbols loaded, instead of throwing a generic error. | |
4025 | (decode_variable): Likewise. | |
4026 | ||
f1f6aadf PA |
4027 | 2008-08-20 Pedro Alves <pedro@codesourcery.com> |
4028 | ||
4029 | * objfiles.h (struct obj_section): Remove addr and endaddr fields. | |
4030 | (obj_section_offset, obj_section_addr, obj_section_endaddr): New | |
4031 | macros. | |
4032 | * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr | |
4033 | and offset. Use size_t instead of unsigned long. | |
4034 | (build_objfile_section_table): Use size_t instead of unsigned | |
4035 | long. | |
4036 | (objfile_relocate): Don't relocate s->addr and s->endaddr, they're | |
4037 | gone. | |
4038 | (find_pc_sect_section): Use obj_section_addr and | |
4039 | obj_section_endaddr. | |
4040 | * symfile.c (symfile.c): Remove code that maps sections | |
4041 | offsets in "addr" to the object's sections. | |
4042 | * blockframe.c (find_pc_partial_function): Use obj_section_endaddr. | |
4043 | * gcore.c (gcore_create_callback): Use obj_section_addr and | |
4044 | obj_section_endaddr. | |
4045 | * maint.c (print_objfile_section_info): Likewise. | |
4046 | * printcmd.c (sym_info): Use obj_section_addr and | |
4047 | obj_section_endaddr. | |
4048 | * symtab.c (fixup_section): Likewise. | |
4049 | ||
3923a2b2 MK |
4050 | 2008-08-20 Mark Kettenis <kettenis@gnu.org> |
4051 | ||
4052 | * sparc-tdep.c: Make some comments catch up with reality. | |
4053 | ||
b3eb342c VP |
4054 | 2008-08-20 Vladimir Prus <vladimir@codesourcery.com> |
4055 | ||
4056 | * NEWS: Mention 'set target-async' | |
4057 | ||
7f7efbd9 VP |
4058 | 2008-08-19 Vladimir Prus <vladimir@codesourcery.com> |
4059 | ||
4060 | * infrun.c (resume): If the thread is placed to the deferred step | |
4061 | queue, mark it as running. | |
4062 | ||
9908b566 VP |
4063 | 2008-08-19 Vladimir Prus <vladimir@codesourcery.com> |
4064 | ||
4065 | Make sure target supports non-stop. | |
4066 | * infcmd.c (run_command_1, attach_command): If non-stop mode | |
4067 | is requested, verify the target supports it. | |
4068 | * linux-nat.c (linux_nat_supports_non_stop): New. | |
4069 | (linux_nat_add_target): Register the above. | |
4070 | * target.c (find_default_supports_non_stop) | |
4071 | (target_supports_non_stop): New. | |
4072 | (init_dummy_target): Register find_default_supports_non_stop. | |
4073 | * target.h (struct target_ops): New field to_supports_non_stop. | |
4074 | (target_supports_non_stop): New. | |
4075 | ||
c6ebd6cf VP |
4076 | 2008-08-19 Pedro Alves <pedro@codesourcery.com> |
4077 | Vladimir Prus <vladimir@codesourcery.com> | |
4078 | ||
4079 | * target.c (target_async_permitted, target_async_permitted_1) | |
4080 | (set_maintenance_target_async_permitted) | |
4081 | (show_maintenance_target_async_permitted): New. | |
4082 | (initialize_targets): Register 'set target-async'. | |
4083 | * target.h (target_async_permitted): Declare. | |
4084 | * linux-nat.c (linux_nat_async_enabled) | |
4085 | (linux_nat_async_permitted, set_maintenance_linux_async_permitted) | |
4086 | (show_maintenance_linux_async_permitted): Remove. | |
4087 | (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p) | |
4088 | (get_pending_events, linux_nat_async): Use target_async_permitted. | |
4089 | (linux_nat_set_async_mode): Remove, moving the only used bits | |
4090 | into... | |
4091 | (linux_nat_setup_async): This. | |
4092 | (_initialize_linux_nat): Do not register 'maint set linux-async'. | |
4093 | Use linux_nat_setup_async. | |
4094 | * remote.c (remote_async_permitted, remote_async_permitted_set) | |
4095 | (set_maintenance_remote_async_permitted) | |
4096 | (show_maintenance_remote_async_permitted): Remove. | |
4097 | (remote_open_1, remote_terminal_inferior, remote_can_async_p) | |
4098 | (remote_is_async_p): Use target_async_permitted. | |
4099 | (_initialize_remote): Don't register 'main set remote-async'. | |
4100 | * mi/mi-cmds.c (mi_cmds): Register -list-target-features. | |
4101 | * mi/mi-cmds.h (mi_cmd_list_target_features): New. | |
4102 | * mi/mi-main.c (mi_cmd_list_target_features): New. | |
4103 | ||
073120b9 VP |
4104 | 2008-08-19 Vladimir Prus <vladimir@codesourcery.com> |
4105 | ||
4106 | * target.c (maybe_kill_then_attach) | |
4107 | (maybe_kill_then_create_inferior): Remove. | |
4108 | (update_current_target): Do not default to_attach, | |
4109 | to_create_inferiour, to_is_async_p. | |
4110 | ||
690cc4eb | 4111 | 2008-08-19 Paul N. Hilfinger <hilfinger@adacore.com> |
bfb8797a PH |
4112 | |
4113 | Changes for supporting boolean types in debugging data. | |
690cc4eb PH |
4114 | * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change |
4115 | API to return LONGEST values rather than struct values. | |
4116 | (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound | |
4117 | and discrete_type_high_bound. | |
4118 | (to_fixed_range_type): Create a range type in cases where | |
4119 | argument is base type and its limits are representable as ints. | |
4120 | (ada_is_modular_type): Correct so that base type must be integral. | |
4121 | * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false' | |
4122 | keywords when they appear alone, since we are phasing out | |
bfb8797a | 4123 | direct representation of these identifiers in debugging data. |
690cc4eb PH |
4124 | * ada-exp.y: Define 'true' and 'false' as primaries. |
4125 | (type_boolean): New function. | |
4126 | (type_int,type_long,type_long_long,type_floattype_double) | |
4127 | (type_long_double): Remove uses of current_gdbarch for consistency | |
4128 | with type_boolean. | |
4129 | (write_int): Change comment to indicate that it might write boolean | |
4130 | constant as well. | |
4131 | * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean | |
4132 | type, since will no longer be represented as enumerated type in | |
4133 | debugging data. | |
4134 | * ada-valprint.c (print_optional_low_bound): Handle boolean case | |
4135 | as well. | |
bfb8797a PH |
4136 | * NEWS: Note support boolean types. |
4137 | ||
39540081 PA |
4138 | 2008-08-18 Pedro Alves <pedro@codesourcery.com> |
4139 | ||
4140 | * bsd-uthread.c (bsd_uthread_close): New. | |
4141 | (bsd_uthread_deactivate): Don't cleanup here, just unpush the | |
4142 | target. | |
4143 | (bsd_uthread_solib_loaded): Fix typo. | |
4144 | (bsd_uthread_target): Register bsd_uthread_close. | |
4145 | ||
87ab71f0 PA |
4146 | 2008-08-18 Pedro Alves <pedro@codesourcery.com> |
4147 | ||
4148 | * corelow.c (core_open): Assume there was no upper layer left | |
4149 | behind from a previous inferior. | |
4150 | * target.c (pop_all_targets): Rename to ... | |
4151 | (pop_all_targets_above): ... this. Add a target stratum | |
4152 | parameter. Use it instead of hardcoding the dummy_stratum. | |
4153 | (pop_all_targets): New, defer to pop_all_targets_above. | |
4154 | (target_preopen): Use pop_all_targets_above. | |
4155 | * target.h (pop_all_targets_above): Declare. | |
4156 | ||
5231c1fd PA |
4157 | 2008-08-18 Pedro Alves <pedro@codesourcery.com> |
4158 | ||
4159 | * gdbthread.h (thread_change_ptid): Declare. | |
4160 | * infrun.c (infrun_thread_ptid_changed): New. | |
4161 | (_initialize_infrun): Attach infrun_thread_ptid_changed to the | |
4162 | thread_ptid_changed observer. | |
4163 | * regcache.c (regcache_thread_ptid_changed): New. | |
4164 | (_initialize_regcache): Attach regcache_thread_ptid_changed to the | |
4165 | thread_ptid_changed observer. | |
4166 | * thread.c (thread_change_ptid): New. | |
4167 | ||
f98dfd4b TT |
4168 | 2008-08-18 Tom Tromey <tromey@redhat.com> |
4169 | ||
4170 | * symfile.c (reread_symbols): Update. | |
4171 | * solib-sunos.c (allocate_rt_common_objfile): Update. | |
4172 | * objfiles.c (allocate_objfile): Update. | |
4173 | * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>: | |
4174 | Remove. | |
4175 | ||
d87ecdfb TT |
4176 | 2008-08-18 Tom Tromey <tromey@redhat.com> |
4177 | ||
4178 | * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's | |
4179 | obstack. | |
4180 | ||
46a9b8ed DJ |
4181 | 2008-08-18 Daniel Jacobowitz <dan@codesourcery.com> |
4182 | ||
4183 | * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl, | |
4184 | lr_register. | |
4185 | (rs6000_in_function_epilogue_p): Check for bctr. | |
4186 | (skip_prologue): Initialize lr_register. Set lr_reg to a register | |
4187 | number. Set gpr_mask and used_bl. Continue scanning while some | |
4188 | expected registers are not saved. Set lr_register if LR is not | |
4189 | stored. | |
4190 | (rs6000_frame_cache): Handle gpr_mask and lr_register. | |
4191 | ||
44feb3ce TT |
4192 | 2008-08-17 Tom Tromey <tromey@redhat.com> |
4193 | ||
4194 | PR gdb/1535: | |
4195 | * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros. | |
4196 | (ep_find_event_name_end): Remove. | |
4197 | (catch_fork_temporary, catch_vfork_temporary, | |
4198 | catch_fork_permanent, catch_vfork_permanent): New constants. | |
4199 | (catch_vfork, catch_fork): Remove. | |
4200 | (catch_fork_command_1): Add 'command' argument. Remove | |
4201 | 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for | |
4202 | all cases. | |
4203 | (catch_exec_command_1): Add 'command' argument; remove | |
4204 | 'tempflag'. Handle NULL 'arg'. | |
4205 | (catch_load_command_1): Likewise. | |
4206 | (catch_unload_command_1): Likewise. | |
4207 | (catch_ada_exception_command): Likewise. | |
4208 | (catch_assert_command): Likewise. | |
4209 | (catch_catch_command): New function. | |
4210 | (catch_throw_command): Likewise. | |
4211 | (catch_command_1): Remove. | |
4212 | (catch_command): Just call error. | |
4213 | (tcatch_command): Likewise. | |
4214 | (catch_cmdlist): New global. | |
4215 | (tcatch_cmdlist): Likewise. | |
4216 | (add_catch_command): New function. | |
4217 | (_initialize_breakpoint): Create "catch" and "tcatch" as prefix | |
4218 | commands. Create all catch sub-commands. | |
4219 | ||
0d6431e2 PA |
4220 | 2008-08-17 Pedro Alves <pedro@codesourcery.com> |
4221 | ||
4222 | * gdbthread.h: Add comments. | |
4223 | * stack.c (get_selected_block): Return 0 on an exited thread. | |
4224 | * top.c (execute_command): Check for is_stopped, not !is_running. | |
4225 | * event-top.c (command_handler): Likewise. | |
4226 | ||
8931f526 PA |
4227 | 2008-08-16 Pedro Alves <pedro@codesourcery.com> |
4228 | ||
4229 | * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction) | |
4230 | (mi_cmd_exec_step, mi_cmd_exec_step_instruction) | |
4231 | (mi_cmd_exec_finish): Remove "return". | |
4232 | ||
aa76d38d PA |
4233 | 2008-08-16 Pedro Alves <pedro@codesourcery.com> |
4234 | ||
4235 | * target.h (pop_all_targets): Declare. | |
4236 | * target.c (pop_all_targets): New. | |
4237 | * top.c (quit_target): Pop all targets instead of just closing the | |
4238 | current. | |
4239 | ||
311a4e6b TJB |
4240 | 2008-08-16 Vladimir Prus <vladimir@codesourcery.com> |
4241 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
4242 | ||
4243 | * cli-script.c (read_next_line): Add parse_commands argument. | |
4244 | (recurse_read_control_structure): Adapt to new read_next_line | |
4245 | signature. | |
4246 | (read_command_lines): Add parse_commands argument. | |
4247 | (define_command): Adapt to new read_command_lines signature. | |
4248 | (document_command): Likewise. | |
4249 | * breakpoint.c (commands_command): Likewise. | |
4250 | * defs.h (read_command_lines): Adjust function prototype. | |
4251 | ||
24209737 PH |
4252 | 2008-08-16 Paul N. Hilfinger <hilfinger@adacore.com> |
4253 | ||
4254 | * ada-lang.c (pos_atr): Account for the possibility that the | |
4255 | argument may be a reference. | |
4256 | ||
9f1d5432 PH |
4257 | 2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com> |
4258 | ||
4259 | * xcoffread.c (scan_xcoff_symtab): Do not include global symbols | |
4260 | ('F' format) for @FIX names generated by the loader, retaining only | |
4261 | the minimal symbols (and no partial symbol tables) for these names. | |
4262 | Fixes warning messages about symbols that are found in partial | |
4263 | symbol tables, but not full symbol tables. | |
4264 | ||
83c265ab PA |
4265 | 2008-08-16 Pedro Alves <pedro@codesourcery.com> |
4266 | ||
4267 | * infrun.c (fetch_inferior_event): Only call normal_stop if not | |
4268 | stopping quietly. | |
4269 | ||
604c2f83 LM |
4270 | 2008-08-15 Luis Machado <luisgpm@br.ibm.com> |
4271 | ||
4272 | * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c". | |
4273 | Include "features/rs6000/powerpc-vsx64.c". | |
4274 | (ppc_supply_vsxregset): New function. | |
4275 | (ppc_collect_vsxregset): New function. | |
4276 | (IS_VSX_PSEUDOREG): New macro. | |
4277 | (IS_EFP_PSEUDOREG): New macro. | |
4278 | (vsx_register_p): New function. | |
4279 | (ppc_vsx_support_p): New function. | |
4280 | (rs6000_builtin_type_vec128): New function. | |
4281 | (rs6000_register_name): Hide upper halves of vs0~vs31. Return | |
4282 | correct names for VSX registers and EFPR registers. | |
4283 | (rs6000_pseudo_register_type): Return correct types for VSX | |
4284 | and EFPR registers. | |
4285 | (rs6000_pseudo_register_reggroup_p): Return correct group for | |
4286 | VSX and EFPR registers. | |
4287 | (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read. | |
4288 | (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write. | |
4289 | (vsx_pseudo_register_read): New function. | |
4290 | (vsx_pseudo_register_write): New function. | |
4291 | (efpr_pseudo_register_read): New function. | |
4292 | (efpr_pseudo_register_write): New function. | |
4293 | (rs6000_pseudo_register_read): Call new VSX and EFPR read functions. | |
4294 | (rs6000_pseudo_register_write): Call new VSX and EFPR write functions. | |
4295 | (rs6000_gdbarch_init): Declare have_vsx. | |
4296 | Initialize new upper half VSX registers. | |
4297 | Initialize VSX-related and EFPR-related pseudo-registers variables. | |
4298 | Adjust the number of pseudo registers accordingly. | |
4299 | ||
4300 | * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS | |
4301 | and SIZEOF_VSRREGS. | |
4302 | (gdb_vsxregset_t): New type. | |
4303 | (have_ptrace_getsetvsxregs): New variable. | |
4304 | (fetch_vsx_register): New function. | |
4305 | (fetch_register): Handle VSX registers. | |
4306 | (fetch_vsx_registers): New function. | |
4307 | (fetch_ppc_registers): Handle VSX registers. | |
4308 | (store_ppc_registers): Handle VSX registers. | |
4309 | (store_vsx_register): New function. | |
4310 | (store_register): Handle VSX registers. | |
4311 | (store_vsx_registers): New function. | |
4312 | (ppc_linux_read_description): Handle VSX-enabled inferiors. | |
4313 | (gdb_vsxregset_t): New type. | |
4314 | (supply_vsxregset): New function. | |
4315 | (fill_vsxregset): New function. | |
4316 | ||
4317 | * ppc-tdep.h (vsx_register_p): New prototype. | |
4318 | (vsx_support_p): New prototype. | |
4319 | (ppc_vsr0_regnum): New variable. | |
4320 | (ppc_vsr0_upper_regnum): Likewise. | |
4321 | (ppc_efpr0_regnum): Likewise. | |
4322 | (ppc_builtin_type_vec128): New type. | |
4323 | (ppc_num_vsrs): New constant. | |
4324 | (ppc_num_vshrs): New constant. | |
4325 | (ppc_num_efprs): Likewise. | |
4326 | Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM. | |
4327 | (ppc_supply_vsxregset): New prototype. | |
4328 | (ppc_collect_vsxregset): New prototype. | |
4329 | ||
4330 | * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c" | |
4331 | Include "features/rs6000/powerpc-vsx64l.c". | |
4332 | (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets. | |
4333 | (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field. | |
4334 | (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset. | |
4335 | (ppc_linux_regset_from_core_section): Handle VSX core section. | |
4336 | (ppc_linux_core_read_description): Support VSX-enabled core files. | |
4337 | ||
4338 | * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l | |
4339 | Declare tdesc_powerpc_vsx64l | |
4340 | ||
4341 | * corelow.c (get_core_register_section): Support VSX-enabled | |
4342 | core files. | |
4343 | ||
4344 | * features/rs6000/power-vsx.xml: New VSX descriptions. | |
4345 | * features/rs6000/powerpc-vsx32.xml: New file. | |
4346 | * features/rs6000/powerpc-vsx32l.xml: New file. | |
4347 | * features/rs6000/powerpc-vsx64.xml: New file. | |
4348 | * features/rs6000/powerpc-vsx64l.xml: New file. | |
4349 | * features/rs6000/powerpc-vsx32.c: New file (generated). | |
4350 | * features/rs6000/powerpc-vsx32l.c: New file (generated). | |
4351 | * features/rs6000/powerpc-vsx64.c: New file (generated). | |
4352 | * features/rs6000/powerpc-vsx64l.c: New file (generated). | |
4353 | * features/Makefile: Updated with new descriptions. | |
4354 | * regformats/rs6000/powerpc-vsx32l.dat: New file (generated). | |
4355 | * regformats/rs6000/powerpc-vsx64l.dat: New file (generated). | |
4356 | ||
dde7c0a9 VP |
4357 | 2008-08-15 Vladimir Prus <vladimir@codesourcery.com> |
4358 | ||
4359 | * ia64-linux.nat (_initialize_ia64_linux_nat): Don't | |
4360 | call linux_target twice. | |
4361 | ||
ebd67d87 AR |
4362 | 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com> |
4363 | ||
4364 | * nto-tdep.c (lm_info): Updated struct lm_info definition from | |
4365 | solib-svr4.c | |
4366 | (LM_ADDR): Use l_addr if available; if not, use link map and set | |
4367 | l_addr. | |
4368 | ||
886a217c TT |
4369 | 2008-08-14 Tom Tromey <tromey@redhat.com> |
4370 | ||
4371 | * macrocmd.c (macro_define_command): Check for NULL argument. | |
4372 | (macro_undef_command): Likewise. | |
4373 | ||
3d488bfc PA |
4374 | 2008-08-14 Pedro Alves <pedro@codesourcery.com> |
4375 | ||
4376 | * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call. | |
4377 | ||
33e5cbd6 PA |
4378 | 2008-08-13 Pedro Alves <pedro@codesourcery.com> |
4379 | ||
4380 | * breakpoint.c (always_inserted_auto, always_inserted_on) | |
4381 | (always_inserted_off, always_inserted_enums): New. | |
4382 | (always_inserted_mode): Change type to char* and point to | |
4383 | always_inserted_auto. | |
4384 | (show_always_inserted_mode): In auto mode, also show the current | |
4385 | effect of the option. | |
4386 | (breakpoints_always_inserted_mode): Adjust for the new auto mode. | |
4387 | (_initialize_breakpoint): Make the "set breakpoints | |
4388 | always-inserted" command an enum command. Extend help to describe | |
4389 | the auto mode. | |
4390 | ||
8fbde58b UW |
4391 | 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com> |
4392 | ||
4393 | * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status | |
4394 | query valid) bit. Ignore bits outside the condition field. | |
4395 | (info_spu_proxydma_command): Ignore bits outside the field. | |
4396 | ||
11fa8e43 MS |
4397 | 2008-08-12 Michael Snyder <msnyder@vmware.com> |
4398 | ||
4399 | * MAINTAINERS: Update my email address. | |
4400 | ||
fcb09a75 UW |
4401 | 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com> |
4402 | ||
4403 | * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP. | |
4404 | ||
a6f3e723 SL |
4405 | 2008-08-12 Pedro Alves <pedro@codesourcery.com> |
4406 | ||
4407 | Add no-ack mode to the remote protocol --- optionally stop ACKing | |
4408 | packets and responses when we have a reliable communication | |
4409 | medium. | |
4410 | ||
4411 | Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com> | |
4412 | ||
4413 | * remote.c (struct remote_state): Add noack_mode field. | |
4414 | (PACKET_QStartNoAckMode): New. | |
4415 | (remote_start_remote): Don't any outstanding packet here. | |
4416 | (remote_open_1): Clear noack_mode. Ack any outstanding packet | |
4417 | here. Activate noack mode if requested. | |
4418 | (remote_protocol_features): Add QStartNoAckMode. | |
4419 | (remote_open_1): | |
4420 | (putpkt_binary): Don't send ack in noack mode. | |
4421 | (read_frame): Don't recompute the checksum in noack mode. | |
4422 | (getpkt_sane): Skip sending ack if in noack mode. | |
4423 | (_initialize_remote): Add set/show remote noack mode. | |
4424 | * NEWS: Note the new features. | |
4425 | ||
8ab3d180 KB |
4426 | 2008-08-11 Kevin Buettner <kevinb@redhat.com> |
4427 | ||
4428 | * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK): | |
4429 | New macros. | |
4430 | (rs6000_skip_main_prologue): New function. | |
4431 | (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue. | |
4432 | ||
63a61bf6 SL |
4433 | 2008-08-11 Sandra Loosemore <sandra@codesourcery.com> |
4434 | ||
4435 | * MAINTAINERS (Write After Approval): Add self. | |
4436 | ||
9d4fde75 SS |
4437 | 2008-08-11 Stan Shebs <stan@codesourcery.com> |
4438 | ||
4439 | ARM BE8 support. | |
4440 | * disasm.c (gdb_disassemble_info): Set endian_code. | |
4441 | * gdbarch.sh (gdbarch_info): New field byte_order_for_code. | |
4442 | * gdbarch.h, gdbarch.c: Regenerate. | |
4443 | * arch-utils.c (initialize_current_architecture): Set the | |
4444 | default byte_order_for_code. | |
4445 | (gdbarch_info_init): Ditto. | |
4446 | (gdbarch_info_fill): Ditto. | |
4447 | * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros. | |
4448 | (thumb_analyze_prologue): Swap halfword if code endianness is | |
4449 | different from general endianness. | |
4450 | (arm_skip_prologue): Similarly. | |
4451 | (arm_scan_prologue): Ditto. | |
4452 | (thumb_get_next_pc): Ditto. | |
4453 | (arm_get_next_pc): Ditto. | |
4454 | (arm_gdbarch_init): Set byte_order_for_code from BE8 flag, | |
4455 | choose correct endianness for breakpoints. | |
4456 | ||
6c613132 PA |
4457 | 2008-08-10 Pedro Alves <pedro@codesourcery.com> |
4458 | ||
4459 | * bsd-kvm.c: Include "gdbthread.h". | |
4460 | (bsd_kvm_ptid): New. | |
4461 | (bsd_kvm_open): Add a main thread. | |
4462 | (bsd_kvm_close): Delete it. | |
4463 | (bsd_kvm_thread_alive): New. | |
4464 | (bsd_kvm_pid_to_str): New. | |
4465 | (bsd_kvm_add_target): Register bsd_kvm_thread_alive and | |
4466 | bsd_kvm_pid_to_str. | |
4467 | (bsd_kvm_add_target): Initialize bsd_kvm_ptid. | |
4468 | ||
6eb7ee03 PA |
4469 | 2008-08-09 Pedro Alves <pedro@codesourcery.com> |
4470 | ||
4471 | * buildsym.c (start_subfile): Properly cast sentinel in concat | |
4472 | call. | |
4473 | * cp-name-parser.y: Include "config.h". | |
4474 | * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in | |
4475 | concat call. | |
4476 | * gdb_select.h: Include sys/time.h if sys/select.h is not | |
4477 | available. | |
4478 | ||
444c3224 PA |
4479 | 2008-08-09 Pedro Alves <pedro@codesourcery.com> |
4480 | ||
4481 | * go32-nat.c: Include "gdbthread.h". | |
4482 | (go32_stop, go32_kill_inferior): Delete the main thread. | |
4483 | (go32_create_inferior): Add it. | |
4484 | (go32_thread_alive, go32_pid_to_str): New. | |
4485 | (init_go32_ops): Register go32_thread_alive and go32_pid_to_str. | |
4486 | ||
9d0b3624 PA |
4487 | 2008-08-09 Pedro Alves <pedro@codesourcery.com> |
4488 | ||
4489 | * go32-nat.c (fetch_register, store_register): Pass the regcache | |
4490 | gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p. | |
4491 | (go32_xfer_memory): Change type of myaddr parameter to gdb_byte. | |
4492 | (struct seg_descr, struct seg_descr): pack the whole struct | |
4493 | instead of each member individually. | |
4494 | ||
509238d6 AS |
4495 | 2008-08-09 Andreas Schwab <schwab@suse.de> |
4496 | ||
4497 | * python/python.c (_initialize_python): Use unabbreviated commands | |
4498 | in prefix name. | |
4499 | ||
c068b4e8 DJ |
4500 | 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com> |
4501 | ||
4502 | * Makefile.in (stamp-h): Also create .deps. | |
4503 | ||
21374e5f TT |
4504 | 2008-08-09 Tom Tromey <tromey@redhat.com> |
4505 | ||
4506 | * Makefile.in (generated_files): Add GNULIB_H. | |
4507 | ||
7be67755 DA |
4508 | 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
4509 | ||
4510 | * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set | |
4511 | DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set. | |
4512 | Revise comment. | |
4513 | (pa64_current_sos): Remove map private warning warning. | |
4514 | * solib-som.c: Include string.h and sys/utsname.h. | |
4515 | (get_hpux_major_release): New function. | |
4516 | (som_solib_create_inferior_hook): Read dynamic linker header. Warn | |
4517 | about shared library private mapping on HP-UX 11 and later. Only force | |
4518 | private mapping of shared libraries on HP-UX 10 and earlier. | |
4519 | (link_map_start): Delete warning. | |
4520 | ||
e0c62198 L |
4521 | 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com> |
4522 | H.J. Lu <hongjiu.lu@intel.com> | |
4523 | Mark Kettenis <kettenis@gnu.org> | |
4524 | ||
4525 | * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg. | |
4526 | (amd64_init_frame_cache): Initialize saved_sp_reg. | |
4527 | (amd64_analyze_stack_align): New. | |
4528 | (amd64_analyze_prologue): Call it. | |
4529 | (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set | |
4530 | %rip to 8 when halfway aligning the stack. | |
4531 | ||
4532 | * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to | |
4533 | AMD64_R14_REGNUM. | |
4534 | ||
4535 | * i386-tdep.c (i386_frame_cache): Remove stack_align. Add | |
4536 | saved_sp_reg. | |
4537 | (i386_alloc_frame_cache): Remove stack_align. Initialize | |
4538 | saved_sp_reg to -1. | |
4539 | (i386_analyze_stack_align): Rewrite. | |
4540 | (i386_frame_cache): Use saved_sp_reg if it is valid. | |
4541 | ||
b9db4ced UW |
4542 | 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com> |
4543 | ||
4544 | * target.c: Include "solib.h". | |
4545 | (target_pre_inferior): Call no_shared_libraries. | |
4546 | * infcmd.c (run_command_1): Do not call objfile_purge_solibs | |
4547 | or clear_solib. | |
4548 | (attach_command): Do not call clear_solib. | |
4549 | ||
3979a37f MK |
4550 | 2008-08-09 Mark Kettenis <kettenis@gnu.org> |
4551 | ||
4552 | * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for | |
4553 | the %eip register. | |
4554 | ||
2b26d9fa TT |
4555 | 2008-08-08 Tom Tromey <tromey@redhat.com> |
4556 | ||
4557 | * Makefile.in (python.o): Remove dependencies. Use COMPILE and | |
4558 | POSTCOMPILE. | |
4559 | (python-utils.o): Likewise. | |
4560 | ||
f1648876 AS |
4561 | 2008-08-08 Andreas Schwab <schwab@suse.de> |
4562 | ||
4563 | * corefile.c (_initialize_core): Remove spurious paren from set | |
4564 | gnutarget doc string. | |
4565 | ||
b7622095 LM |
4566 | 2008-08-08 Luis Machado <luisgpm@br.ibm.com> |
4567 | ||
4568 | * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h". | |
f1648876 | 4569 | Define PPC_FEATURE_BOOKE. |
b7622095 LM |
4570 | (ppc_linux_get_hwcap): New function. |
4571 | (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440 | |
4572 | 4-bytes alignment restrictions. | |
4573 | (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific | |
4574 | positioning of the read/write flags. | |
4575 | (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440 | |
4576 | 4-bytes alignment. | |
4577 | ||
2dc38344 PA |
4578 | 2008-08-08 Pedro Alves <pedro@codesourcery.com> |
4579 | ||
4580 | Use ptid_t.tid to store thread ids instead of ptid_t.pid. | |
4581 | ||
4582 | * win32-nat.c (win32_add_thread): Change thread argument type to | |
4583 | ptid_t. Adjust. | |
4584 | (win32_add_thread): Adjust. | |
4585 | (win32_delete_thread): Change thread argument type to ptid_t. | |
4586 | Adjust. | |
4587 | (win32_fetch_inferior_registers, win32_store_inferior_registers) | |
4588 | (win32_resume, get_win32_debug_event, get_win32_debug_event) | |
4589 | (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust. | |
4590 | (init_win32_ops): Put to_magic last. | |
4591 | (win32_win32_thread_alive): Adjust. | |
4592 | ||
4d6c6261 PA |
4593 | 2008-08-08 Pedro Alves <pedro@codesourcery.com> |
4594 | ||
4595 | * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New. | |
4596 | (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str. | |
4597 | ||
e5ef4d75 PA |
4598 | 2008-08-08 Pedro Alves <pedro@codesourcery.com> |
4599 | ||
4600 | * remote-m32r-sdi.c: Include "gdbthread.h". | |
4601 | (remote_m32r_ptid): New. | |
4602 | (m32r_close): Delete the main thread. | |
4603 | (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the | |
4604 | main thread. | |
4605 | (m32r_kill, m32r_load, sdireset_command): Delete the main thread. | |
4606 | (_initialize_remote_m32r): Initialize remote_m32r_ptid. | |
4607 | ||
a417dc56 RW |
4608 | 2008-08-07 Tom Tromey <tromey@redhat.com> |
4609 | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | |
4610 | ||
4611 | * aclocal.m4, configure: Rebuild. | |
4612 | * configure.in: Call ZW_CREATE_DEPDIR, | |
4613 | ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET. | |
4614 | (MAKE, GMAKE): New substs. | |
4615 | * acinclude.m4: Include depstand.m4. | |
4616 | * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre, | |
4617 | COMPILE, POSTCOMPILE, depcomp): New variables. | |
4618 | Remove all _h variables. | |
4619 | Remove many .o targets. | |
4620 | ($(srcdir)/copying.c): avoid backslash-newline after comment | |
4621 | sign (@maintainer_mode_true@). | |
4622 | (HFILES_NO_SRCDIR): Regenerate. | |
4623 | (generated_files): New variable. | |
4624 | (all_gdbtk_cflags): Likewise. | |
4625 | (.c.o): Rewrote. | |
4626 | (init.o, version.o, copying.o): Remove. | |
4627 | (distclean): Remove DEPDIR. | |
4628 | (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o, | |
4629 | printcmd.o, procfs.o, v850ice.o): Rewrite. | |
4630 | (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o, | |
4631 | cli-script.o, cli-setshow.o, cli-utils.o): Likewise. | |
4632 | (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o, | |
4633 | gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o, | |
4634 | gdbtk-wrapper.o): Likewise. | |
4635 | (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o, | |
4636 | mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o, | |
4637 | mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o, | |
4638 | mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o, | |
4639 | tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o, | |
4640 | tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o, | |
4641 | tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o, | |
4642 | tui-wingeneral.o, tui-winsource.o): Likewise. | |
4643 | (all_object_files): New variable. | |
4644 | ($(all_object_files)): New target. | |
4645 | Include dependency files, when using GNU Make. | |
4646 | ||
12ab8a60 UW |
4647 | 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com> |
4648 | ||
4649 | * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with | |
4650 | the valid bit set. Ensure display order respects partial | |
4651 | order defined by dependency bits. | |
4652 | ||
6536cc32 DA |
4653 | 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
4654 | ||
4655 | * solib-pa64.c (read_dld_descriptor): Return zero if load map is not | |
4656 | setup. | |
4657 | ||
f73a15e4 MK |
4658 | 2008-08-06 Mark Kettenis <kettenis@gnu.org> |
4659 | ||
4660 | * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in | |
4661 | OpenBSD 4.3. | |
4662 | ||
d57a3c85 TJB |
4663 | 2008-08-06 Vladimir Prus <vladimir@codesourcery.com> |
4664 | Tom Tromey <tromey@redhat.com> | |
4665 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
4666 | Doug Evans <dje@google.com> | |
4667 | ||
4668 | * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS, | |
4669 | SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS, | |
4670 | PYTHON_CFLAGS): New. | |
4671 | (python_h, python_internal_h): New. | |
4672 | (cli-script.o): Depend on python.h | |
4673 | (python.o, python-utils.o): New. | |
4674 | * cli/cli-script.c (print_command_lines): Handle python_control. | |
4675 | (execute_control_command): Handle python_control. | |
4676 | (execute_control_command_untraced): New function. | |
4677 | (while_command): Call execute_control_command_untraced. | |
4678 | (if_command): Likewise. | |
4679 | (get_command_line): Remove static attribute. | |
4680 | (read_next_line): Handle "python". | |
4681 | (recurse_read_control_structure): Handle python_control. | |
4682 | (read_command_lines): Handle python_control. | |
4683 | Include python.h. | |
4684 | * cli/cli-script.h (get_command_line): Add prototype. | |
4685 | (execute_control_command_untraced): Likewise. | |
4686 | * configure.ac: Add --with-python. | |
4687 | * defs.h (enum command_control_type) <python_control>: New | |
4688 | constant. | |
4689 | * python/python-internal.h: New file. | |
4690 | * python/python.c: New file. | |
4691 | * python/python.h: New file. | |
4692 | * python/python-utils.c: New file. | |
4693 | * NEWS: Mention Python scripting support and its new commands. | |
4694 | ||
5141027d UW |
4695 | 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com> |
4696 | ||
4697 | * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size. | |
4698 | ||
353cfe88 PM |
4699 | 2008-08-06 Phil Muldoon <pmuldoon@redhat.com> |
4700 | ||
f1648876 | 4701 | * MAINTAINERS (Write After Approval): Add self. |
353cfe88 | 4702 | |
d6b74ac4 PM |
4703 | 2008-08-06 Phil Muldoon <pmuldoon@redhat.com> |
4704 | ||
4705 | * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled. | |
4706 | (insert_breakpoint_locations): Likewise. | |
4707 | ||
ef0d312a MS |
4708 | 2008-08-05 Phil Muldoon <pmuldoon@redhat.com> |
4709 | ||
4710 | * breakpoint.c (create_longjmp_breakpoint): Remove unused struct | |
4711 | breakpoint. | |
4712 | (set_longjmp_breakpoint): Likewise. | |
4713 | ||
fb6d93b2 UW |
4714 | 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
4715 | ||
4716 | PR build/2490 | |
4717 | * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are | |
4718 | defined. | |
4719 | ||
e6ad058a TT |
4720 | 2008-08-05 Tom Tromey <tromey@redhat.com> |
4721 | ||
4722 | * bcache.c (deprecated_bcache_added): Initialize obstack. | |
4723 | (bcache_xmalloc): Don't initialize obstack. | |
4724 | (bcache_xfree): Conditionally free obstack. | |
4725 | (bcache_memory_used): Update. | |
4726 | ||
11d31d94 TT |
4727 | 2008-08-05 Tom Tromey <tromey@redhat.com> |
4728 | ||
4729 | * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use | |
4730 | bcache_full. | |
4731 | (append_psymbol_to_list): Accept a const pointer. | |
4732 | (add_psymbol_to_list): Fix const correctness. | |
4733 | * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove. | |
4734 | (bcache_full): Declare. | |
4735 | * bcache.c (bcache_data, deprecated_bcache): Remove. | |
4736 | (bcache): Use bcache_full. | |
4737 | (bcache_full): Rename from deprecated_bcache_added. Change return | |
4738 | type. | |
4739 | ||
5be973eb SS |
4740 | 2008-08-04 Stan Shebs <stan@codesourcery.com> |
4741 | ||
4742 | * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined. | |
4743 | (bkpt_names): Remove SOLIB_BKPT_NAME, never defined. | |
4744 | (enable_break): Remove test of BKPT_AT_SYMBOL. | |
4745 | ||
5062cc19 KS |
4746 | 2008-08-02 Keith Seitz <keiths@redhat.com> |
4747 | ||
4748 | * acinclude.m4: Include ../config/tcl.m4 to pick up | |
4749 | standard Tcl configury bits. | |
4750 | Remove all Tcl, Tk, Itcl, Itk, etc definitions. | |
4751 | * configure.ac: Don't check if ../itcl exists when building | |
4752 | gdbtk. It could be installed. | |
4753 | Rewrite gdbtk configury to allow for using system-supplied | |
f1648876 | 4754 | Tcl and Tk. Gdbtk no longer requires build-time access to |
5062cc19 KS |
4755 | itcl and itk. |
4756 | * Makefile.in: Remove everything related to itcl and itk. | |
4757 | Rewrite the Tcl bits for gdbtk to correspond to rewrite of | |
4758 | configure.ac. | |
4759 | Remove v850ice.o build rule. | |
4760 | (ALL_TCL_CFLAGS): New convenience defintion. Change all | |
4761 | gdbtk sources to use it. | |
4762 | * configure: Regenerate. | |
f1648876 | 4763 | |
6d76a53d SS |
4764 | 2008-07-31 Stan Shebs <stan@codesourcery.com> |
4765 | ||
4766 | * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE. | |
4767 | ||
ed7c5e43 SS |
4768 | 2008-07-30 Stan Shebs <stan@codesourcery.com> |
4769 | ||
4770 | * objfiles.c (TARGET_KEEP_SECTION): Remove. | |
4771 | (add_to_objfile_sections): Remove use. | |
4772 | ||
22ad7fee TT |
4773 | 2008-07-29 Tom Tromey <tromey@redhat.com> |
4774 | ||
4775 | * cli/cli-decode.c (lookup_cmd_1): Use memcpy. | |
4776 | (lookup_cmd_composition): Likewise. | |
4777 | ||
d5529a84 TT |
4778 | 2008-07-29 Tom Tromey <tromey@redhat.com> |
4779 | ||
4780 | * cli/cli-cmds.c (edit_command): Remove unused variables. Delete | |
4781 | dead code. Fix indentation. | |
4782 | ||
938f4ca8 SS |
4783 | 2008-07-29 Stan Shebs <stan@codesourcery.com> |
4784 | ||
4785 | * main.c (captured_main): Remove long-unused #if 0 blocks. | |
4786 | ||
7f4b89d1 TT |
4787 | 2008-07-28 Tom Tromey <tromey@redhat.com> |
4788 | ||
4789 | * annotate.h (deprecated_annotate_starting_hook): Remove. | |
4790 | (deprecated_annotate_stopped_hook): Remove. | |
4791 | (deprecated_annotate_exited_hook): Remove. | |
4792 | * Makefile.in (annotate.o): Depend on observer_h. | |
4793 | * top.c (deprecated_delete_breakpoint_hook): Remove. | |
4794 | (deprecated_create_breakpoint_hook): Likewise. | |
4795 | (deprecated_modify_breakpoint_hook): Likewise. | |
4796 | * interps.c (clear_interpreter_hooks): Update for removed hooks. | |
4797 | * breakpoint.c (mention): Don't call removed hook. | |
4798 | (delete_breakpoint): Likewise. | |
4799 | (disable_breakpoint): Likewise. | |
4800 | (do_enable_breakpoint): Likewise. | |
4801 | * annotate.c: Include observer.h. | |
4802 | (breakpoint_changed): Change type of argument. | |
4803 | (_initialize_annotate): Register observers. | |
4804 | (deprecated_annotate_starting_hook): Remove. | |
4805 | (deprecated_annotate_stopped_hook): Remove. | |
4806 | (deprecated_annotate_exited_hook): Remove. | |
4807 | (annotate_starting): Update for hook removal. | |
4808 | (annotate_stopped): Likewise. | |
4809 | (annotate_exited): Likewise. | |
4810 | * defs.h (deprecated_delete_breakpoint_hook): Remove. | |
4811 | (deprecated_create_breakpoint_hook): Likewise. | |
4812 | (deprecated_modify_breakpoint_hook): Likewise. | |
4813 | ||
8641e682 TT |
4814 | 2008-07-28 Tom Tromey <tromey@redhat.com> |
4815 | ||
4816 | * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK. | |
4817 | ||
064ef605 DJ |
4818 | 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com> |
4819 | ||
4820 | * configure.ac: Check for the GNU/Linux ptrace signature. | |
4821 | * configure: Regenerated. | |
4822 | ||
57380f4e DJ |
4823 | 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com> |
4824 | ||
4825 | * linux-nat.c (resume_callback): Add more debugging output. | |
4826 | (linux_nat_has_pending_sigint): New function, based on | |
4827 | linux_nat_has_pending. | |
4828 | (set_ignore_sigint, maybe_clear_ignore_sigint): New functions. | |
4829 | (stop_wait_callback): Remove flush_mask handling. Honor | |
4830 | ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL | |
4831 | to recursive calls. | |
4832 | (linux_nat_has_pending, flush_callback): Remove. | |
4833 | (linux_nat_filter_event): Check for ignore_sigint. | |
4834 | (linux_nat_wait): Remove flush_mask support and call to | |
4835 | flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint. | |
4836 | * linux-nat.h (struct lwp_info): Add ignore_sigint field. | |
4837 | ||
e09490f1 DJ |
4838 | 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com> |
4839 | ||
4840 | * linux-nat.c (count_events_callback, select_event_lwp_callback): Only | |
4841 | report events from resumed threads. | |
4842 | ||
e38d4e1a DJ |
4843 | 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com> |
4844 | ||
4845 | * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function. | |
4846 | (mips_linux_init_abi): Set tdep->syscall_next_pc. | |
4847 | * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to | |
4848 | mips-tdep.h. | |
4849 | (mips32_next_pc): Handle the syscall instruction. | |
4850 | * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New, | |
4851 | from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep. | |
4852 | ||
fa8de41e TT |
4853 | 2008-07-26 Tom Tromey <tromey@redhat.com> |
4854 | ||
4855 | PR gdb/1158: | |
4856 | * valops.c (value_struct_elt): Treat function-valued field as a | |
4857 | static method. | |
4858 | ||
ccb3ac8a TT |
4859 | 2008-07-26 Tom Tromey <tromey@redhat.com> |
4860 | ||
4861 | PR gdb/1136: | |
4862 | * macroexp.c (get_punctuator) <punctuators>: Rearrange to put | |
4863 | longer tokens first. | |
4864 | ||
d72314c6 VP |
4865 | 2008-07-26 Vladimir Prus <vladimir@codesourcery.com> |
4866 | ||
4867 | Kill cmd_async_ok. | |
f1648876 AS |
4868 | * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok) |
4869 | (get_cmd_async_ok): Remove. | |
4870 | * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove. | |
4871 | * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok. | |
4872 | * infcmd.c (_initialize_infcmd): Likewise. | |
4873 | * thread.c (_initialize_thread): Likewise. | |
d72314c6 | 4874 | |
5b68030f JM |
4875 | 2008-07-25 Joseph Myers <joseph@codesourcery.com> |
4876 | ||
4877 | * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing | |
4878 | 128-bit long doubles in even-odd pairs of FPRs. Do not | |
4879 | right-align float arguments for big-endian. | |
4880 | (mips_n32n64_return_value): Apply return value convention for | |
4881 | structs containing one or two floating-point values to soft-float | |
4882 | as well as hard-float. Handle 128-bit long doubles in such | |
4883 | structs. | |
4884 | (mips_o32_push_dummy_call): Only skip one integer register for a | |
4885 | float argument passed in an FPR. | |
4886 | ||
383f836e TT |
4887 | 2008-07-25 Tom Tromey <tromey@redhat.com> |
4888 | ||
4889 | * tui/tui-hooks.c: Include observer.h. | |
4890 | (tui_event_default, tui_old_event_hooks, tui_event_hooks): | |
4891 | Remove. | |
4892 | (tui_bp_created_observer, tui_bp_deleted_observer, | |
4893 | tui_bp_modified_observer): New globals. | |
4894 | (tui_install_hooks): Use observers, not events. | |
4895 | (tui_remove_hooks): Likewise. | |
4896 | * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h. | |
4897 | (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New | |
4898 | globals. | |
4899 | (breakpoint_notify): Check mi_can_breakpoint_notify. | |
4900 | (breakpoint_hooks): Remove. | |
4901 | (mi_cmd_break_insert): Attach observers. Don't use events. | |
4902 | * tracepoint.c: Include observer.h, not gdb-events.h. | |
4903 | (tracepoint_operation, trace_pass_command): Notify observer. | |
4904 | * interps.c: Don't include gdb-events.h. | |
4905 | (clear_interpreter_hooks): Don't call clear_gdb_event_hooks. | |
4906 | * gdbarch.c: Rebuild. | |
4907 | * gdbarch.sh: Emit include for observer.h, not gdb-events.h. | |
4908 | (deprecated_current_gdbarch_select_hack): Notify observer. | |
4909 | * breakpoint.h: Don't include gdb-events.h. | |
4910 | * breakpoint.c: Don't include gdb-events.h. | |
4911 | (condition_command): Notify observer. | |
4912 | (commands_command): Likewise. | |
4913 | (commands_from_control_command): Likewise. | |
4914 | (mention, delete_breakpoint, set_ignore_count): Likewise. | |
4915 | (disable_breakpoint, do_enable_breakpoint): Likewise. | |
4916 | * Makefile.in (gdb_events_h): Remove. | |
4917 | (breakpoint_h): Update. | |
4918 | (COMMON_OBS): Remove gdb-events.o. | |
4919 | (gdb-events.o): Remove. | |
4920 | (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o, | |
4921 | gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update. | |
4922 | * gdb-events.c: Remove. | |
4923 | * gdb-events.h: Remove. | |
4924 | * gdb-events.sh: Remove. | |
4925 | ||
60e569b9 PA |
4926 | 2008-07-24 Pedro Alves <pedro@codesourcery.com> |
4927 | ||
4928 | * remote.c (remote_threads_extra_info): Don't query the remote | |
4929 | server about info on the internally added main thread. | |
4930 | ||
a6a7f2a5 AR |
4931 | 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com> |
4932 | ||
4933 | * nto-procfs.c (procfs_attach): Populate initial thread list. | |
4934 | (procfs_wait): Return new pid, built from the inferior status. | |
4935 | ||
e63e4db2 TJB |
4936 | 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4937 | ||
4938 | * configure.ac (CONFIG_INITS): Delete long obsoleted variable. | |
4939 | * configure: Regenerate. | |
4940 | ||
14ef7606 AR |
4941 | 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com> |
4942 | ||
4943 | * nto-procfs.c (procfs_xfer_memory): Changed signature. | |
4944 | (procfs_resume): Workaround for dereferencing type-punned pointer | |
4945 | warning. | |
f1648876 | 4946 | * nto-tdep.c (nto_parse_redirection): Change signature to be const |
14ef7606 AR |
4947 | correct. |
4948 | * nto-tdep.h (nto_parse_redirection): Likewise. | |
4949 | ||
cfd8ab24 SS |
4950 | 2008-07-21 Stan Shebs <stan@codesourcery.com> |
4951 | ||
4952 | Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE. | |
4953 | * gdbarch.sh: Adjust comment to refer to | |
4954 | in_solib_dynsym_resolve_code(). | |
4955 | * gdbarch.h, gdbarch.c: Update. | |
4956 | * solib-osf.c: Ditto. | |
4957 | * infrun.c: Ditto. | |
4958 | (handle_inferior_event): Use in_solib_dynsym_resolve_code | |
4959 | unconditionally. | |
4960 | * config/mips/nm-irix5.h: Remove undef of | |
4961 | IN_SOLIB_DYNSYM_RESOLVE_CODE. | |
4962 | ||
781b42b0 TT |
4963 | 2008-07-21 Tom Tromey <tromey@redhat.com> |
4964 | ||
4965 | * symfile.c (reread_symbols): Don't pass argument to observer. | |
4966 | * exec.c (exec_file_attach): Don't pass argument to observer. | |
4967 | * ada-lang.c (ada_executable_changed_observer): Remove argument. | |
4968 | * symtab.c (symtab_observer_executable_changed): Remove argument. | |
4969 | * observer.sh: Handle functions with no arguments. | |
4970 | ||
a366c65a | 4971 | 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com> |
f1648876 | 4972 | Chris Demetriou <cgd@google.com> |
a366c65a CD |
4973 | |
4974 | * elfread.c (elf_symfile_segments): Fix the check that each loadable | |
4975 | section fits within an ELF segment to handle ELF segments that hit | |
4976 | the end of the address space. | |
4977 | ||
073d253f CD |
4978 | 2008-07-20 Chris Demetriou <cgd@google.com> |
4979 | ||
4980 | * MAINTAINERS (Write After Approval): Add self. | |
4981 | ||
d7d9f01e TT |
4982 | 2008-07-18 Tom Tromey <tromey@redhat.com> |
4983 | ||
4984 | PR gdb/855: | |
4985 | * NEWS: Add entry for macro commands. | |
4986 | * Makefile.in (macrocmd.o): Add gdb_string.h. | |
4987 | * macroscope.h (user_macro_scope): Declare. | |
4988 | (default_macro_scope): Update documentation. | |
4989 | (macro_user_macros): Declare. | |
4990 | * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup. | |
4991 | Use user_macro_scope. | |
4992 | (null_macro_lookup): Remove. | |
4993 | * macrotab.h (macro_callback_fn): Declare. | |
4994 | (macro_for_each): Likewise. | |
4995 | (macro_allow_redefinitions): Likewise. | |
4996 | * macrotab.c (foreach_macro): New function | |
4997 | (macro_for_each): Likewise. | |
4998 | (struct macro_table) <redef_ok>: New field. | |
4999 | (macro_allow_redefinitions): New function. | |
5000 | (new_macro_table): Update. | |
5001 | (macro_define_function): Likewise. | |
5002 | (macro_define_object): Likewise. | |
5003 | * macroscope.c (user_macro_scope): New function. | |
5004 | (default_macro_scope): Use it. | |
5005 | (macro_user_macros): New global. | |
5006 | (standard_macro_lookup): Look in macro_user_macros. | |
5007 | (_initialize_macroscope): New function. | |
5008 | * macroexp.h (macro_is_whitespace, macro_is_digit, | |
5009 | macro_is_identifier_nondigit): Declare. | |
5010 | * macroexp.c (macro_is_whitespace): Rename. No longer static. | |
5011 | (macro_is_digit): Likewise. | |
5012 | (macro_is_identifier_nondigit): Likewise. | |
5013 | (get_identifier): Update. | |
5014 | (get_pp_number): Likewise. | |
5015 | (get_token): Likewise. | |
5016 | * macrocmd.c (skip_ws): New function. | |
5017 | (extract_identifier): Likewise. | |
5018 | (free_macro_definition_ptr): Likewise. | |
5019 | (user_macros): Remove. | |
5020 | (macro_define_command): Implement. | |
5021 | (_initialize_macrocmd): Update. | |
5022 | (macro_undef_command): Implement. | |
5023 | (print_one_macro): New function. | |
5024 | (macro_list_command): Implement. | |
5025 | ||
0f72fb1c JM |
5026 | 2008-07-18 Joseph Myers <joseph@codesourcery.com> |
5027 | ||
5028 | * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl | |
5029 | in BFD ELF check. | |
5030 | * configure: Regenerate. | |
5031 | ||
7c6467a4 PP |
5032 | 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com> |
5033 | ||
5034 | * auxv.c (fprint_target_auxv): Stop at AT_NULL. | |
5035 | ||
680b56ce AS |
5036 | 2008-07-15 Andreas Schwab <schwab@suse.de> |
5037 | ||
5038 | * valops.c (value_cast_pointers): Follow typedefs when checking | |
5039 | result of coercion. | |
5040 | ||
7f0df278 DJ |
5041 | 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com> |
5042 | ||
5043 | * block.c (block_function): Renamed to ... | |
5044 | (block_linkage_function): ... this. All callers changed. | |
5045 | * block.h (block_function): Renamed to ... | |
5046 | (block_linkage_function): ... this. | |
5047 | ||
ba2c6aec DJ |
5048 | 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com> |
5049 | ||
5050 | * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned. | |
5051 | ||
d56907c1 DJ |
5052 | 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com> |
5053 | ||
5054 | * frame.c (frame_sp_unwind): Delete. | |
5055 | (get_frame_sp): Do not use it. | |
5056 | * frame.h (frame_sp_unwind): Delete prototype. | |
5057 | ||
f92aeb88 DJ |
5058 | 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com> |
5059 | ||
5060 | * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc. | |
5061 | ||
ad1193e7 DJ |
5062 | 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com> |
5063 | ||
5064 | * dwarf2-frame.c (dwarf2_frame_cache): Update comment. | |
5065 | * frame.c (frame_unwind_address_in_block): Delete. | |
5066 | (get_frame_address_in_block): Do not use it. Check the type | |
5067 | of the next frame first. | |
5068 | (frame_cleanup_after_sniffer): Update comment. | |
5069 | * frame.h (frame_unwind_address_in_block): Delete prototype. | |
5070 | * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment. | |
5071 | ||
ef02daa9 DJ |
5072 | 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com> |
5073 | ||
5074 | * frame.c (frame_func_unwind): Delete. | |
5075 | (get_frame_func): Do not use it. | |
5076 | * frame.h (frame_func_unwind): Delete prototype. | |
5077 | * hppa-tdep.c (hppa_frame_cache): Update comment. | |
5078 | * rs6000-tdep.c (rs6000_frame_cache): Update comment. | |
5079 | ||
96e32df8 SS |
5080 | 2008-07-14 Stan Shebs <stan@codesourcery.com> |
5081 | ||
5082 | * remote-sim.c (init_gdbsim_ops): Remove | |
5083 | TARGET_REDEFINE_DEFAULT_OPS. | |
5084 | ||
ab8650a3 DJ |
5085 | 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com> |
5086 | ||
5087 | * findvar.c (read_var_value): Remove unused variable. | |
5088 | ||
8c90c137 LM |
5089 | 2008-07-15 Luis Machado <luisgpm@br.ibm.com> |
5090 | ||
5091 | * infrun.c (handle_inferior_event): Tag threads as stopped | |
5092 | before inserting breakpoints. | |
5093 | ||
4098af0f HZ |
5094 | 2008-07-15 Hui Zhu <teawater@gmail.com> |
5095 | ||
5096 | * MAINTAINERS: Added myself to section Write After Approval. | |
5097 | ||
7093c834 PP |
5098 | 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com> |
5099 | ||
5100 | PR gdb/2477 | |
5101 | * cp-abi.c (value_virtual_fn_field): Handle invalid pointers. | |
680b56ce | 5102 | |
56514771 PA |
5103 | 2008-07-14 Pedro Alves <pedro@codesourcery.com> |
5104 | ||
5105 | * i386-dicos-tdep.c (i386_dicos_frame_align): Delete. | |
5106 | (i386_dicos_push_dummy_code): New. | |
5107 | (i386_dicos_init_abi): Don't register i386_dicos_frame_align. | |
5108 | Register i386_dicos_push_dummy_code. | |
5109 | ||
74ed0bb4 MD |
5110 | 2008-07-14 Markus Deuling <deuling@de.ibm.com> |
5111 | ||
5112 | * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter. | |
5113 | (mips_n32n64_push_dummy_call, mips_o64_return_value) | |
5114 | (mips_eabi_push_dummy_call): Update call to fp_register_arg_p. | |
5115 | ||
5116 | (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch. | |
5117 | (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command) | |
5118 | (mips_n32n64_fp_arg_chunk_p): Update caller. | |
5119 | ||
5120 | (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter. | |
5121 | (mips_n32n64_push_dummy_call): Update caller. | |
5122 | ||
5123 | (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace | |
5124 | current_gdbarch. | |
5125 | (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call) | |
5126 | (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller. | |
5127 | ||
5128 | ||
5129 | (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace | |
5130 | current_gdbarch. | |
5131 | (mips_eabi_push_dummy_call, mips_o32_push_dummy_call) | |
5132 | (mips_o64_push_dummy_call): Update caller. | |
5133 | ||
5134 | (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch. | |
5135 | (fp_register_arg_p, mips_dump_tdep): Update caller. | |
5136 | ||
5137 | (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch. | |
5138 | (mips16_scan_prologue, mips32_scan_prologue): Update caller. | |
5139 | ||
5140 | (reset_saved_regs): Make static. Add gdbarch as parameter. Replace | |
5141 | current_gdbarch. | |
5142 | (mips32_scan_prologue): Update caller. | |
5143 | ||
5144 | (heuristic_proc_start): Add gdbarch as parameter. Replace | |
5145 | current_gdbarch. | |
5146 | (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller. | |
5147 | ||
5148 | * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers) | |
5149 | (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at | |
5150 | the current architecture. Update call to getregs_supplies. | |
5151 | (getregs_supplies): Add gdbarch as parameter and replace | |
5152 | current_gdbarch. | |
5153 | ||
5154 | * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to | |
5155 | get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and | |
5156 | NBSD_MIPS_JB_ELEMENT_SIZE. | |
5157 | (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and | |
5158 | replace current_gdbarch. | |
5159 | ||
5160 | * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace | |
5161 | current_gdbarch. | |
5162 | (mips_fetch_registers, mips_store_registers): Update call | |
5163 | to mips_map_regno. | |
5164 | (mips_load): Use get_regcache_arch to get at the current_architecture | |
5165 | and replace current_gdbarch. | |
5166 | ||
0c501536 PA |
5167 | 2008-07-13 Pedro Alves <pedro@codesourcery.com> |
5168 | ||
5169 | * thread.c (restore_selected_frame): On fail to restore, select | |
5170 | the innermost frame, and don't crash when warning the user. | |
5171 | ||
db009c8a JB |
5172 | 2008-07-13 Hui Zhu <teawater@gmail.com> |
5173 | ||
5174 | * symtab.c (expand_line_sal): Fix a memory leak. | |
5175 | ||
0ffe5012 PA |
5176 | 2008-07-13 Pedro Alves <pedro@codesourcery.com> |
5177 | ||
5178 | * utils.c (struct continuation): Define as inheriting struct | |
5179 | cleanup. | |
5180 | (add_continuation, do_all_continuations) | |
5181 | (discard_all_continuations, add_intermediate_continuation) | |
5182 | (do_all_intermediate_continuations) | |
5183 | (discard_all_intermediate_continuations): Adjust. | |
5184 | ||
dbba8251 VP |
5185 | 2008-07-13 Vladimir Prus <vladimir@codesourcery.com> |
5186 | ||
5187 | Skip varobj in running threads. | |
680b56ce AS |
5188 | * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's |
5189 | thread is not stopped, skip the varobj. | |
5190 | * Makefile.in: Update dependencies. | |
dbba8251 | 5191 | |
e3d6cd5f VP |
5192 | 2008-07-13 Vladimir Prus <vladimir@codesourcery.com> |
5193 | ||
5194 | Enable all commands while inferiour is running | |
680b56ce AS |
5195 | * mi/mi-main.c (mi_cmd_execute): Don't check if |
5196 | inferiour is executing. | |
e3d6cd5f | 5197 | |
b10a37b1 VP |
5198 | 2008-07-13 Vladimir Prus <vladimir@codesourcery.com> |
5199 | ||
5200 | Allow all CLI command even if target is executing. | |
680b56ce AS |
5201 | * gdb/top.c (execute_command_1): Don't check if the inferiour |
5202 | is running. | |
b10a37b1 | 5203 | |
ea069267 VP |
5204 | 2008-07-13 Vladimir Prus <vladimir@codesourcery.com> |
5205 | ||
5206 | * mi/mi-main.c (mi_cmd_execute): Remove unused variable. | |
5207 | Fix printing of frame, when frame is wrong. | |
5208 | ||
cdc9523a UW |
5209 | 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com> |
5210 | ||
5211 | * spu-tdep.c (spu_frame_unwind_cache): Do not error if | |
5212 | backchain is unreadable. | |
5213 | ||
d5b25491 UW |
5214 | 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com> |
5215 | ||
5216 | * spu-linux-nat.c: Include "gdbthread.h". | |
5217 | (spu_child_post_startup_inferior): Register main thread. | |
5218 | (spu_child_post_attach): Likewise. | |
5219 | * Makefile.in (spu-linux-nat.o): Update dependencies. | |
5220 | ||
604ead4a PA |
5221 | 2008-07-12 Pedro Alves <pedro@codesourcery.com> |
5222 | ||
5223 | Rewrite continuations internals on top of cleanups and plug | |
5224 | continuation arguments leaks. | |
5225 | ||
5226 | * defs.h (struct continuation): Make it opaque. | |
5227 | (add_continuation, add_intermediate_continuation): Drop the int | |
5228 | argument of the continuation hook argument. Add | |
5229 | continuation_free_args argument. | |
5230 | (do_all_continuations, do_all_intermediate_continuations): Drop | |
5231 | the error_p argument. | |
5232 | ||
5233 | * utils.c (add_continuation): Drop the int argument of the | |
5234 | continuation hook argument. Add continuation_free_args argument. | |
5235 | Reimplement on top of cleanups. | |
5236 | (do_all_continuations): Drop error argument. Reimplement on top | |
5237 | of cleanups. | |
5238 | (discard_all_continuations): Reimplement on top of cleanups. | |
5239 | (add_intermediate_continuation): Drop the int argument of the | |
5240 | continuation hook argument. Add continuation_free_args argument. | |
5241 | Reimplement on top of cleanups. | |
5242 | (do_all_intermediate_continuations): Drop error argument. | |
5243 | Reimplement on top of cleanups. | |
5244 | (discard_all_intermediate_continuations): Reimplement on top of | |
5245 | cleanups. | |
5246 | ||
5247 | * breakpoint.c (until_break_command_continuation): Drop error | |
5248 | argument. Add xfree as continuation argument deleter. | |
5249 | ||
5250 | * inf-loop.c (inferior_event_handler): On error, discard all | |
5251 | continuations. Adjust to new do_all_intermediate_continuations | |
5252 | and do_all_continuations interfaces. | |
5253 | ||
5254 | * infcmd.c (step_1_continuation): Drop error_p argument. Adjust. | |
5255 | Pass xfree as continuation argument deleter. | |
5256 | (finish_command_continuation): Drop error_p argument. Adjust. | |
5257 | (finish_command_continuation_free_arg): New. | |
5258 | (finish_command): Pass finish_command_continuation_free_arg as | |
5259 | continuation argument deleter. Adjust to new do_all_continuations | |
5260 | interfaces. | |
5261 | (attach_command_continuation): Drop error_p argument. | |
5262 | (attach_command_continuation_free_args): New. | |
5263 | (attach_command): Pass attach_command_continuation_free_args as | |
5264 | continuation argument deleter. | |
5265 | ||
5266 | * interps.c (interp_set): Adjust to new do_all_continuations | |
5267 | interfaces. | |
5268 | ||
5269 | * event-top.c (stdin_event_handler): In error, also discard the | |
5270 | intermediate continuations. | |
5271 | ||
bfec99b2 PA |
5272 | 2008-07-12 Pedro Alves <pedro@codesourcery.com> |
5273 | ||
5274 | Replace struct continuation_args by void* and per command structs. | |
5275 | ||
5276 | * top.c (execute_command): Remove unused arg1 and arg2 locals. | |
5277 | ||
5278 | * breakpoint.c (struct until_break_command_continuation_args): | |
5279 | New. | |
5280 | (until_break_command_continuation): Take a void* instead of a | |
5281 | continuations_arg. Adjust. | |
5282 | (until_break_command): Adjust to use struct | |
5283 | until_break_command_continuation_args instead of struct | |
5284 | continuation_arg. | |
5285 | ||
5286 | * infcmd.c (struct step_1_continuation_args): New. | |
5287 | (step_1_continuation): Take a void* instead of a | |
5288 | continuations_arg. Adjust to use struct step_1_continuation_args. | |
5289 | (step_once): Adjust to use struct step_1_continuation_args. | |
5290 | ||
5291 | (struct finish_command_continuation_args): New. | |
5292 | (finish_command_continuation): Take a void* instead of a | |
5293 | continuations_arg. Adjust to use struct | |
5294 | finish_command_continuation_args. | |
5295 | (finish_command): Adjust to use struct | |
5296 | finish_command_continuation_args. | |
5297 | (struct attach_command_continuation_args): New. | |
5298 | (attach_command_continuation): Take a void* instead of a | |
5299 | continuations_arg. Adjust to use struct | |
5300 | attach_command_continuation_args. | |
5301 | (attach_command): Adjust to use struct | |
5302 | attach_command_continuation_args. | |
5303 | ||
5304 | * defs.h (struct continuation_arg): Delete. | |
5305 | (struct continuation): Replace the struct continuation_arg* | |
5306 | parameter of continuation_hook by a void*. Replace "arg_list" | |
5307 | member by a new "args" member with void* type. | |
5308 | (add_continuation, add_intermediate_continuation): Replace struct | |
5309 | continuation_arg type usages by void* usages. | |
5310 | ||
5311 | * utils.c (add_continuation, do_all_continuations) | |
5312 | (add_intermediate_continuation) | |
5313 | (do_all_intermediate_continuations): Replace struct | |
5314 | continuation_arg type usages by void* usages. Pass "args" instead | |
5315 | of "arg_list". | |
5316 | ||
2afb61aa PA |
5317 | 2008-07-12 Pedro Alves <pedro@codesourcery.com> |
5318 | ||
5319 | * infrun.c (struct thread_stepping_state): Delete sal member. | |
5320 | (init_thread_stepping_state): Add local sal. Use it instead of | |
5321 | tss->sal. | |
5322 | (handle_inferior_event): New local stop_pc_sal. Use it instead of | |
5323 | tss->sal. | |
5324 | (step_into_function): Add local stop_func_sal. Use it instead of | |
5325 | tss->sal. | |
5326 | ||
77ebaa5a VP |
5327 | 2008-07-12 Vladimir Prus <vladimir@codesourcery.com> |
5328 | ||
5329 | Implement -exec-continue/-exec-interrupt --all. | |
680b56ce AS |
5330 | * infcmd.c (continue_1): New, extracted from |
5331 | (continue_command): ...here. | |
5332 | (interrupt_target_1): New, extracted from | |
5333 | (interrupt_target_command): ...here. | |
5334 | * inferior.h (continue_1, interrupt_target_1): New. | |
5335 | * mi/mi-main.c (mi_cmd_exec_continue) | |
5336 | (mi_cmd_exec_interrupt): Handle --all. | |
77ebaa5a | 5337 | |
1e92afda VP |
5338 | 2008-07-12 Vladimir Prus <vladimir@codesourcery.com> |
5339 | ||
5340 | Implement --thread and --frame. | |
5341 | * gdbthread.h (find_thread_id): Declare. | |
680b56ce AS |
5342 | * thread.c (find_thread_id): Make non-static. |
5343 | * mi/mi-main.c (mi_cmd_execute): Switch to the right | |
5344 | thread and frame, if necessary. | |
5345 | * mi/mi-parse.c (mi_parse): Handle --thread and --frame. | |
5346 | * mi/mi-parse.h (strcut mi_parse): New fields thread and frame. | |
1e92afda | 5347 | |
d56b7306 VP |
5348 | 2008-07-12 Vladimir Prus <vladimir@codesourcery.com> |
5349 | ||
5350 | * infrun.c (resume): Discard cleanups on early exit path. | |
5351 | ||
b1a268e5 VP |
5352 | 2008-07-12 Vladimir Prus <vladimir@codesourcery.com> |
5353 | ||
680b56ce | 5354 | * infrun.c (normal_stop): For MI, report which threads |
b1a268e5 VP |
5355 | were stopped. |
5356 | ||
90139f7d VP |
5357 | 2008-07-12 Vladimir Prus <vladimir@codesourcery.com> |
5358 | ||
5359 | Report thread state in -thread-info output. | |
680b56ce | 5360 | * thread.c (print_thread_info): Add new field "state". |
90139f7d | 5361 | |
a0d21d28 PA |
5362 | 2008-07-11 Pedro Alves <pedro@codesourcery.com> |
5363 | ||
5364 | * infrun.c (handle_inferior_event): Also ignore a | |
5365 | TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP. | |
5366 | ||
14032a66 TT |
5367 | 2008-07-11 Tom Tromey <tromey@redhat.com> |
5368 | ||
5369 | * completer.c (complete_line_internal): New function, from | |
5370 | complete_line. Add 'for_help' parameter. | |
5371 | (complete_line): Use it. | |
5372 | (command_completer): Move later. Rewrite. | |
5373 | ||
65fc9b77 PA |
5374 | 2008-07-11 Pedro Alves <pedro@codesourcery.com> |
5375 | ||
5376 | * thread.c (thread_apply_command): Move making the cleanup out of | |
5377 | the loop. | |
5378 | ||
4f8d22e3 PA |
5379 | 2008-07-11 Pedro Alves <pedro@codesourcery.com> |
5380 | ||
5381 | Exited threads. | |
5382 | ||
5383 | * thread.c (enum thread_state): New. | |
5384 | (thread_state main_thread_running): Delete, in favor of... | |
5385 | (thread_state main_thread_state): ... this. Update throughout. | |
5386 | (clear_thread_inferior_resources): New, split from free_thread. | |
5387 | (free_thread): Call clear_thread_inferior_resources. | |
5388 | (init_thread_list): Set main thread to stopped state. | |
5389 | (add_thread_silent): Take care of PTID reuses. | |
5390 | (delete_thread): If deleting inferior_ptid or a thread with | |
5391 | refcount > 0, mark it as exited, but still keep it in the list. | |
5392 | Only notify of thread exits, if we haven't done so yet. | |
5393 | (iterate_over_threads): Make it safe to delete threads while | |
5394 | iterating over them. | |
5395 | (do_captured_list_thread_ids): Don't account for exited threads. | |
5396 | (thread_alive): Check for the THREAD_EXITED state, and don't set | |
5397 | ptid to -1 on exited threads. | |
5398 | (set_running): Update to account for extra possible states. | |
5399 | (is_thread_state): New. | |
5400 | (is_stopped, is_exited): New. | |
5401 | (is_running): Implement in terms of is_thread_state. | |
5402 | (any_running): Update. | |
5403 | (print_thread_info): Update. Account for exited threads. Don't | |
5404 | warn about missed frame restoring here, its done in the cleanup. | |
5405 | (switch_to_thread): Don't read from a thread that has gone. | |
5406 | (restore_current_thread): In non-stop mode, do a full context | |
5407 | switch. | |
5408 | (restore_selected_frame): Add a frame_level argument. Rewrite. | |
5409 | (struct current_thread_cleanup): Add selected_frame_level and | |
5410 | was_stopped members. | |
5411 | (do_restore_current_thread_cleanup): Check if thread was stopped | |
5412 | and still is, and if the target has registers, stack and memory | |
5413 | before restoring the selected frame. Don't delete the cleanup | |
5414 | argument here. | |
5415 | (restore_current_thread_cleanup_dtor): New. | |
5416 | (make_cleanup_restore_current_thread): Remove all arguments. | |
5417 | Rewrite. | |
5418 | (thread_apply_all_command): Update. Prune threads. | |
5419 | (thread_apply_command): Update. | |
5420 | (thread_command): Account for currently selected exited thread. | |
5421 | (do_captured_thread_select): Check for a running thread. Prune | |
5422 | threads. | |
5423 | (_initialize_thread): Make "info threads", "thread", "thread | |
5424 | apply", and "thread apply all" appliable without a selected thread. | |
5425 | * gdbthread.h (struct thread_info): Replace running_ by state_. | |
5426 | Add refcount. | |
5427 | (is_exited, is_stopped): Declare. | |
5428 | (make_cleanup_restore_current_thread): Remove all arguments. | |
5429 | * infrun.c: Include "event-top.h". | |
5430 | (fetch_inferior_event): In non-stop mode, restore selected thread | |
5431 | and frame after handling the event and running breakpoint | |
5432 | commands. Display GDB prompt if needed. | |
5433 | (normal_stop): In non-stop mode, don't print thread switching | |
5434 | notice. | |
5435 | * cli/cli-decode.c (set_cmd_no_selected_thread_ok) | |
5436 | (get_cmd_no_selected_thread_ok): New. | |
5437 | * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New. | |
5438 | (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok): | |
5439 | Declare. | |
5440 | * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as | |
5441 | no-selected-thread ok. | |
5442 | * top.c (execute_command): Check for non no-selected-thread-ok | |
5443 | commands. | |
5444 | * linux-nat.c (struct saved_ptids, threads_to_delete) | |
5445 | (record_dead_thread, prune_lwps): Delete. | |
5446 | (exit_lwp): Unconditionally delete thread. | |
5447 | (linux_nat_resume): Remove prune_lwps call. | |
5448 | * infcmd.c (proceed_thread_callback): Check if !is_stopped instead | |
5449 | of is_running. Adjust to make_cleanup_restore_current_thread | |
5450 | interface change. | |
5451 | * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the | |
5452 | selected thread has exited. | |
5453 | * inf-loop.c (inferior_event_handler): Don't display the prompt | |
5454 | here. | |
5455 | * varobj.c (c_value_of_root): Update. | |
5456 | * defs.h (make_cleanup_dtor): Declare. | |
5457 | * utils.c (make_cleanup_dtor): New. | |
5458 | ||
5459 | * Makefile.in (infrun.o): Depend on $(event_top_h). | |
5460 | ||
8cae4b3f PA |
5461 | 2008-07-11 Pedro Alves <pedro@codesourcery.com> |
5462 | ||
5463 | Add "continue -a" and "interrupt -a" options for non-stop mode. | |
5464 | ||
5465 | * infcmd.c (proceed_thread_callback, do_context_switch_to): New. | |
5466 | (continue_command): Add "-a" option. | |
5467 | (interrupt_target_command): Add "-a" option. | |
5468 | (_initialize_infcmd): Add extend help of continue and interrupt | |
5469 | command to mention the new "-a" option. Mark "continue" async ok. | |
5470 | ||
bf250677 DE |
5471 | 2008-07-10 Doug Evans <dje@google.com> |
5472 | ||
5473 | Add "set print symbol-loading on|off". | |
5474 | * NEWS: Document new option. | |
5475 | * symfile.h (print_symbol_loading): Declare. | |
5476 | * symfile.c (print_symbol_loading): New global. | |
5477 | (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols | |
5478 | from ..." if print_symbol_loading. | |
5479 | (_initialize_symfile): Add set/show print symbol-loading. | |
5480 | * solib.c (solib_read_symbols): Only print "Loaded symbols for ..." | |
5481 | if print_symbol_loading. | |
5482 | ||
4c28f408 PA |
5483 | 2008-07-10 Pedro Alves <pedro@codesourcery.com> |
5484 | ||
5485 | Non-stop linux native. | |
5486 | ||
5487 | * linux-nat.c (linux_test_for_tracefork): Block events while we're | |
5488 | here. | |
5489 | (get_pending_status): Implement non-stop mode. | |
5490 | (linux_nat_detach): Stop threads before detaching. | |
5491 | (linux_nat_resume): In non-stop mode, always resume only a single | |
5492 | PTID. | |
5493 | (linux_handle_extended_wait): On a clone event, in non-stop mode, | |
5494 | add new lwp to GDB's thread table, and mark as running, executing | |
5495 | and stopped appropriately. | |
5496 | (linux_nat_filter_event): Don't assume there are other running | |
5497 | threads when a thread exits. | |
5498 | (linux_nat_wait): Mark the main thread as running and executing. | |
5499 | In non-stop mode, don't stop all lwps. | |
5500 | (linux_nat_kill): Stop lwps before killing them. | |
5501 | (linux_nat_thread_alive): Use signal 0 to detect if a thread is | |
5502 | alive. | |
5503 | (send_sigint_callback): New. | |
5504 | (linux_nat_stop): New. | |
5505 | (linux_nat_add_target): Set to_stop to linux_nat_stop. | |
5506 | ||
5507 | * linux-nat.h (thread_db_attach_lwp): Declare. | |
5508 | ||
5509 | * linux-thread-db.c (thread_get_info_callback): Check for new | |
5510 | threads if we have none. | |
5511 | (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the | |
5512 | stopped lwp. Check for new threads if we have none. | |
5513 | (thread_db_attach_lwp): New. | |
5514 | (thread_db_init): Set proc_handle.pid to inferior_ptid. | |
5515 | (check_event): Set proc_handle.pid to the stopped lwp. | |
5516 | (thread_db_find_new_threads): Set proc_handle.pid to any stopped | |
5517 | lwp available, bail out if there is none. | |
5518 | ||
5519 | * linux-fork.c (linux_fork_killall): Use SIGKILL instead of | |
5520 | PTRACE_KILL. | |
5521 | ||
0aef6ba2 KB |
5522 | 2008-07-10 Kevin Buettner <kevinb@redhat.com> |
5523 | ||
a4fafde3 KB |
5524 | * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of |
5525 | `current_pc' from CORE_ADDR to ULONGEST. | |
5526 | ||
0aef6ba2 KB |
5527 | * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to |
5528 | gdbsim_stop(). | |
5529 | ||
10568435 JK |
5530 | 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
5531 | ||
5532 | * NEWS (New commands): Mention "set disable-randomization". | |
5533 | * configure.ac: Add check for HAVE_PERSONALITY and | |
5534 | HAVE_DECL_ADDR_NO_RANDOMIZE. | |
5535 | * configure, config.in: Regenerate. | |
5536 | * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>. | |
5537 | [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set | |
5538 | ADDR_NO_RANDOMIZE. | |
5539 | (disable_randomization, show_disable_randomization) | |
5540 | (set_disable_randomization): New. | |
5541 | (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables | |
5542 | PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the | |
5543 | variable DISABLE_RANDOMIZATION. | |
5544 | (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable | |
5545 | DISABLE_RANDOMIZATION. | |
5546 | ||
f9c72d52 PA |
5547 | 2008-07-09 Pedro Alves <pedro@codesourcery.com> |
5548 | ||
5549 | Adjust all targets to new target_stop interface. | |
5550 | ||
5551 | * gnu-nat.c (gnu_stop): Add ptid argument. | |
5552 | * go32-nat.c (go32_stop): Add ptid argument. | |
5553 | (go32_create_inferior): Pass inferior_ptid to go32_stop. | |
5554 | * hpux-thread.c (hpux_thread_stop): Add ptid argument. | |
5555 | * monitor.c (monitor_stop): Add ptid argument. | |
5556 | (monitor_open): Pass inferior_ptid to monitor_stop. | |
5557 | (monitor_interrupt): Pass inferior_ptid to target_stop. | |
5558 | (monitor_stop): Add ptid argument. | |
5559 | * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop. | |
5560 | (procfs_create_inferior): Add ptid argument. | |
5561 | * procfs.c (procfs_stop): Add ptid argument. | |
5562 | * remote-m32r-sdi.c (m32r_stop): Add ptid argument. | |
5563 | * remote-sim.c (gdbsim_stop): Add ptid argument. | |
5564 | * sol-thread.c (sol_thread_stop): Add ptid argument. | |
5565 | * win32-nat.c (win32_stop): Add ptid argument. | |
5566 | ||
94cc34af PA |
5567 | 2008-07-09 Pedro Alves <pedro@codesourcery.com> |
5568 | ||
5569 | Non-stop inferior control. | |
5570 | ||
5571 | * infrun.c (resume): In non-stop mode, always resume just one | |
5572 | thread. | |
5573 | (proceed): Don't call prepare_to_proceed in non-stop mode. | |
5574 | (fetch_inferior_event): In non-stop mode, switch context before | |
5575 | handling the event. | |
5576 | (error_is_running, ensure_not_running): New. | |
5577 | (handle_inferior_event): In non-stop mode: Mark only the event | |
5578 | thread as stopped. Require that the target module manages adding | |
5579 | threads to the thread list. Assert that there isn't a | |
5580 | deferred_step_ptid set. Don't switch to infwait_thread_hop_state. | |
5581 | (normal_stop): Only mark not-running if inferior hasn't exited. | |
5582 | In non-stop mode, only mark the event thread. | |
5583 | ||
5584 | * thread.c:Include "cli/cli-decode.h". | |
5585 | (print_thread_info): Don't read from a running thread. | |
5586 | Output "(running)" if thread is running. | |
5587 | (switch_to_thread): Don't read stop_pc if thread is executing. | |
5588 | (do_restore_current_thread_cleanup): Don't write to a running | |
5589 | thread. | |
5590 | (thread_apply_all_command): Don't read from a running thread. In | |
5591 | non-stop mode, do a full context-switch instead of just switching | |
5592 | threads. | |
5593 | (thread_apply_command): In non-stop mode, do a full context-switch | |
5594 | instead of just switching threads. | |
5595 | (do_captured_thread_select): Likewise. Inform user if selected | |
5596 | thread is running. | |
5597 | (_initialize_thread): Mark "info threads" and "thread" and | |
5598 | async_ok. | |
5599 | ||
5600 | * inf-loop.c (inferior_event_handler): In non-stop mode, don't | |
5601 | unregister the target from the event loop. | |
5602 | ||
5603 | * infcmd.c (continue_command, step_1, jump_command) | |
5604 | (signal_command): Ensure the selected thread isn't running. | |
5605 | (interrupt_target_command): In non-stop mode, interrupt only the | |
5606 | selected thread. | |
5607 | ||
5608 | * inferior.h (error_is_running, ensure_not_running): Declare. | |
5609 | ||
5610 | * target.h (struct target_ops): Add ptid argument to the to_stop | |
5611 | member. | |
5612 | (target_stop): Add ptid_t argument. | |
5613 | ||
5614 | * target.c (update_current_target): Add ptid argument to to_stop's | |
5615 | type. | |
5616 | (debug_to_stop): Add ptid_t argument. | |
5617 | (debug_to_rcmd): Set to_stop_ptid. | |
5618 | ||
5619 | * remote.c (remote_stop): Add ptid_t argument. | |
5620 | (async_remote_interrupt): Add inferior_ptid to target_stop. | |
5621 | * inf-ptrace.c (inf_ptrace_stop): Add ptid argument. | |
5622 | ||
5623 | * Makefile.in (thread.o): Depend on $(cli_decode_h). | |
5624 | ||
59f0d5d9 PA |
5625 | 2008-07-09 Pedro Alves <pedro@codesourcery.com> |
5626 | ||
5627 | Don't rely on ecs->wait_for_more. | |
5628 | ||
5629 | * infrun.c (proceed): Clear the stepping state, set | |
5630 | previous_inferior_ptid and clear infwait state. | |
5631 | (wait_for_inferior): Don't clear the stepping state, set | |
5632 | previous_inferior_ptid, or clear the infwait state here. | |
5633 | (fetch_inferior_event): Don't clear the stepping state, set | |
5634 | previous_inferior_ptid, or clear the infwait state here. Don't | |
5635 | condition on wait_for_more. | |
5636 | ||
0d1e5fa7 PA |
5637 | 2008-07-09 Pedro Alves <pedro@codesourcery.com> |
5638 | ||
5639 | Refactor infrun a bit. | |
5640 | ||
5641 | * infrun.c (currently_stepping): Take a struct | |
5642 | thread_stepping_state instead of an execution_control_state. | |
5643 | (struct thread_stepping_state): New, split from | |
5644 | execution_control_state. | |
5645 | (gtss, tss): New globals. | |
5646 | (proceed): Clear the stepping state, set previous_inferior_ptid | |
5647 | and clear infwait state. | |
5648 | (init_wait_for_inferior): Clear the stepping state, | |
5649 | previous_inferior_ptid and infwait state. | |
5650 | (waiton_ptid, infwait_state): New, split from | |
5651 | execution_control_state. | |
5652 | (struct execution_control_state): Members that persist through | |
5653 | events moved out to either struct thred_stepping_state or made | |
5654 | global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus. | |
5655 | (wait_for_inferior, fetch_inferior_event): Use local | |
5656 | execution_control_state. Update to execution_control_state split. | |
5657 | (init_execution_control_state): Adjust. | |
5658 | (init_thread_stepping_state): New, extracted from | |
5659 | init_execution_control_state. | |
5660 | (context_switch): Take a ptid instead of an | |
5661 | execution_control_state. | |
5662 | (context_switch_to): Adjust. | |
5663 | (adjust_pc_after_break): Adjust. | |
5664 | (init_infwait_state): New. | |
5665 | (handle_inferior_event): Adjust. | |
5666 | ||
a474d7c2 PA |
5667 | 2008-07-09 Pedro Alves <pedro@codesourcery.com> |
5668 | Vladimir Prus <vladimir@codesourcery.com> | |
5669 | ||
5670 | Per-thread commands. | |
5671 | ||
5672 | * gdbthread.h: Remove unneeded forward declarations. | |
5673 | Include "inferior.h". | |
5674 | (struct thread_info): Add continuations, | |
5675 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
5676 | stop_step, step_multi and stop_signal members. | |
5677 | (save_infrun_state): Add continuations, | |
5678 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
5679 | stop_step, step_multi, stop_signal and stop_bpstat parameters. | |
5680 | (load_infrun_state): Add continuations, | |
5681 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
5682 | stop_step, step_multi, stop_signal and stop_bpstat parameters. | |
5683 | ||
5684 | * thread.c (load_infrun_state): In non-stop mode, load | |
5685 | continuations, intermediate_continuations, proceed_to_finish, | |
5686 | step_over_calls, stop_step, step_multi and stop_signal. | |
5687 | (save_infrun_state): Store continuations, | |
5688 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
5689 | stop_step, step_multi, stop_signal and stop_bpstat. | |
5690 | (save_infrun_state): Store continuations, | |
5691 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
5692 | stop_step, step_multi, stop_signal and stop_bpstat. | |
5693 | (free_thread): Clear The thread's stop_bpstat. | |
5694 | ||
5695 | * inferior.h (context_switch_to): Declare. | |
5696 | ||
5697 | * infrun.c (ecss): New global. | |
5698 | (context_switch): Context switch continuations, | |
5699 | intermediate_continuations, proceed_to_finish, step_over_calls, | |
5700 | stop_step, step_multi, stop_signal and stop_bpstat. | |
5701 | (wait_for_inferior): Use global ecss. | |
5702 | (async_ecss, async_ecs): Delete. | |
5703 | (fetch_inferior_event): Use global ecss. | |
5704 | (context_switch_to): New. | |
5705 | ||
5706 | * top.c (execute_command): In non-stop, only check if the current | |
5707 | thread is running, in all-stop, check if there's any thread | |
5708 | running. | |
5709 | ||
5710 | * breakpoint.c (bpstat_remove_breakpoint): New. | |
5711 | (bpstat_remove_breakpoint_callback): New. | |
5712 | (delete_breakpoint): Clear the stop_bpstats of all threads. | |
5713 | ||
5714 | * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the | |
5715 | current thread is running, in all-stop, check if there's any | |
5716 | thread running. | |
5717 | ||
5718 | * Makefile.in (gdbthread_h): Depend on $(inferior_h). | |
5719 | ||
ad52ddc6 PA |
5720 | 2008-07-09 Pedro Alves <pedro@codesourcery.com> |
5721 | ||
5722 | Add non_stop global. | |
5723 | ||
5724 | * inferior.h (non_stop): Declare. | |
5725 | * infrun.c (non_stop, non_stop_1): New. | |
5726 | (set_non_stop, show_non_stop): New. | |
5727 | (_initialize_infrun): Add "set/show non-stop" command. | |
5728 | ||
3a3e9ee3 PA |
5729 | 2008-07-09 Pedro Alves <pedro@codesourcery.com> |
5730 | ||
5731 | Adjust fork/vfork/exec to pass ptids around. | |
5732 | ||
5733 | * target.h (struct target_waitstatus): Store related_pid as a ptid. | |
5734 | (inferior_has_forked, inferior_has_vforked, inferior_has_execd): | |
5735 | Take a ptid_t. | |
5736 | * breakpoint.h (struct breakpoint): Change forked_inferior_pid | |
5737 | type to ptid. | |
5738 | * breakpoint.c (print_it_typical, bpstat_check_location) | |
5739 | (print_one_breakpoint_location, set_raw_breakpoint_without_location) | |
5740 | (create_fork_vfork_event_catchpoint): Adjust. | |
5741 | * infrun.c (fork_event): Change parent_pid and child_pid types to | |
5742 | ptid. | |
5743 | (follow_exec, inferior_has_forked, inferior_has_vforked) | |
5744 | (inferior_has_execd): Take a ptid_t and don't trim it. | |
5745 | * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid. | |
5746 | * linux-nat.c (linux_child_follow_fork): Adjust. | |
5747 | * inf-ptrace.c (inf_ptrace_wait): Adjust. | |
5748 | * inf-ttrace.c (inf_ttrace_wait): Adjust. | |
5749 | * win32-nat.c (get_win32_debug_event): Don't set related_pid. | |
5750 | ||
8ea051c5 PA |
5751 | 2008-07-09 Pedro Alves <pedro@codesourcery.com> |
5752 | ||
5753 | Add "executing" property to threads. | |
5754 | ||
5755 | * inferior.h (target_executing): Delete. | |
5756 | * gdbthread.h (struct thread_info): Add executing_ field. | |
5757 | (set_executing, is_executing): New. | |
5758 | * thread.c (main_thread_executing): New. | |
5759 | (init_thread_list): Clear it and also main_thread_running. | |
5760 | (is_running): Return false if target has no execution. | |
5761 | (any_running, is_executing, set_executing): New. | |
5762 | ||
5763 | * top.c: Include "gdbthread.h". | |
5764 | (target_executing): Delete. | |
5765 | (execute_command): Replace target_executing check by any_running. | |
5766 | * event-top.c: Include "gdbthread.h". | |
5767 | (display_gdb_prompt, command_handler): Replace target_executing by | |
5768 | is_running. | |
5769 | * inf-loop.c: Include "gdbthread.h". Don't mark as not executing | |
5770 | here. Replace target_executing by is_running. | |
5771 | * infrun.c (handle_inferior_event): Mark all threads as | |
5772 | not-executing. | |
5773 | * linux-nat.c (linux_nat_resume): Don't mark thread as executing | |
5774 | here. | |
5775 | * stack.c (get_selected_block): Return null if inferior is | |
5776 | executing. | |
5777 | * target.c (target_resume): Mark resumed ptid as executing. | |
5778 | * breakpoint.c (until_break_command): Replace target_executing | |
5779 | check by is_executing. | |
5780 | * remote.c (remote_async_resume): Don't mark inferior as executing | |
5781 | here. | |
5782 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing | |
5783 | by any_running. | |
680b56ce | 5784 | |
8ea051c5 PA |
5785 | * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute) |
5786 | (mi_execute_async_cli_command): Replace target_executing by | |
5787 | is_running. | |
5788 | ||
5789 | * frame.c (get_current_frame): Error out if the current thread is | |
5790 | executing. | |
5791 | (has_stack_frames): New. | |
5792 | (get_selected_frame, deprecated_safe_get_selected_frame): Check | |
5793 | has_stack_frames. | |
680b56ce | 5794 | |
8ea051c5 PA |
5795 | * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on |
5796 | $(gdbthread_h). | |
5797 | ||
4487aabf PA |
5798 | 2008-07-09 Pedro Alves <pedro@codesourcery.com> |
5799 | ||
5800 | * symfile.c (load_command): Reopen the exec file and reread | |
5801 | symbols before anything else. | |
5802 | ||
9de2bdd7 PA |
5803 | 2008-07-09 Pedro Alves <pedro@codesourcery.com> |
5804 | ||
5805 | * remote-sim.c: Include gdbthread.h. | |
5806 | (remote_sim_ptid): New global. | |
5807 | (gdbsim_create_inferior): Silently add the main task to GDB's | |
5808 | thread list. | |
5809 | (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main | |
5810 | task from GDB's thread list. | |
5811 | (gdbsim_resume): Adjust to use remote_sim_ptid. | |
5812 | (gdbsim_thread_alive, gdbsim_pid_to_str): New. | |
5813 | (init_gdbsim_ops): Register gdbsim_thread_alive and | |
5814 | gdbsim_pid_to_str. | |
5815 | (_initialize_remote_sim): Initialize remote_sim_ptid. | |
5816 | * Makefile.in (remote-sim.o): Depend on $(gdbthread_h). | |
5817 | ||
5e0b29c1 PA |
5818 | 2008-07-09 Pedro Alves <pedro@codesourcery.com> |
5819 | ||
5820 | * monitor (monitor_ptid): New global. | |
5821 | (monitor_open): Silently add the main task to GDB's thread list. | |
5822 | (monitor_close, monitor_mourn_inferior): Silently delete the main | |
5823 | task from GDB's thread list. | |
5824 | (monitor_thread_alive, monitor_pid_to_str): New. | |
5825 | (init_base_monitor_ops): Register monitor_thread_alive and | |
5826 | monitor_pid_to_str. | |
5827 | (_initialize_remote_monitors): Initialize monitor_ptid. | |
5828 | ||
5829 | * gdbthread.h (delete_thread_silent): Declare. | |
5830 | * thread.c (delete_thread): Rename to ... | |
5831 | (delete_thread_1): ... this. Add "silent" parameter. If silent, | |
5832 | don't do exit notifications. | |
5833 | (delete_thread, delete_thread_silent): New, as wrappers to | |
5834 | delete_thread_1. | |
5835 | ||
b60e7edf PA |
5836 | 2008-07-08 Pedro Alves <pedro@codesourcery.com> |
5837 | ||
5838 | * breakpoint.c (update_global_location_list): Add boolean | |
5839 | "should_insert" argument. Only insert locations if caller told it | |
5840 | too. | |
5841 | (update_global_location_list_nothrow): Add boolean "should_insert" | |
5842 | argument. Pass it to update_global_location_list. | |
5843 | (insert_breakpoints, create_longjmp_breakpoint) | |
5844 | (create_overlay_event_breakpoint, enable_overlay_breakpoints) | |
5845 | (create_thread_event_breakpoint, create_solib_event_breakpoint) | |
5846 | (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint) | |
5847 | (enable_watchpoints_after_interactive_call_stop) | |
5848 | (set_momentary_breakpoint, create_breakpoints) | |
5849 | (break_command_really, watch_command_1) | |
5850 | (create_ada_exception_breakpoint, update_breakpoint_locations) | |
5851 | (do_enable_breakpoint, enable_command): Pass true to | |
5852 | update_global_location_list. | |
5853 | (bpstat_stop_status, disable_overlay_breakpoints) | |
5854 | (disable_watchpoints_before_interactive_call_start) | |
5855 | (delete_breakpoint, disable_breakpoint, disable_command): Pass | |
5856 | false to update_global_location_list. | |
5857 | (update_breakpoints_after_exec): Don't temporarily disable | |
5858 | always-inserted mode. | |
5859 | ||
25b22b0a PA |
5860 | 2008-07-08 Pedro Alves <pedro@codesourcery.com> |
5861 | ||
5862 | * breakpoint.c (mark_breakpoints_out): Make public. | |
5863 | (update_breakpoints_after_exec): Don't call mark_breakpoints_out | |
5864 | here. Update comment. | |
5865 | * breakpoint.h (mark_breakpoints_out): Declare. | |
5866 | ||
5867 | * linux-nat.c (linux_handle_extended_wait): On | |
5868 | TARGET_WAITKIND_EXECD, call mark_breakpoints_out. | |
5869 | * inf-ttrace.c (inf_ttrace_wait): Likewise. | |
5870 | ||
cce9b6bf PA |
5871 | 2008-07-08 Pedro Alves <pedro@codesourcery.com> |
5872 | ||
5873 | * infrun.c (follow_exec): Reset shared libraries before adding the | |
5874 | main exec file. | |
5875 | ||
3c3185ac JK |
5876 | 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
5877 | ||
5878 | * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL. | |
5879 | ||
42f0bc8e PA |
5880 | 2008-07-07 Pedro Alves <pedro@codesourcery.com> |
5881 | ||
5882 | * i386-dicos-tdep.c: Include "inferior.h". | |
5883 | (i386_dicos_frame_align): New. | |
5884 | (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call | |
5885 | dummy location ON_STACK. | |
5886 | * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h). | |
5887 | ||
b7292df3 JB |
5888 | 2008-07-07 Joel Brobecker <brobecker@adacore.com> |
5889 | ||
5890 | * gstdint.h: New file. | |
5891 | ||
bb599c81 VP |
5892 | 2008-07-05 Vladimir Prus <vladimir@codesourcery.com> |
5893 | ||
5894 | * mi/mi-interp.c (mi_on_resume): Don't try to report | |
5895 | resumed thread it the thread list is empty. | |
5896 | ||
7f6a6314 PM |
5897 | 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr> |
5898 | ||
5899 | * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set | |
5900 | completer for set to filename_completer. | |
680b56ce | 5901 | |
7f6a6314 PM |
5902 | NEWS: Mention it. |
5903 | ||
711eabed VP |
5904 | 2008-07-04 Vladimir Prus <vladimir@codesourcery.com> |
5905 | ||
5906 | Implement -target-attach. | |
680b56ce | 5907 | * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach. |
711eabed | 5908 | |
db3b9a10 MS |
5909 | 2008-06-21 Hui Zhu <teawater@gmail.com> |
5910 | ||
5911 | * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak. | |
5912 | ||
dc177b7a PA |
5913 | 2008-07-03 Pedro Alves <pedro@codesourcery.com> |
5914 | ||
5915 | * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete. | |
5916 | * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete. | |
5917 | ||
5918 | * target.h (struct target_ops): Add to_attach_no_wait member. | |
5919 | (target_attach_no_wait): New. | |
5920 | * target.c (update_current_target): Inherit to_attach_no_wait. | |
5921 | ||
5922 | * infcmd.c: Replace ATTACH_NO_WAIT compile time check by | |
5923 | target_attach_no_wait runtime check. | |
5924 | ||
5925 | * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops. | |
5926 | * win32-nat.c (init_win32_ops): Set to_attach_no_wait in | |
5927 | win32_ops. | |
5928 | ||
caac8896 PA |
5929 | 2008-07-03 Pedro Alves <pedro@codesourcery.com> |
5930 | ||
5931 | * i386-tdep.c (i386_displaced_step_fixup): Condition log printing | |
5932 | on debug_displaced being set. | |
5933 | ||
0d254d6f DJ |
5934 | 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com> |
5935 | ||
5936 | * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame | |
5937 | directly instead of get_frame_id. | |
5938 | ||
f74c6cad LM |
5939 | 2008-06-30 Luis Machado <luisgpm@br.ibm.com> |
5940 | ||
5941 | * rs6000-tdep.c (ppc_displaced_step_fixup): New function. | |
5942 | (deal_with_atomic_sequence): Update BC masks. | |
5943 | (rs6000_gdbarch_init): Init displaced stepping infra-structure. | |
5944 | Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN. | |
5945 | ||
395f2fc2 DJ |
5946 | 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com> |
5947 | ||
5948 | * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's | |
5949 | register, not the previous frame's. | |
5950 | ||
8340a3fb LM |
5951 | 2008-06-30 Luis Machado <luisgpm@br.ibm.com> |
5952 | ||
5953 | * source.c (select_source_symtab): Make sure we skip namespace | |
5954 | symtabs when showing cpp source code. | |
5955 | ||
cfefc99a HPN |
5956 | 2008-06-30 Hans-Peter Nilsson <hp@axis.com> |
5957 | ||
5958 | * MAINTAINERS (Authorized committers): Fix my email address. | |
5959 | ||
1b98914a VP |
5960 | 2008-06-28 Vladimir Prus <vladimir@codesourcery.com> |
5961 | ||
5962 | * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until, | |
5963 | -target-download and -target-select via CLI, so that | |
5964 | the quoting rules are the same as they were (unfortunately) | |
5965 | in all prior gdb releases. | |
5966 | * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until) | |
5967 | (mi_cmd_target_download, mi_cmd_target_select): Remove. | |
5968 | * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until) | |
5969 | (mi_cmd_target_download, mi_cmd_target_select): Remove. | |
5970 | (mi_cmd_execute): Set current_token even for commands | |
5971 | routed via CLI. | |
5972 | ||
94afd7a6 UW |
5973 | 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com> |
5974 | ||
5975 | * alphafbsd-tdep.c: Update for unwinder changes. | |
5976 | * alpha-linux-tdep.c: Likewise. | |
5977 | * alphanbsd-tdep.c: Likewise. | |
5978 | * alphaobsd-tdep.c: Likewise. | |
5979 | * avr-tdep.c: Likewise. | |
5980 | * cris-tdep.c: Likewise. | |
5981 | * frv-linux-tdep.c: Likewise. | |
5982 | * frv-tdep.c: Likewise. | |
5983 | * h8300-tdep.c: Likewise. | |
5984 | * hppa-linux-tdep.c: Likewise. | |
5985 | * iq2000-tdep.c: Likewise. | |
5986 | * m32c-tdep.c: Likewise. | |
5987 | * m32r-linux-tdep.c: Likewise. | |
5988 | * m32r-tdep.c: Likewise. | |
5989 | * m68hc11-tdep.c: Likewise. | |
5990 | * mep-tdep.c: Likewise. | |
5991 | * mn10300-tdep.c: Likewise. | |
5992 | * mt-tdep.c: Likewise. | |
5993 | * score-tdep.c: Likewise. | |
5994 | * sh64-tdep.c: Likewise. | |
5995 | * sh-tdep.c: Likewise. | |
5996 | * sparc64fbsd-tdep.c: Likewise. | |
5997 | * sparc64nbsd-tdep.c: Likewise. | |
5998 | * sparc64obsd-tdep.c: Likewise. | |
5999 | * v850-tdep.c: Likewise. | |
6000 | * vaxobsd-tdep.c: Likewise. | |
6001 | * vax-tdep.c: Likewise. | |
6002 | * xstormy16-tdep.c: Likewise. | |
6003 | ||
e111d6c9 VP |
6004 | 2008-06-28 Vladimir Prus <vladimir@codesourcery.com> |
6005 | ||
6006 | * mi/mi-main.c (enum captured_mi_execute_command_actions) | |
6007 | (captured_mi_execute_command_args): Remove. | |
6008 | (captured_mi_execute_command): Cast the closure to mi_parse | |
6009 | pointer, not to captured_mi_execute_command_args, and don't | |
6010 | set the action field thereof. | |
6011 | (mi_execute_command): Pass struct mi_parse, not | |
6012 | captured_mi_execute_command_args to captured_mi_execute_command. | |
6013 | (mi_execute_command): Remove (dead) code for suppressing | |
6014 | printing prompt. | |
6015 | ||
84e46146 PA |
6016 | 2008-06-28 Pedro Alves <pedro@codesourcery.com> |
6017 | ||
6018 | * linux-nat.c (enum sigchld_state): New. | |
6019 | (linux_nat_async_events_state): Renamed from | |
6020 | linux_nat_async_events_enabled. | |
6021 | (linux_nat_event_pipe_push, my_waitpid): Adjust. | |
6022 | (sigchld_default_action): New. | |
6023 | (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events | |
6024 | unconditionally. | |
6025 | (linux_nat_create_inferior): Set events state to sigchld_default | |
6026 | state. | |
6027 | (linux_nat_resume): Adjust. | |
6028 | (linux_nat_wait): Call linux_nat_async_events unconditionally. | |
6029 | (sigchld_handler): Adjust. | |
6030 | (linux_nat_async_mask): Don't set SIGCHLD actions here. | |
6031 | (get_pending_events): Adjust. | |
6032 | (linux_nat_async_events): Rewrite to handle enum sigchld_state | |
6033 | instead of a boolean. | |
6034 | (linux_nat_async): Adjust. | |
6035 | (_initialize_linux_nat): Capture default SIGCHLD action into | |
6036 | sigchld_default_action. | |
6037 | ||
20874c92 VP |
6038 | 2008-06-28 Vladimir Prus <vladimir@codesourcery.com> |
6039 | ||
680b56ce AS |
6040 | * breakpoint.c (moribund_locations): New. |
6041 | (bpstat_stop_status): Process moribund locations. | |
6042 | (update_global_location_list): Add removed | |
6043 | locations to moribund_locations. | |
6044 | (breakpoint_retire_moribund): New. | |
6045 | * breakpoint.h (struct bp_location): New field | |
6046 | events_till_retirement. | |
6047 | (breakpoint_retire_moribund): Declare. | |
6048 | * thread.c (thread_count): New. | |
6049 | * infrun.c (handle_inferior_event): Call | |
6050 | breakpoint_retire_moribund. | |
6051 | * gdbthread.h (thread_count): Declare. | |
20874c92 | 6052 | |
cd0b43b1 JM |
6053 | 2008-06-27 Joseph Myers <joseph@codesourcery.com> |
6054 | ||
6055 | * dfp.c (decimal_convert): Call match_endianness before and after | |
6056 | conversion. | |
6057 | ||
7c0f6dcc JL |
6058 | 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com> |
6059 | ||
6060 | * remote.c (remote_insert_breakpoint): Ensure that if Z0 | |
6061 | unsupported and we fall back to memory_insert_breakpoint, we | |
6062 | use the unmodified requested address. | |
6063 | ||
01c66ae6 JB |
6064 | 2008-06-27 Joel Brobecker <brobecker@adacore.com> |
6065 | ||
6066 | * dwarf2read.c (read_attribute_value): Issue a complaint when | |
6067 | adjusting size attribute values of 0xffffffff as zero. | |
6068 | ||
7ccc1c74 JM |
6069 | 2008-06-27 Joseph Myers <joseph@codesourcery.com> |
6070 | ||
6071 | * i386-tdep.c (i386_16_byte_align_p): New. | |
6072 | (i386_push_dummy_call): Determine stack space required for | |
6073 | arguments going forwards allowing for 16-byte alignment, then push | |
6074 | arguments going forwards. | |
6075 | ||
c0a2216e PA |
6076 | 2008-06-27 Pedro Alves <pedro@codesourcery.com> |
6077 | ||
6078 | * infrun.c (start_remote): Don't clear thread list here. | |
6079 | * monitor.c (monitor_open): Include "gdbthread.h". Clear thread | |
6080 | list here. | |
6081 | * remote.c (record_currthread): Upgrade the main thread and its | |
6082 | entry in the thread list if this is the first time we hear about | |
6083 | threads. | |
6084 | (remote_thread_alive): Consider magic_null_ptid or a ptid without | |
6085 | a tid member always alive. | |
6086 | (remote_find_new_threads): Don't update the main thread here. | |
6087 | (remote_start_remote): Clear thread list here. Always add the | |
6088 | main thread. | |
6089 | (extended_remote_attach_1): Add the main thread here. | |
6090 | (extended_remote_mourn_1): Re-add the main thread here. | |
6091 | (extended_remote_create_inferior_1): Add a main thread. | |
6092 | ||
6093 | * Makefile.in (monitor.o): Depend on $(gdbthread_h). | |
6094 | ||
87b0e16e | 6095 | 2008-06-27 Pedro Alves <pedro@codesourcery.com> |
79d7f229 PA |
6096 | |
6097 | Use ptid_t.tid to store thread ids instead of ptid_t.pid. | |
6098 | ||
6099 | * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New | |
6100 | globals. | |
6101 | (general_thread, continue_thread): Change type to ptid_t. | |
6102 | (record_currthread): Take a ptid_t parameter instead of an | |
6103 | integer. | |
6104 | (MAGIC_NULL_PID): Delete. | |
6105 | (set_thread): Take a ptid_t parameter and adjust. | |
6106 | (set_general_thread, set_continue_thread): New. | |
6107 | (remote_thread_alive, remote_newthread_step) | |
6108 | (remote_current_thread, remote_find_new_threads) | |
6109 | (remote_threads_info, remote_start_remote, remote_vcont_resume) | |
6110 | (remote_resume_1, remote_wait, extended_remote_create_inferior_1) | |
6111 | (threadalive_test, remote_pid_to_str) | |
6112 | (remote_get_thread_local_address): Adjust. | |
6113 | (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid | |
6114 | and any_thread_ptid. | |
6115 | ||
3ca64bd3 JK |
6116 | 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
6117 | ||
6118 | * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui. | |
6119 | * configure: Regenerated. | |
6120 | ||
28e94949 JB |
6121 | 2008-06-26 Joel Brobecker <brobecker@adacore.com> |
6122 | ||
6123 | * dwarf2read.c (read_attribute_value): Treat size attribute | |
6124 | values of 0xffffffff as if the attribute value was zero. | |
6125 | ||
8a77dff3 VP |
6126 | 2008-06-26 Vladimir Prus <vladimir@codesourcery.com> |
6127 | ||
6128 | * linux-nat.c: Add description of overall logic. | |
6129 | ||
d5af19ba DJ |
6130 | 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com> |
6131 | ||
6132 | * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H. | |
6133 | (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove | |
6134 | all dependencies on $(gdb_stdint_h). | |
6135 | (distclean): Do not delete gdb_stdint.h. | |
6136 | * acinclude.m4: Do not use stdint.m4. | |
6137 | * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h, | |
6138 | uintptr_t, and gdb_stdint.h. | |
6139 | * defs.h: Include <stdint.h>. | |
6140 | * gdb_thread_db.h: Assume stdint.h is already included. | |
6141 | * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c, | |
6142 | rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not | |
6143 | include gdb_stdint.h. | |
6144 | * configure, config.in: Regenerate. | |
6145 | ||
00fbcec4 JM |
6146 | 2008-06-26 Joseph Myers <joseph@codesourcery.com> |
6147 | ||
6148 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing | |
6149 | decimal floating-point values in GPRs for soft-float. | |
6150 | (do_ppc_sysv_return_value): Handle returning decimal | |
6151 | floating-point values in GPRs for soft-float. | |
6152 | ||
d5086790 VP |
6153 | 2008-06-26 Vladimir Prus <vladimir@codesourcery.com> |
6154 | ||
6155 | * target.c (target_read_until_error): New. | |
680b56ce AS |
6156 | * target.h (target_read_until_error): Declare. |
6157 | * mi/mi-main.c (mi_cmd_data_read_memory): Use | |
6158 | target_read_until_error. | |
d5086790 | 6159 | |
fe9441f6 JK |
6160 | 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
6161 | ||
6162 | Fix a memory leak found by Hui Zhu <teawater@gmail.com>. | |
6163 | * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization | |
6164 | after the DECFLOAT detection to fix a memory leak. Remove the | |
6165 | redundant NUM initialization. Protect the DECFLOAT detection memory | |
6166 | access before the P block. Restore the P memory content for the | |
6167 | DECFLOAT detection. | |
6168 | ||
ce8f13f8 VP |
6169 | 2008-06-25 Vladimir Prus <vladimir@codesourcery.com> |
6170 | ||
6171 | Kill the return value for all MI command functions. | |
6172 | * mi/mi-cmds.h (enum mi_cmd_result): Remove. | |
6173 | (mi_cmd_argv_ftype): Change return type to void. | |
6174 | ||
6175 | * mi/mi-main.c: Adjust all function that implement | |
6176 | MI commands to return nothing. | |
6177 | (struct captured_mi_execute_command_actions): | |
6178 | Remove the rc field. | |
6179 | (mi_cmd_execute): Return nothing. | |
6180 | (mi_execute_async_cli_command): Return nothing. | |
6181 | (mi_cmd_exec_interrupt): Don't print ^done here. | |
6182 | (mi_cmd_target_select): Don't print ^connected here. | |
6183 | (captured_mi_execute_command): Don't check for MI_CMD_DONE. | |
6184 | Special-case -target-select and output ^connected, not ^done. | |
6185 | ||
6186 | * mi/mi-cmd-break.c: Adjust. | |
6187 | * mi/mi-cmd-disas.c: Adjust. | |
6188 | * mi/mi-cmd-env.c: Adjust. | |
6189 | * mi/mi-cmd-file.c: Adjust. | |
6190 | * mi/mi-cmd-stack.c: Adjust. | |
6191 | * mi/mi-cmd-target.c: Adjust. | |
6192 | * mi/mi-cmd-var.c: Adjust. | |
6193 | * mi/mi-interp.c: Adjust. | |
6194 | * mi/mi-symbol-cmds.c: Adjust. | |
6195 | ||
a2840c35 VP |
6196 | 2008-06-25 Vladimir Prus <vladimir@codesourcery.com> |
6197 | ||
6198 | Emit ^running via observer. | |
6199 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print | |
680b56ce AS |
6200 | ^running here. |
6201 | (mi_on_resume): Print ^running if not previously output. | |
6202 | * mi/mi-main.c (running_result_record_printed): New. | |
6203 | (captured_mi_execute_command): Reset | |
6204 | running_result_record_printed. Use running_result_record_printed | |
6205 | to decide if we should skip ^done. | |
6206 | (mi_execute_async_cli_command): Don't print ^running here. | |
6207 | * mi/mi-main.h (current_token, running_result_record_printed): | |
6208 | Declare. | |
a2840c35 | 6209 | |
1f41b062 MS |
6210 | 2008-06-24 Michael Snyder <msnyder@specifix.com> |
6211 | ||
6212 | * infrun.c (_initialize_infrun): White space and typo fix. | |
6213 | ||
eff8332b CF |
6214 | 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx> |
6215 | ||
6216 | * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable. | |
6217 | (do_initial_win32_stuff): Fix problem with inability to set breakpoints | |
6218 | when first loading DLL with "dll" command. | |
6219 | ||
e50ce6de | 6220 | 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr> |
114374a0 PM |
6221 | |
6222 | * gnu-nat.c (proc_string): Use capital T for "Thread". | |
680b56ce | 6223 | |
e50ce6de | 6224 | 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr> |
17526a8c PM |
6225 | |
6226 | * win32-nat.c (win32_pid_to_str): Use capital T for "Thread". | |
680b56ce | 6227 | |
59ddf1e7 JB |
6228 | 2008-06-18 Joel Brobecker <brobecker@adacore.com> |
6229 | ||
680b56ce AS |
6230 | * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if |
6231 | the target cannot run. | |
59ddf1e7 JB |
6232 | |
6233 | 2008-06-18 Joel Brobecker <brobecker@adacore.com> | |
ea8eedbe JB |
6234 | |
6235 | * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if | |
6236 | we're attaching to a running process. | |
6237 | ||
e50ce6de | 6238 | 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr> |
7488902c PM |
6239 | |
6240 | * win32-nat.c (handle_load_dll): Give dll name and load address | |
6241 | if debug_events is on. | |
6242 | (handle_unload_dll): Likewise. | |
6243 | ||
8f6a8e84 VP |
6244 | 2008-06-14 Vladimir Prus <vladimir@codesourcery.com> |
6245 | ||
6246 | Don't suppress *running when doing finish. | |
680b56ce AS |
6247 | * infcall.c (call_function_by_hand): Set both |
6248 | suppress_resume_observer and suppress_stop_observer. | |
6249 | * infcmd.c (suppress_run_stop_observers): Split into... | |
6250 | (suppress_resume_observer, suppress_stop_observer): ...those. | |
6251 | (finish_command_continuation): Clear suppress_stop_observer. | |
6252 | (finish_command): Set suppress_stop_observer. | |
6253 | * inferior.h (suppress_run_stop_observers): Split into... | |
6254 | (suppress_resume_observer, suppress_stop_observer): ...those. | |
6255 | * infrun.c (normal_stop): Check for suppress_stop_observer. | |
6256 | * thread.c (set_running): Check for suppress_resume_observer. | |
8f6a8e84 | 6257 | |
4309257c PM |
6258 | 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt> |
6259 | Pierre Muller <muller@ics.u-strasbg.fr> | |
6260 | ||
6261 | * gdbarch.sh (gdbarch_skip_main_prologue): New. | |
6262 | * gdbarch.h, gdbarch.c: Regenerate. | |
6263 | * i386-tdep.h (i386_skip_main_prologue): Declare. | |
6264 | * i386-tdep.c (i386_skip_main_prologue): New. | |
680b56ce | 6265 | * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register |
4309257c PM |
6266 | i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback. |
6267 | * symtab.c (find_function_start_sal): When pc points at the "main" | |
6268 | function, call gdbarch_skip_main_prologue. | |
6269 | ||
a4e2ee12 DJ |
6270 | 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com> |
6271 | ||
6272 | * value.c (value_primitive_field): Fetch lazy register values. | |
6273 | ||
060871df PA |
6274 | 2008-06-11 Pedro Alves <pedro@codesourcery.com> |
6275 | ||
6276 | * NEWS: Mention support removal of undocumented S AA p PID stop | |
6277 | reply packet. | |
6278 | ||
6279 | * remote.c (remote_wait): Remove undocumented S AA p PID support. | |
6280 | ||
336de56d SS |
6281 | 2008-06-10 Stan Shebs <stan@codesourcery.com> |
6282 | ||
6283 | * MAINTAINERS: Update my affiliation and address. | |
6284 | ||
7949220d AS |
6285 | 2008-06-10 Andreas Schwab <schwab@suse.de> |
6286 | ||
6287 | * top.c (print_gdb_version): Don't print final newline. | |
6288 | ||
e1ac3328 VP |
6289 | 2008-06-10 Vladimir Prus <vladimir@codesourcery.com> |
6290 | ||
6291 | Implement *running. | |
680b56ce AS |
6292 | * Makefile.in: Update dependencies. |
6293 | * gdbthread.h (struct thread_info): New field | |
6294 | running_. | |
6295 | (set_running, is_running): New. | |
6296 | * thread.c (set_running, is_running): New. | |
6297 | * inferior.h (suppress_normal_stop_observer): Rename to... | |
6298 | (suppress_run_stop_observers): ..this. | |
6299 | * infcmd.c (suppress_normal_stop_observer): Rename to... | |
6300 | (suppress_run_stop_observers): ..this. | |
6301 | (finish_command_continuation, finish_command): Adjust. | |
6302 | * infcall.c (call_function_by_hand): Adjust. | |
6303 | * infrun.c (normal_stop): Call set_running. | |
6304 | * target.c (target_resume): New. Call set_running. | |
6305 | * target.h (target_resume): Convert from macro to | |
6306 | a function. | |
6307 | ||
6308 | * mi/mi-interp.c (mi_on_resume): New. | |
6309 | (mi_interpreter_init): Register mi_on_resume. | |
e1ac3328 | 6310 | |
f7f9a841 VP |
6311 | 2008-06-10 Vladimir Prus <vladimir@codesourcery.com> |
6312 | ||
6313 | Use observers to report stop events in MI. | |
680b56ce AS |
6314 | * mi/mi-interp.c (mi_on_normal_stop): New. |
6315 | (mi_interpreter_init): Register mi_on_normal_stop. | |
6316 | (mi_interpreter_exec_continuation): Remove. | |
6317 | (mi_cmd_interpreter_exec): Don't register the above. | |
6318 | * mi/mi-main.c (captured_mi_execute_command): Don't care | |
6319 | about sync_execution. | |
6320 | (mi_execute_async_cli_command): Don't install continuation. Don't | |
6321 | print *stopped. | |
6322 | (mi_exec_async_cli_cmd_continuation): Remove. | |
f7f9a841 | 6323 | |
f5871ec0 VP |
6324 | 2008-06-10 Vladimir Prus <vladimir@codesourcery.com> |
6325 | ||
6326 | Suppress normal stop observer when it's problematic. | |
680b56ce AS |
6327 | * inferior.h (suppress_normal_stop_observer): New. |
6328 | * infcall.c (call_function_by_hand): Disable stop events when | |
6329 | doing function calls. | |
6330 | * infmcd.c (suppress_normal_stop_observer): New. | |
6331 | (finish_command_continuation): Call normal_stop observer | |
6332 | explicitly. | |
6333 | (finish_command): Disable stop events inside proceed. | |
6334 | * infrun.c (normal_stop): Don't call normal stop observer if | |
6335 | suppressed of if multi-step is in progress. | |
f5871ec0 | 6336 | |
3d3191a6 VP |
6337 | 2008-06-10 Vladimir Prus <vladimir@codesourcery.com> |
6338 | ||
6339 | Remove stale code. | |
680b56ce AS |
6340 | * infrun.c (finish_command): Don't pass cleanup |
6341 | to continuation. | |
6342 | (finish_command_continuation): Don't grab cleanup from | |
6343 | the passed data, as we don't use, and cannot, use it anyway. | |
3d3191a6 | 6344 | |
0b080f59 VP |
6345 | 2008-06-10 Vladimir Prus <vladimir@codesourcery.com> |
6346 | ||
6347 | Introduce common cleanup for restoring integers. | |
680b56ce AS |
6348 | * defs.h (make_cleanup_restore_integer): New declaration. |
6349 | (struct cleanup): New field free_arg. | |
6350 | (make_my_cleanup_2): New. | |
6351 | * utils.c (restore_integer_closure, restore_integer) | |
6352 | (make_cleanup_restore_integer): New. | |
6353 | (make_my_cleanup): Initialize the free_arg field and | |
6354 | renamed to make_my_cleanup_2. | |
6355 | (do_my_cleanups): Call free_arg. | |
6356 | (discard_cleanups): Call free_arg. | |
6357 | * breakpoint.c (restore_always_inserted_mode): Remove. | |
6358 | (update_breakpoints_after_exec): Use make_cleanup_restore_integer. | |
0b080f59 | 6359 | |
b4f62b57 DE |
6360 | 2008-06-09 Doug Evans <dje@google.com> |
6361 | ||
6362 | * remote.c (remote_wait): Include beginning of malformed packet | |
6363 | in error output. | |
6364 | ||
37cd5d19 TT |
6365 | 2008-06-09 Tom Tromey <tromey@redhat.com> |
6366 | ||
6367 | * completer.c (complete_line): Don't special-case | |
6368 | expression_completer. | |
6369 | (expression_completer): Only pass last word to | |
6370 | location_completer. | |
6371 | * c-exp.y (yylex): Check 'token', not 'operator'. | |
6372 | ||
3526781e DJ |
6373 | 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com> |
6374 | ||
6375 | * configure.ac (build_warnings): Add -Wno-format for mingw. | |
6376 | * configure: Regenerated. | |
6377 | ||
d001be7a DJ |
6378 | 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com> |
6379 | ||
6380 | * NEWS: Make indentation consistent. Move exec tracing entry out | |
6381 | of remote packet list. | |
6382 | ||
65d12d83 TT |
6383 | 2008-06-06 Tom Tromey <tromey@redhat.com> |
6384 | ||
6385 | * value.h (evaluate_subexpression_type, extract_field_op): | |
6386 | Declare. | |
6387 | * printcmd.c (_initialize_printcmd): Use expression_completer for | |
6388 | 'p', 'inspect', 'call'. | |
6389 | * parser-defs.h (parse_field_expression): Declare. | |
6390 | * parse.c: Include exceptions.h. | |
6391 | (in_parse_field, expout_last_struct): New globals. | |
6392 | (mark_struct_expression): New function. | |
6393 | (prefixify_expression): Return int. | |
6394 | (prefixify_subexp): Return int. Use expout_last_struct. | |
6395 | (parse_exp_1): Update. | |
6396 | (parse_exp_in_context): Add 'out_subexp' argument. Handle | |
6397 | in_parse_field. | |
6398 | (parse_field_expression): New function. | |
6399 | * expression.h (parse_field_expression): Declare. | |
6400 | (in_parse_field): Likewise. | |
6401 | * eval.c (evaluate_subexpression_type): New function. | |
6402 | (extract_field_op): Likewise. | |
6403 | * completer.h (expression_completer): Declare. | |
6404 | * completer.c (expression_completer): New function. | |
6405 | (count_struct_fields, add_struct_fields): New functions. | |
6406 | * c-exp.y (yyparse): Redefine. | |
6407 | (COMPLETE): New token. | |
6408 | (exp): New productions. | |
6409 | (saw_name_at_eof, last_was_structop): New globals. | |
6410 | (yylex): Return COMPLETE when needed. Recognize in_parse_field. | |
6411 | (c_parse): New function. | |
6412 | * breakpoint.c (_initialize_breakpoint): Use expression_completer | |
6413 | for watch, awatch, and rwatch. | |
6414 | * Makefile.in (parse.o): Depend on exceptions_h. | |
6415 | ||
fed27633 PP |
6416 | 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com> |
6417 | ||
6418 | PR gdb/1147 | |
6419 | * gdb/valopts.c (find_overload_match): Handle references | |
6420 | to pointers. | |
6421 | ||
aced2898 PH |
6422 | 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com> |
6423 | ||
6424 | * ada-lang.c (ada_value_assign): Correct big-endian case to take into | |
6425 | account the bitsize of the 'from' operand. | |
6426 | ||
a2b87ed1 PA |
6427 | 2008-06-06 Pedro Alves <pedro@codesourcery.com> |
6428 | ||
6429 | * annotate.h (annotate_thread_changed): Declare. | |
6430 | ||
3d6d0b9d NR |
6431 | 2008-06-06 Nick Roberts <nickrob@snap.net.nz> |
6432 | ||
6433 | * annotate.c (annotate_thread_changed): New function. | |
6434 | * thread.c (thread_command) : Use it. | |
6435 | * infrun.c (normal_stop): Use it. | |
6436 | ||
c16158bc | 6437 | 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> |
680b56ce AS |
6438 | Nathan Sidwell <nathan@codesourcery.com> |
6439 | Joseph Myers <joseph@codesourcery.com> | |
c16158bc JM |
6440 | |
6441 | * acinclude.m4: Include ../config/acx.m4. | |
6442 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. | |
6443 | * configure, config.in: Regenerate. | |
6444 | * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting | |
6445 | address. | |
6446 | * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO. | |
6447 | ||
75c99385 PA |
6448 | 2008-06-05 Pedro Alves <pedro@codesourcery.com> |
6449 | ||
6450 | Replace 'target async' by 'maintenance set remote-async' and | |
6451 | 'target remote' combination. | |
6452 | ||
6453 | * remote.c (remote_async_wait): Merge into remote_wait, and | |
6454 | remove. | |
6455 | (remote_async_permitted, remote_async_permitted_set): New | |
6456 | variables. | |
6457 | (set_maintenance_remote_async_permitted) | |
6458 | (show_maintenance_remote_async_permitted): New functions. | |
6459 | (remote_async_ops, extended_async_remote_ops): Delete. | |
6460 | (remote_async_open, extended_remote_async_open): Delete. | |
6461 | (remote_open_1): Drop async_p parameter. Update callers. Replace | |
6462 | async_p with remote_async_permitted checks. | |
6463 | (extended_async_remote_attach): Delete. | |
6464 | (remote_resume, remote_async_resume): Merge and leave remote_resume. | |
6465 | (remote_async_terminal_inferior): Rename to... | |
6466 | (remote_terminal_inferior): ... this, and add | |
6467 | remote_async_termitted check. | |
6468 | (remote_async_terminal_ours): Rename to... | |
6469 | (remote_terminal_ours): ... this, and add remote_async_termitted | |
6470 | check. | |
6471 | (remote_wait, remote_async_wait): Merge and leave remote_wait | |
6472 | only. | |
6473 | (remote_kill, remote_async_kill): Merge and leave remote_kill | |
6474 | only. | |
6475 | (remote_async_mourn, extended_async_remote_mourn): Delete. | |
6476 | (extended_remote_create_inferior_1): Drop async_p parameter. | |
6477 | Update callers. Always use extended_remote_ops. | |
6478 | (extended_remote_async_create_inferior): Delete. | |
6479 | (remote_return_zero): Delete. | |
6480 | (init_remote_ops): Register remote_can_async_p, remote_async, | |
6481 | remote_async_mask, remote_terminal_inferior and | |
6482 | remote_terminal_ours. | |
6483 | (remote_can_async_p, remote_is_async_p): Check for | |
6484 | remote_async_permitted. | |
6485 | (init_remote_async_ops, init_extended_async_remote_ops): Remove. | |
6486 | (set_remote_cmd): Don't add async and extended-async targets. | |
6487 | (_initialize_remote): Add set/show remote-async maintenance | |
6488 | commands. | |
6489 | ||
cf30943b PA |
6490 | 2008-06-05 Pedro Alves <pedro@codesourcery.com> |
6491 | ||
6492 | * remote.c (kill_kludge): Delete. | |
6493 | (remote_wait, remote_async_wait): Don't set it. | |
6494 | (remote_kill, remote_async_kill): Don't do anything with it. | |
6495 | ||
49fd4a42 PA |
6496 | 2008-06-05 Pedro Alves <pedro@codesourcery.com> |
6497 | ||
6498 | * linux-thread-db.c (thread_db_wait): Don't trim event ptid. | |
6499 | ||
2e618c13 AR |
6500 | 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com> |
6501 | ||
6502 | * bcache.c (bcache_data): Call deprecated_bcache_added function. | |
680b56ce AS |
6503 | (deprecated_bcache_added): New function name. Body of function |
6504 | bcache_data is used here with the addition of 'added' argument. | |
2e618c13 AR |
6505 | * bcache.h (deprecated_bcache_added): New function. |
6506 | * symfile.c (add_psymbol_to_bcache): New helper function, takes part of | |
6507 | work from add_psymbol_to_list - initialises partial symbol and stashes | |
6508 | it in objfile's cache. | |
680b56ce | 6509 | (append_psymbol_to_list): New helper function, takes other part of |
2e618c13 | 6510 | work from add_psymbol_to_list - adds partial symbol to the given list. |
680b56ce | 6511 | (add_psymbol_to_list): Call helper functions instead of doing work |
2e618c13 AR |
6512 | here. If adding to global list, do not duplicate partial symbols in the |
6513 | partial symtab. | |
6514 | ||
c0b37c48 AR |
6515 | 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com> |
6516 | ||
6517 | * breakpoint.c (print_exception_catchpoint): Put 'exception' back to | |
6518 | 'exception caught|thrown' message. | |
6519 | ||
1e3a102a JK |
6520 | 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
6521 | ||
6522 | * Makefile.in: Update dependencies. | |
6523 | * dwarf2expr.c: New include "gdb_assert.h". | |
6524 | (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH. | |
6525 | (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count. | |
6526 | (execute_stack_op): Error out on too large RECURSION_DEPTH. | |
6527 | Increase/decrease RECURSION_DEPTH around the function. | |
6528 | ||
8d385431 DJ |
6529 | 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com> |
6530 | ||
6531 | * remote.c (get_offsets): Handle a single segment. | |
6532 | * symfile.c (symfile_map_offsets_to_segments): Allow more bases | |
6533 | than segments. | |
6534 | ||
93a57060 DJ |
6535 | 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com> |
6536 | ||
6537 | * solib-svr4.c (struct lm_info): Add lm_addr. | |
6538 | (main_lm_addr): New. | |
6539 | (svr4_default_sos): Set lm_addr. | |
6540 | (svr4_current_sos): Set lm_addr and main_lm_addr. | |
6541 | (svr4_fetch_objfile_link_map): Rewrite. | |
6542 | (svr4_clear_solib): Clear main_lm_addr. | |
6543 | ||
609ba780 | 6544 | 2008-06-03 Michael Snyder <msnyder@redhat.com> |
680b56ce | 6545 | Joseph Myers <joseph@codesourcery.com> |
609ba780 JM |
6546 | |
6547 | * mips-tdep.c (mips_eabi_return_value): Replace stub that always | |
6548 | returned RETURN_VALUE_STRUCT_CONVENTION with a real function. | |
6549 | ||
c95f5026 JB |
6550 | 2008-06-02 Roman Zippel <zippel@linux-m68k.org> |
6551 | ||
6552 | * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test. | |
6553 | ||
e4d8bc08 JB |
6554 | 2008-06-02 Roman Zippel <zippel@linux-m68k.org> |
6555 | ||
6556 | * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn. | |
6557 | ||
40adab56 JB |
6558 | 2008-06-01 Joel Brobecker <brobecker@adacore.com> |
6559 | ||
6560 | * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not | |
6561 | treat pointers in data space as function descriptors if the | |
6562 | target address is also in the data space. | |
6563 | ||
bfd66dd9 JB |
6564 | 2008-05-30 Joel Brobecker <brobecker@adacore.com> |
6565 | ||
6566 | * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set | |
6567 | the trad-frame register value for the SP register. | |
6568 | ||
7ea566be MK |
6569 | 2008-05-29 Mark Kettenis <kettenis@gnu.org> |
6570 | ||
6571 | * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes. | |
6572 | ||
fcac911a JB |
6573 | 2008-05-28 Joel Brobecker <brobecker@adacore.com> |
6574 | ||
6575 | * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic | |
6576 | that identifies function descriptors outside of the .opd section. | |
6577 | ||
ade92717 AR |
6578 | 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com> |
6579 | ||
6580 | * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for | |
680b56ce | 6581 | temporary catchpoints. In MI add missing fields 'reason', 'disp', |
ade92717 AR |
6582 | 'bkptno'. |
6583 | (print_mention_exception_catchpoint): Add 'Temporary' for temporary | |
6584 | catchpoints. | |
6585 | (handle_gnu_v3_exceptions): Use tempflag. | |
6586 | ||
f7f9ae2c VP |
6587 | 2008-05-28 Vladimir Prus <vladimir@codesourcery.com> |
6588 | ||
6589 | Refactor varobj_update interface. | |
680b56ce AS |
6590 | * varobj.c (varobj_update): Report changes as vector. Also |
6591 | return not just a list of varobj, but a list of special structures | |
6592 | that tell what exactly has changed. | |
6593 | * varobj.h (enum varobj_update_error): Rename to | |
6594 | varobj_scope_status. | |
6595 | (struct varobj_update_result_t): New. | |
6596 | (varobj_update): Adjust prototype. | |
6597 | * mi/mi-cmd-var.c: Adjust for changes. | |
f7f9ae2c | 6598 | |
ea56f9c2 VP |
6599 | 2008-05-28 Vladimir Prus <vladimir@codesourcery.com> |
6600 | ||
6601 | * varobj.c (varobj_update): Fix comment typo. | |
6602 | Fix indentation. | |
6603 | ||
c7efd0b9 JB |
6604 | 2008-05-26 Joel Brobecker <brobecker@adacore.com> |
6605 | ||
6606 | Set the symtab field of symbols read from ECOFF debugging entries. | |
6607 | * mdebugread.c (add_symbol): Add new parameter symtab. | |
6608 | (parse_symbol): Update calls to add_symbol throughout. | |
6609 | ||
2a2d4dc3 AS |
6610 | 2008-05-27 Andreas Schwab <schwab@suse.de> |
6611 | ||
6612 | * symtab.h (enum address_class): Remove LOC_REGPARM and | |
6613 | LOC_COMPUTED_ARG. | |
6614 | (struct symbol): Add is_argument. | |
6615 | (SYMBOL_IS_ARGUMENT): Define. | |
6616 | ||
6617 | * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT. | |
6618 | * buildsym.c (finish_block): Likewise. | |
6619 | * stack.c (print_frame_args, print_block_frame_locals) | |
6620 | (print_frame_arg_vars): Likewise. | |
6621 | * symtab.c (lookup_block_symbol): Likewise. | |
6622 | * tracepoint.c (add_local_symbols): Likewise. | |
6623 | * mi/mi-cmd-stack.c (list_args_or_locals): Likewise. | |
6624 | ||
6625 | * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT. | |
6626 | * dwarf2read.c (new_symbol): Likewise. | |
6627 | * mdebugread.c (parse_symbol): Likewise. | |
6628 | * stabsread.c (define_symbol): Likewise. | |
6629 | ||
6630 | * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM | |
6631 | and LOC_COMPUTED_ARG. | |
6632 | * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise. | |
6633 | * ax-gdb.c (gen_var_ref): Likewise. | |
6634 | * eval.c (evaluate_subexp_for_address): Likewise. | |
6635 | * findvar.c (symbol_read_needs_frame, read_var_value): Likewise. | |
6636 | * m2-exp.y (yylex): Likewise. | |
6637 | * printcmd.c (address_info): Likewise. | |
6638 | * symmisc.c (print_symbol, print_partial_symbols): Likewise. | |
6639 | * tracepoint.c (collect_symbol, scope_info): Likewise. | |
6640 | ||
17ea7499 CES |
6641 | 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> |
6642 | ||
6643 | * gdbarch.sh: Added new gdbarch struct | |
6644 | core_regset_sections. | |
6645 | * gdbarch.c: Refreshed. | |
6646 | * gdbarch.h: Refreshed. | |
6647 | * regset.h (core_regset_section): Declared. | |
6648 | * linux-nat.c (linux_nat_do_thread_registers): Added | |
6649 | support for the new gdbarch struct core_regset_sections. | |
6650 | * utils.c (host_address_to_string): New function. | |
6651 | * defs.h (host_address_to_string): New prototype. | |
6652 | * i386-linux-tdep.c (i386_regset_rections): New register | |
6653 | sections list for i386. | |
6654 | (i386_linux_init_abi): Initialized new gdbarch struct | |
6655 | core_regset_sections. | |
6656 | * Makefile.in: Updated to reflect dependency changes. | |
6657 | * ppc-linux-tdep.c (ppc_regset_sections): Register | |
6658 | sections list for ppc. | |
6659 | (ppc_linux_init_abi): Initialized new gdbarch struct | |
6660 | core_regset_sections | |
6661 | ||
c4fc331b AS |
6662 | 2008-05-24 Andreas Schwab <schwab@suse.de> |
6663 | ||
6664 | * linespec.c (decode_objc): Save current language around call to | |
6665 | get_selected_block. | |
6666 | ||
e936309c JB |
6667 | 2008-05-23 Joel Brobecker <brobecker@adacore.com> |
6668 | ||
6669 | * valprint.h (get_array_bounds): Renames get_array_low_bound. | |
6670 | * valprint.c (get_array_bounds): Renames get_array_low_bound. | |
6671 | Return the proper bound value if the array index type is an | |
6672 | enumerated type. Compute the high bound if requested. | |
6673 | (val_print_array_elements): Handle the case when the array | |
6674 | element has a null size. | |
6675 | * ada-valprint.c (print_optional_low_bound): Add handling | |
6676 | for empty arrays or arrays of zero-size elements. | |
6677 | (ada_val_print_array): New function, extracted out from | |
6678 | ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to | |
6679 | handle empty arrays and arrays of zero-size elements. | |
6680 | (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out | |
6681 | code by call to ada_val_print_array. | |
6682 | (ada_value_print): Remove handling of null array. The handling | |
6683 | was incomplete and is now better handled by ada_val_print_array. | |
6684 | ||
50ee7535 MD |
6685 | 2008-05-23 Markus Deuling <deuling@de.ibm.com> |
6686 | ||
6687 | * annotate.c (annotate_source, annotate_frame_begin): Replace | |
6688 | deprecated_print_address_numeric with paddress. | |
6689 | * cli/cli-cmds.c (list_command, edit_command): Likewise. | |
6690 | * tui/tui-stack.c (tui_make_status_line): Likewise. | |
6691 | ||
6692 | * defs.h (deprecated_print_address_numeric): Remove. | |
6693 | * printcmd.c (deprecated_print_address_numeric): Remove. | |
6694 | * maint.c (maint_print_section_info): Fix comment. | |
6695 | ||
d44e8473 MD |
6696 | 2008-05-23 Markus Deuling <deuling@de.ibm.com> |
6697 | ||
6698 | * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars, | |
6699 | print_binary_chars, print_char_chars): Add byte_order parameter and | |
6700 | replace gdbarch_byte_order. | |
6701 | (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their | |
6702 | expressions and remove them. Remove unused TWO_TO_FOURTH. | |
6703 | (val_print_type_code_int): Introduce gdbarch_byte_order to get at the | |
6704 | endianness. Update call to print_hex_chars. | |
6705 | * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars, | |
6706 | print_binary_chars, print_char_chars): Add byte_order parameter. | |
6707 | * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to | |
6708 | get at the endianness. Update print_*_char calls to use byte_order. | |
6709 | ||
10f4ecb8 UW |
6710 | 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com> |
6711 | ||
6712 | * symtab.h (struct symbol): Make "aux_value" member a void pointer | |
6713 | instead of a union. | |
6714 | (SYMBOL_LOCATION_BATON): Update. | |
6715 | ||
c3b22bd0 UW |
6716 | 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com> |
6717 | ||
6718 | * symtab.h (enum address_class): Remove LOC_BASEREG and | |
6719 | LOC_BASEREG_ARG. | |
6720 | (struct symbol): Remove "basereg" member of "aux_value" union. | |
6721 | (SYMBOL_BASEREG): Remove. | |
6722 | ||
6723 | * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG | |
6724 | or LOC_BASEREG_ARG. | |
6725 | * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise. | |
6726 | (ada_add_block_symbols): Likewise. | |
6727 | * ax-gdb.c (gen_var_ref): Likewise. | |
6728 | * buildsym.c (finish_block): Likewise. | |
6729 | * findvar.c (symbol_read_needs_frame, read_var_value): Likewise. | |
6730 | * m2-exp.y (yylex): Likewise. | |
6731 | * mi/mi-cmd-stack.c (list_args_or_locals): Likewise. | |
6732 | * printcmd.c (address_info): Likewise. | |
6733 | * stack.c (print_frame_args, print_block_frame_locals): Likewise. | |
6734 | (print_frame_arg_vars): Likewise. | |
6735 | * symmisc.c (print_symbol): Likewise. | |
6736 | * symtab.c (lookup_block_symbol): Likewise. | |
6737 | * tracepoint.c (collect_symbol, add_local_symbols): Likewise. | |
6738 | (scope_info): Likewise. | |
6739 | ||
aa59ba6b UW |
6740 | 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com> |
6741 | ||
6742 | * symtab.h (enum address_class): Remove LOC_LOCAL_ARG. | |
6743 | ||
6744 | * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG. | |
6745 | * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise. | |
6746 | (ada_add_block_symbols): Likewise. | |
6747 | * ax-gdb.c (gen_var_ref): Likewise. | |
6748 | * buildsyms.c (finish_block): Likewise. | |
6749 | * findvar.c (symbol_read_needs_frame, read_var_value): Likewise. | |
6750 | * m2-exp.y (yylex): Likewise. | |
6751 | * mi/mi-cmd-stack.c (list_args_or_locals): Likewise. | |
6752 | * printcmd.c (address_info): Likewise. | |
6753 | * stack.c (print_frame_args, print_frame_arg_vars): Likewise. | |
6754 | * symmisc.c (print_symbol, print_partial_symbols): Likewise. | |
6755 | * symtab.c (lookup_block_symbol): Likewise. | |
6756 | * tracepoint.c (collect_symbol, add_local_symbols): Likewise. | |
6757 | (scope_info): Likewise. | |
6758 | ||
0bb4e8c4 UW |
6759 | 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com> |
6760 | ||
6761 | * symtab.h (enum address_class): Remove LOC_INDIRECT and | |
6762 | LOC_HP_THREAD_LOCAL_STATIC. | |
6763 | ||
6764 | * findvar.c (symbol_read_needs_frame, read_var_value): Do not | |
6765 | handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC. | |
6766 | (read_var_value): Likewise. | |
6767 | * buildsym.c (finish_block): Likewise. | |
6768 | * objfiles.c (objfile_relocate): Likewise. | |
6769 | * printcmd.c (address_info): Likewise. | |
6770 | * symmisc.c (print_symbol, print_partial_symbols): Likewise. | |
6771 | * tracepoint.c (scope_info): Likewise. | |
6772 | ||
9f61f19b MG |
6773 | 2008-05-21 Markus Deuling <deuling@de.ibm.com> |
6774 | Maxim Grigoriev <maxim2405@gmail.com> | |
6775 | ||
6776 | * xtensa-tdep.c (xtensa_read_register): Remove. | |
6777 | (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra | |
6778 | argument litbase to call0_frame_cache(). | |
6779 | (call0_track_op, call0_analyze_prologue) | |
6780 | (call0_frame_cache): Use extra argument litbase. | |
6781 | ||
0e479716 JB |
6782 | 2008-05-21 Joel Brobecker <brobecker@adacore.com> |
6783 | ||
6784 | * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish". | |
6785 | ||
214be669 UW |
6786 | 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com> |
6787 | ||
6788 | * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove. | |
6789 | ||
0cd9ab92 UW |
6790 | 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com> |
6791 | ||
6792 | * alpha-mdebug-tdep.c: Include "trad-frame.h". | |
6793 | (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to | |
6794 | struct trad_frame_saved_reg *. | |
6795 | (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using | |
6796 | trad_frame_alloc_saved_regs. Update accesses. Record previous | |
6797 | value of SP as being vfp. | |
6798 | (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register. | |
6799 | * Makefile.in (alpha-mdebug-tdep.o): Update dependencies. | |
6800 | ||
f52cb1b8 MD |
6801 | 2008-05-21 Markus Deuling <deuling@de.ibm.com> |
6802 | ||
6803 | * score-tdep.c (score_print_insn): Get the current endianess from | |
6804 | disassemble_info instead of gdbarch_byte_order. | |
6805 | ||
8fa75a5d PA |
6806 | 2008-05-21 Pedro Alves <pedro@codesourcery.com> |
6807 | ||
6808 | * frame.c (get_prev_frame_1): Build frame id before setting | |
6809 | this_frame->prev_p, not after. | |
6810 | ||
e8e48118 NR |
6811 | 2008-05-21 Nick Roberts <nickrob@snap.net.nz> |
6812 | ||
6813 | * annotate.c (annotate_new_thread): New function for new-thread | |
6814 | annotation. | |
6815 | * annotate.h: (annotate_new_thread): New extern. | |
6816 | * thread.c (add_thread_with_info): Use it. | |
6817 | * Makefile.in (thread.o): Add dependency on annotate.h. | |
6818 | ||
c57918b2 JB |
6819 | 2008-05-20 Joel Brobecker <brobecker@adacore.com> |
6820 | ||
6821 | * win32-nat.c (win32_wait): Block the control-c event while | |
6822 | waiting for a debug event. | |
6823 | ||
6c9353d3 PA |
6824 | 2008-05-19 Pedro Alves <pedro@codesourcery.com> |
6825 | ||
6826 | * symtab.h (lookup_symbol_in_language): Update comment. | |
6827 | * symtab.c (lookup_symbol_aux_block): Update comment. | |
6828 | * ada-lang.c (ada_lookup_symbol_list): Update comment. | |
6829 | ||
2570f2b7 UW |
6830 | 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com> |
6831 | ||
6832 | * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter. | |
6833 | (lookup_symbol): Likewise. | |
6834 | * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter. | |
6835 | (lookup_symbol): Likewise. | |
6836 | (search_symbols): Update. | |
6837 | ||
6838 | * linespec.c (find_methods, collect_methods): Update. | |
6839 | (add_matching_methods, add_constructors): Update. | |
6840 | (decode_compound, decode_dollar, decode_variable): Update. | |
6841 | (lookup_prefix_sym): Update. | |
6842 | ||
6843 | (symbol_found): Remove SYM_SYMTAB parameter. | |
6844 | Use SYMBOL_SYMTAB (sym) instead. | |
6845 | ||
6846 | * gdbtypes.c (lookup_typename): Update. | |
6847 | (lookup_struct, lookup_union, lookup_enum): Update. | |
6848 | (lookup_template_type): Update. | |
6849 | (check_typedef): Update. | |
6850 | * language.c (lang_bool_type): Update. | |
6851 | * mdebugread.c (parse_procedure): Update. | |
6852 | * mi/mi-cmd-stack.c (list_args_or_locals): Update. | |
6853 | * parse.c (write_dollar_variable): Update. | |
6854 | * printcmd.c (address_info): Update. | |
6855 | * source.c (select_source_symtab): Update. | |
6856 | * stack.c (print_frame_args, print_frame_arg_vars): Update. | |
6857 | * valops.c (find_function_in_inferior): Update. | |
6858 | (value_struct_elt_for_reference): Update. | |
6859 | * value.c (value_static_field, value_fn_field): Update. | |
6860 | ||
6861 | * alpha-mdebug-tdep.c (find_proc_desc): Update. | |
6862 | * arm-tdep.c (arm_skip_prologue): Update. | |
6863 | * mt-tdep.c (mt_skip_prologue): Update. | |
6864 | * xstormy16-tdep.c (xstormy16_skip_prologue): Update. | |
6865 | ||
6866 | * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member. | |
6867 | * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter. | |
6868 | (add_defn_to_vec): Likewise. | |
6869 | (ada_add_block_symbols): Likewise. | |
6870 | (lookup_cached_symbol, cache_symbol): Likewise. | |
6871 | (standard_lookup): Update. | |
6872 | (ada_lookup_symbol_list): Update. | |
6873 | ||
6874 | * c-valprint.c (c_val_print): Update. | |
6875 | * cp-support.c (cp_lookup_rtti_type): Update. | |
6876 | * jv-lang.c (java_lookup_class, get_java_object_type): Update. | |
6877 | * objc-lang.c (lookup_struct_typedef, find_imps): Update. | |
6878 | * p-valprint.c (pascal_val_print): Update. | |
6879 | * scm-lang.c (scm_lookup_name): Update. | |
6880 | ||
6881 | * c-exp.y: Update. | |
6882 | * f-exp.y: Update. | |
6883 | * jv-exp.y: Update. | |
6884 | * m2-exp.y: Update. | |
6885 | * objc-exp.y: Update. | |
6886 | * p-exp.y: Update. | |
6887 | ||
21b556f4 UW |
6888 | 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com> |
6889 | ||
6890 | * language.h (struct language_defn): Remove SYMTAB parameter from | |
6891 | la_lookup_symbol_nonlocal callback function pointer. | |
6892 | ||
6893 | * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter. | |
6894 | (ada_lookup_encoded_symbol): Likewise. | |
6895 | * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter. | |
6896 | Always call fixup_symbol_section. | |
6897 | (ada_lookup_symbol): Remove SYMTAB parameter. | |
6898 | (ada_lookup_symbol_nonlocal): Likewise. | |
6899 | * ada-exp.y (write_object_renaming): Update. | |
6900 | (find_primitive_type): Likewise. | |
6901 | ||
6902 | * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter. | |
6903 | (cp_lookup_symbol_namespace): Likewise. | |
6904 | * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter. | |
6905 | (lookup_symbol_file): Likewise. | |
6906 | (lookup_possible_namespace_symbol): Likewise. | |
6907 | (cp_lookup_symbol_nonlocal): Likewise. | |
6908 | (cp_lookup_symbol_namespace): Likewise. | |
6909 | (cp_lookup_nested_type): Update. | |
6910 | ||
6911 | * scm-valprint.c (scm_inferior_print): Update. | |
6912 | * valops.c (value_maybe_namespace_elt): Update. | |
6913 | ||
6914 | * solist.h (struct target_so_ops): Remove SYMTAB parameter from | |
6915 | lookup_lib_global_symbol callback function pointer. | |
6916 | (solib_global_lookup): Remove SYMTAB parameter. | |
6917 | * solib.c (solib_global_lookup): Remove SYMTAB parameter. | |
6918 | * solib-svr4.c (elf_lookup_lib_symbol): Likewise. | |
6919 | ||
6920 | * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter. | |
6921 | (lookup_symbol_static): Likewise. | |
6922 | (lookup_symbol_global): Likewise. | |
6923 | (lookup_symbol_aux_block): Likewise. | |
6924 | (lookup_global_symbol_from_objfile): Likewise. | |
6925 | * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter. | |
6926 | (lookup_symbol_aux_local): Likewise. | |
6927 | (lookup_symbol_aux_block): Likewise. | |
6928 | (lookup_symbol_aux_symtabs): Likewise. | |
6929 | (lookup_symbol_aux_psymtabs): Likewise. | |
6930 | (lookup_global_symbol_from_objfile): Likewise. | |
6931 | (basic_lookup_symbol_nonlocal): Likewise. | |
6932 | (lookup_symbol_static): Likewise. | |
6933 | (lookup_symbol_global): Likewise. | |
6934 | ||
6935 | (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux. | |
6936 | ||
39237dd1 PA |
6937 | 2008-05-17 Pedro Alves <pedro@codesourcery.com> |
6938 | ||
6939 | * remote.c (init_extended_remote_ops): Fix typo. | |
6940 | ||
7c0d47a5 PA |
6941 | 2008-05-16 Pedro Alves <pedro@codesourcery.com> |
6942 | ||
6943 | * NEWS: Mention new DICOS x86 target configuration. | |
6944 | ||
907fc202 UW |
6945 | 2008-05-16 Pedro Alves <pedro@codesourcery.com> |
6946 | Ulrich Weigand <uweigand@de.ibm.com> | |
6947 | ||
6948 | * minsyms.c (lookup_minimal_symbol_by_pc_name): New function. | |
6949 | * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype. | |
6950 | ||
6951 | * symtab.c (fixup_section): Remove prototype. Add ADDR parameter; | |
6952 | use it instead of ginfo->value.address. Look up minimal symbol by | |
6953 | address and name. Assume OBJFILE is non-NULL. | |
6954 | (fixup_symbol_section): Ensure we always have an objfile to look | |
6955 | into. Extract and pass to fixup_section the symbol's address that | |
6956 | will match the minimal symbol's address. | |
6957 | (fixup_psymbol_section): Likewise. | |
6958 | ||
6959 | (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging | |
6960 | overlays and the addrmap returned the wrong section. | |
6961 | ||
6962 | * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before | |
6963 | calling fixup_symbol_section. | |
6964 | ||
42848c96 UW |
6965 | 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
6966 | ||
6967 | * minsyms.c: Include "target.h". | |
6968 | (find_solib_trampoline_target): Handle minimal symbols pointing | |
6969 | to function descriptors as well. | |
6970 | * Makefile.in (minsyms.o): Update dependencies. | |
6971 | ||
6972 | * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ... | |
6973 | (ppc64_standard_linkage1): ... this. Fix optional instructions. | |
6974 | (PPC64_STANDARD_LINKAGE_LEN): Rename to ... | |
6975 | (PPC64_STANDARD_LINKAGE1_LEN): ... this. | |
6976 | (ppc64_standard_linkage2, ppc64_standard_linkage3): New. | |
6977 | (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New. | |
6978 | (ppc64_standard_linkage_target): Rename to ... | |
6979 | (ppc64_standard_linkage1_target): ... this. | |
6980 | (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New. | |
6981 | (ppc64_skip_trampoline_code): Support three variants of standard | |
6982 | linkage stubs. Call find_solib_trampoline_target to handle | |
6983 | glink stubs. | |
6984 | ||
74d1f063 UW |
6985 | 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
6986 | ||
6987 | * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install | |
6988 | ppc64_sysv_abi_adjust_breakpoint_address. | |
6989 | * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove. | |
6990 | * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove. | |
6991 | ||
8526f328 UW |
6992 | 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
6993 | ||
6994 | * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove. | |
6995 | (ppc_linux_init_abi): Install find_solib_trampoline_target instead | |
6996 | of ppc_linux_skip_trampoline_code. | |
6997 | ||
ba2b1c56 DJ |
6998 | 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com> |
6999 | ||
7000 | * gdbarch.sh: Delete dwarf_reg_to_regnum. | |
7001 | * gdbarch.c, gdbarch.h: Regenerated. | |
7002 | * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c, | |
7003 | hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c, | |
7004 | s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum. | |
7005 | ||
4fdebdd0 PA |
7006 | 2008-05-15 Pedro Alves <pedro@codesourcery.com> |
7007 | ||
7008 | * linux-nat.c (trap_ptid): Delete. | |
7009 | (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior): | |
7010 | Adjust. | |
7011 | * linux-thread-db.c (thread_db_wait): Adjust. | |
7012 | ||
bc882aa9 JB |
7013 | 2008-05-15 Joel Brobecker <brobecker@adacore.com> |
7014 | ||
7015 | * linespec.c (decode_line_1): Fix a couple of comments. | |
7016 | ||
83b94be5 AM |
7017 | 2008-05-15 Alan Modra <amodra@bigpond.net.au> |
7018 | ||
7019 | * dbxread.c: Formatting. | |
7020 | (INTERNALIZE_SYMBOL): Init n_other. | |
7021 | (set_namestring): Take pointer to nlist arg rather than struct | |
7022 | copy. Update all callers. | |
7023 | ||
87669130 AS |
7024 | 2008-05-15 Andreas Schwab <schwab@suse.de> |
7025 | ||
7026 | * Makefile.in (dwarf2loc.o): Remove $(addrmap_h). | |
7027 | (dwarf2read.o): Add $(addrmap_h). | |
7028 | ||
00d5f93a UW |
7029 | 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com> |
7030 | ||
7031 | * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ... | |
7032 | (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try | |
7033 | to handle ppc32 PLT entries. | |
7034 | (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr | |
7035 | only on ppc64. | |
7036 | ||
2eaf8d2a DJ |
7037 | 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com> |
7038 | ||
7039 | * elfread.c (elf_symtab_read): Create trampolines for @plt symbols. | |
7040 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from | |
7041 | lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested. | |
7042 | (lookup_minimal_symbol_by_pc_section): Use | |
7043 | lookup_minimal_symbol_by_pc_section_1. | |
7044 | (lookup_solib_trampoline_symbol_by_pc): Likewise. | |
7045 | ||
20c62566 JB |
7046 | 2008-05-13 Joel Brobecker <brobecker@adacore.com> |
7047 | ||
7048 | * findcmd.c: Add #include "gdb_stdint.h". | |
7049 | * Makefile.in (findcmd.o): Update dependencies. | |
7050 | ||
87a7da84 DM |
7051 | 2008-05-11 David S. Miller <davem@davemloft.net> |
7052 | ||
de0c3d9d DM |
7053 | * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove |
7054 | long double size override, Linux does use 128-bit now. | |
7055 | ||
e8467b5a DM |
7056 | * sparc-linux-tdep.c (PSR_SYSCALL): Define. |
7057 | (sparc_linux_write_pc): New function. | |
7058 | (sparc32_linux_init_abi): Register it. | |
7059 | * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define. | |
7060 | (sparc64_linux_write_pc): New function. | |
7061 | (sparc64_linux_init_abi): Register it. | |
7062 | ||
87a7da84 DM |
7063 | * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use |
7064 | dwarf2_append_unwinders(), not dwarf2_frame_sniffer. | |
7065 | ||
8a4c2d24 UW |
7066 | 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com> |
7067 | ||
7068 | * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc | |
7069 | and info.tdep_info before calling gdbarch_init_osabi. | |
7070 | ||
003f3813 JB |
7071 | 2008-05-09 Joel Brobecker <brobecker@adacore.com> |
7072 | ||
7073 | * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force | |
7074 | the type of the right hand side of the assignment to the type | |
7075 | of the left hand side if the left hand side is a convenience | |
7076 | variable. | |
7077 | ||
7ae0e2a2 UW |
7078 | 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com> |
7079 | ||
7080 | * NEWS: Mention gdbserver bi-arch capability. | |
7081 | ||
08388c79 DE |
7082 | 2008-05-09 Doug Evans <dje@google.com> |
7083 | ||
7084 | New "find" command. | |
7085 | * NEWS: Document find command and qSearch:memory packet. | |
7086 | * Makefile.in (SFILES): Add findcmd.c. | |
7087 | (COMMON_OBJS): Add findcmd.o. | |
7088 | (findcmd.o): New rule. | |
7089 | * findcmd.c: New file. | |
7090 | * target.h (target_ops): New member to_search_memory. | |
7091 | (simple_search_memory): Declare. | |
7092 | (target_search_memory): Declare. | |
7093 | * target.c (simple_search_memory): New fn. | |
7094 | (target_search_memory): New fn. | |
7095 | * remote.c (PACKET_qSearch_memory): New packet kind. | |
7096 | (remote_search_memory): New fn. | |
7097 | (init_remote_ops): Init to_search_memory. | |
7098 | (init_extended_remote_ops): Ditto. | |
7099 | (_initialize_remote): Add qSearch:memory packet config command. | |
7100 | ||
11c68c47 EZ |
7101 | 2008-05-09 Eli Zaretskii <eliz@gnu.org> |
7102 | ||
7103 | * thread.c (_initialize_thread): Don't use commas and periods in | |
7104 | first line of doc string of "set/show print thread-events". | |
7105 | ||
6834c9bb JB |
7106 | 2008-05-08 Joel Brobecker <brobecker@adacore.com> |
7107 | ||
7108 | * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c: | |
7109 | Update for unwinder changes. | |
7110 | ||
86c31399 JB |
7111 | 2008-05-08 Joel Brobecker <brobecker@adacore.com> |
7112 | ||
7113 | * frame.c (get_frame_base_address, get_frame_locals_address) | |
7114 | (get_frame_args_address): Pass the correct frame when calling | |
7115 | frame_base_find_by_frame. | |
7116 | ||
96ef3384 UW |
7117 | 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
7118 | ||
7119 | * remote.c (extended_remote_attach_1): Call target_find_description. | |
7120 | ||
45280a52 DJ |
7121 | 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com> |
7122 | ||
7123 | * remote.c (extended_remote_create_inferior_1): Clean up | |
7124 | before marking the target running. | |
7125 | ||
227e86ad JB |
7126 | 2008-05-08 Joel Brobecker <brobecker@adacore.com> |
7127 | ||
7128 | * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder | |
7129 | changes. | |
7130 | ||
236369e7 JB |
7131 | 2008-05-07 Joel Brobecker <brobecker@adacore.com> |
7132 | ||
7133 | * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c, | |
7134 | sparc64-sol2-tdep.c: Update for unwinder changes. | |
7135 | ||
de237128 DJ |
7136 | 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com> |
7137 | ||
7138 | * cp-support.c (mangled_name_to_comp): Initialize storage. | |
7139 | (unqualified_name_from_comp): Likewise. | |
7140 | ||
4fff2411 JZ |
7141 | 2008-05-07 Jie Zhang <jie.zhang@analog.com> |
7142 | ||
7143 | * remote.c (remote_insert_breakpoint): Call get_remote_state | |
7144 | after gdbarch_breakpoint_from_pc is called. | |
7145 | (remote_insert_hw_breakpoint): Likewise. | |
7146 | ||
d8ca156b JB |
7147 | 2008-05-06 Joel Brobecker <brobecker@adacore.com> |
7148 | ||
7149 | * valprint.c (val_print): Add new language parameter and use it | |
7150 | instead of using the current_language. Update calls to val_print | |
7151 | throughout. | |
7152 | (common_val_print): Add new langauge parameter and pass it to | |
7153 | val_print. | |
7154 | * value.h (struct language_defn): Add opaque declaration. | |
7155 | (val_print, common_val_print): Update declarations. | |
7156 | * stack.c (print_frame_args): Update call to common_val_print | |
7157 | using the appropriate language. | |
7158 | * mi/mi-cmd-stack.c (list_args_or_locals): Likewise. | |
7159 | * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c, | |
7160 | mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c, | |
7161 | scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c: | |
7162 | #include "language.h" if necessary. | |
7163 | Update calls to val_print and common_val_print. | |
7164 | * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o): | |
7165 | Update dependencies. | |
7166 | ||
b1e6fd19 JB |
7167 | 2008-05-06 Joel Brobecker <brobecker@adacore.com> |
7168 | ||
7169 | * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses | |
7170 | pointing inside a non-executable section as function descriptors. | |
7171 | ||
02b19d84 PA |
7172 | 2008-05-06 Pedro Alves <pedro@codesourcery.com> |
7173 | ||
7174 | * inf-loop.c (inferior_event_handler): Run all continuations and | |
7175 | print any language change before running the breakpoint commands. | |
7176 | ||
15c1e57f JB |
7177 | 2008-05-06 Joel Brobecker <brobecker@adacore.com> |
7178 | ||
7179 | * frame-unwind.c (frame_unwind_got_bytes): New function. | |
7180 | * frame-unwind.h (frame_unwind_got_bytes): Add declaration. | |
7181 | * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update | |
7182 | for unwinder changes. | |
7183 | ||
d14508fe DE |
7184 | 2008-05-05 Doug Evans <dje@google.com> |
7185 | ||
7186 | * NEWS: Mention new /m modifier for disassemble command. | |
7187 | * cli/cli-cmds.c (print_disassembly): New function. | |
7188 | (disassemble_current_function): New function | |
7189 | (disassemble_command): Recognize /m modifier, print mixed | |
7190 | source+assembly. | |
7191 | (init_cli_cmds): Update disassemble help text. | |
7192 | ||
5142f611 MG |
7193 | 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com> |
7194 | ||
7195 | * xtensa-tdep.c: Update for unwinder changes. | |
7196 | ||
f36bf22c AS |
7197 | 2008-05-05 Andreas Schwab <schwab@suse.de> |
7198 | ||
7199 | Update m68k port for unwinder changes. | |
7200 | * m68k-tdep.c (m68k_frame_cache): Expect this_frame. | |
7201 | (m68k_frame_this_id, m68k_frame_prev_register): Update signature. | |
7202 | (m68k_frame_unwind): Use default_frame_sniffer. | |
7203 | (m68k_frame_sniffer): Remove. | |
7204 | (m68k_frame_base_address): Expect this_frame. | |
7205 | (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect | |
7206 | this_frame. | |
7207 | (m68k_gdbarch_init): Use set_gdbarch_dummy_id, | |
7208 | dwarf2_append_unwinders, and frame_unwind_append_unwinder. | |
7209 | * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info | |
7210 | parameter instead of pc value. | |
7211 | (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache): | |
7212 | Expect this_frame. | |
7213 | (m68k_linux_sigtramp_frame_this_id) | |
7214 | (m68k_linux_sigtramp_frame_prev_register) | |
7215 | (m68k_linux_sigtramp_frame_sniffer): Update signature. | |
7216 | (m68k_linux_sigtramp_frame_unwind): Use | |
7217 | m68k_linux_sigtramp_frame_sniffer. | |
7218 | (m68k_linux_init_abi): Use frame_unwind_append_unwinder. | |
7219 | ||
7220 | * m68klinux-nat.c (store_register): Fix typo. | |
7221 | ||
b3dc826b PA |
7222 | 2008-05-05 Pedro Alves <pedro@codesourcery.com> |
7223 | ||
7224 | * infcmd.c (step_1): Put thread id on the stack to avoid possible | |
7225 | NULL dereferencing. | |
7226 | ||
6528a9ea LM |
7227 | 2008-05-05 Luis Machado <luisgpm@br.ibm.com> |
7228 | ||
7229 | * symfile.c (reread_symbols): Update objfile's entry point. | |
7230 | ||
5eeb2539 AR |
7231 | 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com> |
7232 | Joel Brobecker <brobecker@adacore.com> | |
1f906a60 | 7233 | |
5eeb2539 AR |
7234 | * ada-lang.c: Update throughout to use symbol_matches_domain |
7235 | instead of matching the symbol domain explictly. | |
7236 | * dwarf2read.c (add_partial_symbol): Do not add new psym for | |
f36bf22c | 7237 | STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada |
5eeb2539 | 7238 | class as typedefs. See lookup_partial_symbol function. |
f36bf22c | 7239 | (new_symbol): Similar to add_partial_symbol, do not create |
5eeb2539 AR |
7240 | symbol for the typedef. See lookup_block_symbol. |
7241 | * symtab.c (symbol_matches_domain): New function, takes care | |
7242 | of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java. | |
7243 | (lookup_partial_symbol): Use symbol_matches_domain to see if the | |
7244 | found psym domain matches the given domain. | |
7245 | (lookup_block_symbol): Likewise. | |
7246 | ||
e2b7ddea VP |
7247 | 2008-05-05 Vladimir Prus <vladimir@codesourcery.com> |
7248 | ||
680b56ce AS |
7249 | * top.c (command_line_handler_continuation): Remove. |
7250 | (execute_command): Do not install the above. | |
e2b7ddea | 7251 | |
fcfb8b02 VP |
7252 | 2008-05-05 Vladimir Prus <vladimir@codesourcery.com> |
7253 | ||
7254 | * inf-loop.c (inferior_event_handler): Call bpstat_do_action, | |
7255 | and catch all exceptions from it. | |
7256 | * top.c (command_line_handler_continuation): Don't | |
7257 | call bpstat_do_action here. | |
7258 | ||
f792889a DJ |
7259 | 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
7260 | ||
7261 | * dwarf2read.c (struct dwarf2_cu): Add type_hash. | |
7262 | (struct die_info): Remove type. | |
7263 | (read_type_die, read_typedef, read_base_type, read_subrange_type) | |
7264 | (read_structure_type, read_enumeration_type, read_array_type) | |
7265 | (read_tag_pointer_type, read_tag_ptr_to_member_type) | |
7266 | (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type) | |
7267 | (read_tag_string_type, read_subroutine_type, read_set_type) | |
7268 | (read_unspecified_type): Delete prototypes. Remove check for | |
7269 | already-loaded type. Return the new type. | |
7270 | (set_die_type): Return the new type. | |
7271 | (reset_die_and_siblings_types): Delete. | |
7272 | (load_comp_unit, load_full_comp_unit): Set type_hash. | |
7273 | (process_queue): Remove call to reset_die_and_siblings_types. | |
7274 | (process_die): Do not read most types here. Use read_type_die | |
7275 | for others. | |
7276 | (read_func_scope, dwarf2_add_member_fn): Use read_type_die. | |
7277 | (quirk_gcc_member_function_pointer): Return the new type. | |
7278 | (process_structure_scope, process_enumeration_scope): Use | |
7279 | get_die_type and read the DIE's type. | |
7280 | (read_full_die): Do not initialize die->type. | |
7281 | (tag_type_to_type): Use read_type_die. | |
7282 | (read_type_die): Check for already defined types. Return the | |
7283 | type. | |
7284 | (determine_prefix): Use get_die_type. | |
7285 | (set_die_type): Return the type. | |
7286 | (get_die_type): Take a CU argument. Check for no type_hash. | |
7287 | ||
e7030f15 DJ |
7288 | 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
7289 | ||
7290 | * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize | |
7291 | locals. | |
7292 | ||
611c83ae PA |
7293 | 2008-05-04 Pedro Alves <pedro@codesourcery.com> |
7294 | ||
7295 | * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp | |
7296 | and bp_longjmp_resume breakpoints. | |
7297 | (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as | |
7298 | meaningful. | |
7299 | (create_longjmp_breakpoint): Don't create bp_longjmp_resume | |
7300 | breakpoints. Create bp_longjmp breakpoints as momentary | |
7301 | breakpoints. | |
7302 | (enable_longjmp_breakpoint): Delete. | |
7303 | (set_longjmp_breakpoint): New. | |
7304 | (disable_longjmp_breakpoint): Delete. | |
7305 | (delete_longjmp_breakpoint): New. | |
7306 | (set_longjmp_resume_breakpoint): Delete. | |
7307 | (set_momentary_breakpoint_at_pc): New. | |
7308 | (breakpoint_re_set_one): Don't delete bp_longjmp and | |
7309 | bp_longjmp_resume breakpoints. | |
7310 | (breakpoint_re_set): Don't create longjmp and longjmp-resume | |
7311 | breakpoints. | |
7312 | ||
7313 | * infrun.c (step_resume_breakpoint): Add comment. | |
7314 | (struct execution_control_state): Delete handling_longjmp member. | |
7315 | (init_execution_control_state). Don't clear handling_longjmp. | |
7316 | (context_switch): Don't context switch handling_longjmp. | |
7317 | (handle_inferior_event): If handling a bp_longjmp breakpoint, | |
7318 | create a bp_longjmp_resume breakpoint, and set it as current | |
7319 | step_resume_breakpoint, then step over the longjmp breakpoint. If | |
7320 | handling a bp_longjmp_resume breakpoint, don't delete the longjmp | |
7321 | breakpoint, delete the longjmp-resume breakpoint, and stop | |
7322 | stepping. | |
7323 | (currently_stepping): Remove handling_longjmp from expression. | |
7324 | (insert_step_resume_breakpoint_at_sal): Update comment. | |
7325 | (insert_longjmp_resume_breakpoint): New. | |
7326 | ||
7327 | * breakpoint.h (set_momentary_breakpoint_at_pc): Declare. | |
7328 | (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete | |
7329 | declarations. | |
7330 | (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare. | |
7331 | (set_longjmp_resume_breakpoint): Delete declaration. | |
7332 | ||
7333 | * gdbthread.h (save_infrun_state): Remove handling_longjmp | |
7334 | parameter. | |
7335 | (load_infrun_state): Delete *handling_longjmp parameter. | |
7336 | * thread.c (save_infrun_state): Remove handling_longjmp parameter. | |
7337 | Update body. | |
7338 | (load_infrun_state): Delete *handling_longjmp parameter. Update | |
7339 | body. | |
7340 | ||
7341 | * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete. | |
7342 | (delete_longjmp_breakpoint_cleanup): New. | |
7343 | (step_1): Call set_longjmp_breakpoint instead of | |
7344 | enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup | |
7345 | instead of disable_longjmp_breakpoint_cleanup when making cleanup. | |
7346 | (step_1_continuation): Pass thread id in the continuation args to | |
7347 | step_once. | |
7348 | (step_once): Add thread parameter. Pass thread id the the | |
7349 | continuation. | |
7350 | ||
85cbf3d3 JK |
7351 | 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
7352 | ||
7353 | Set CU BASE_ADDRESS already from partial DIEs. | |
7354 | * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and | |
7355 | BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and | |
7356 | DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS | |
7357 | from these variables if it was still unset. | |
7358 | ||
ff013f42 JK |
7359 | * Makefile.in: Update dependencies. |
7360 | * dwarf2read.c: Include "addrmap.h" | |
7361 | (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET. | |
7362 | (dwarf2_ranges_read): New prototype. | |
7363 | (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP. | |
7364 | Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on | |
7365 | HAS_RANGES_OFFSET, otherwise add there the contiguous range. | |
7366 | (dwarf2_ranges_read): New parameter RANGES_PST, update the function | |
7367 | comment for it. Add the found ranges to RANGES_PST. New variable | |
7368 | BASEADDR, initialize it the common way. | |
7369 | (dwarf2_get_pc_bounds): Update the caller for the new parameter. | |
7370 | (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and | |
7371 | HAS_RANGES_OFFSET for the later processing. | |
7372 | * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP. | |
7373 | * symtab.c: Include "addrmap.h" | |
7374 | (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP. | |
7375 | Move the psymtab locator into ... | |
7376 | (find_pc_sect_psymtab_closer): ... a new function. | |
7377 | ||
a7f1256d UW |
7378 | 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com> |
7379 | ||
7380 | * arch-utils.c (gdbarch_update_p): Use default values for | |
7381 | info.abfd and info.target_desc if they are NULL. | |
7382 | (gdbarch_from_bfd): Remove assertion. | |
7383 | (set_gdbarch_from_file): Call gdbarch_find_by_info directly, | |
7384 | using the current target description. | |
7385 | (gdbarch_info_fill): Do not use default values for info->abfd | |
7386 | and info->target_desc. | |
7387 | ||
b2de52bb JK |
7388 | 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
7389 | ||
7390 | * symfile.c (reread_symbols): Reload EXEC_BFD on its change. | |
7391 | ||
515630c5 UW |
7392 | 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com> |
7393 | ||
7394 | * inferior.h (read_pc_pid, write_pc_pid): Remove. | |
7395 | * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes. | |
7396 | ||
7397 | * regcache.c (read_pc_pid): Remove, replace by ... | |
7398 | (regcache_read_pc): ... this function. | |
7399 | (write_pc_pid): Remove, replace by ... | |
7400 | (regcache_write_pc): ... this function. | |
7401 | (read_pc, write_pc): Update. | |
7402 | ||
7403 | * infrun.c (displaced_step_prepare): Replace read_pc_pid and | |
7404 | write_pc_pid by regcache_read_pc and regcache_write_pc. | |
7405 | (displaced_step_fixup): Likewise. | |
7406 | (resume): Likewise. Use regcache arch instead of current_gdbarch. | |
7407 | (prepare_to_proceed): Likewise. | |
7408 | (proceed): Likewise. | |
7409 | (adjust_pc_after_break): Likewise. | |
7410 | (handle_inferior_event): Likewise. | |
7411 | ||
7412 | * linux-nat.c (cancel_breakpoint): Likewise. | |
7413 | * linux-thread-db.c (check_event): Likewise. | |
7414 | * aix-thread.c (aix_thread_wait): Likewise. | |
7415 | * tracepoint.c (trace_dump_command): Likewise. | |
7416 | ||
ebd3bcc1 JK |
7417 | 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
7418 | ||
7419 | * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing | |
7420 | SYMBOL_LOCATION_BATON. | |
7421 | ||
c47ffbe3 VP |
7422 | 2008-05-04 Vladimir Prus <vladimir@codesourcery.com> |
7423 | ||
f78bff48 VP |
7424 | * target.h (struct target_ops): New field to_auxv_parse. |
7425 | * auxv.c (default_auxv_parse): New, renamed from previous | |
7426 | target_auxv_parse. | |
7427 | (target_auxv_parse): Try to call target method. Fallback to | |
7428 | default_auxv_parse if not found. | |
7429 | * procfs.c (procfs_auxv_parse): New. | |
7430 | (init_procfs_ops): On Solaris, in 64-bit mode, install | |
7431 | procfs_auxv_parse. | |
c47ffbe3 | 7432 | |
35076fa0 AN |
7433 | 2008-05-03 Adam Nemet <anemet@caviumnetworks.com> |
7434 | ||
7435 | * symfile.c (add_symbol_file_command): Use paddress rather than | |
7436 | hex_string to print the address. | |
7437 | ||
5b197912 UW |
7438 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
7439 | ||
7440 | * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0, | |
7441 | return the null frame ID to terminate the backtrace. | |
7442 | ||
4a7622d1 UW |
7443 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
7444 | ||
7445 | * rs6000-tdep.c: Do not include "rs6000-tdep.h". | |
7446 | (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c. | |
7447 | (SIG_FRAME_PC_OFFSET): Likewise. | |
7448 | (SIG_FRAME_LR_OFFSET): Likewise. | |
7449 | (SIG_FRAME_FP_OFFSET): Likewise. | |
7450 | (rs6000_push_dummy_call): Likewise. | |
7451 | (rs6000_return_value): Likewise. | |
7452 | (rs6000_convert_from_func_ptr_addr): Likewise. | |
7453 | (branch_dest, rs6000_software_single_step): Likewise. | |
7454 | (deal_with_atomic_sequence): Rename to ... | |
7455 | (ppc_deal_with_atomic_sequence): ... this. Adapt all callers. | |
7456 | Do not call branch_dest; inline required parts of that function. | |
7457 | (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME | |
7458 | with SYMBOL_LINKAGE_NAME. | |
7459 | (struct reg, regsize): Delete. | |
7460 | (read_memory_addr): Delete; inline into callers. | |
7461 | (rs6000_skip_prologue): Move after skip_prologue. | |
7462 | (skip_prologue): Remove prototype. | |
7463 | (rs6000_gdbarch_init): Remove sysv_abi variable; perform all | |
7464 | initialization as if this variable were true. Do not install | |
7465 | ppc64_sysv_abi_adjust_breakpoint_address. | |
7466 | ||
7467 | * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h", | |
7468 | "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h", | |
7469 | and "breakpoint.h". | |
7470 | (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c. | |
7471 | (SIG_FRAME_PC_OFFSET): Likewise. | |
7472 | (SIG_FRAME_LR_OFFSET): Likewise. | |
7473 | (SIG_FRAME_FP_OFFSET): Likewise. | |
7474 | (rs6000_push_dummy_call): Likewise. | |
7475 | (rs6000_return_value): Likewise. | |
7476 | (rs6000_convert_from_func_ptr_addr): Likewise. | |
7477 | (branch_dest, rs6000_software_single_step): Likewise. Replace | |
7478 | tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE. | |
7479 | (rs6000_aix_init_osabi): Install rs6000_push_dummy_call, | |
7480 | rs6000_return_value, and rs6000_convert_from_func_ptr_addr. | |
7481 | Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size. | |
7482 | Set tdep->lr_frame_offset. Do not set tdep->text_segment_base. | |
7483 | ||
7484 | * rs6000-tdep.h (rs6000_software_single_step): Remove prototype. | |
7485 | (AIX_TEXT_SEGMENT_BASE): New macro. | |
7486 | * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base | |
7487 | by AIX_TEXT_SEGMENT_BASE. | |
7488 | ||
7489 | * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype. | |
7490 | (struct gdbarch_tdep): Remove text_segment_base member. | |
7491 | * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install | |
7492 | ppc64_sysv_abi_adjust_breakpoint_address. | |
7493 | ||
7494 | * Makefile.in (rs6000-tdep.o): Update dependencies. | |
7495 | (rs6000-aix-tdep.o): Likewise. | |
7496 | ||
938f5214 TJB |
7497 | 2008-05-03 Luis Machado <luisgpm@br.ibm.com> |
7498 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
7499 | ||
7500 | * cli/cli-decode.c (lookup_cmd_1): Fix indentation. | |
7501 | * doublest.c (convert_typed_floating): Fix typo in comment. | |
7502 | * dwarf2-frame.c (dwarf2_frame_cache): Likewise. | |
7503 | * frame-unwind.h (frame_sniffer_ftype): Likewise. | |
7504 | * frame.c (frame_unwind_address_in_block): Likewise. | |
7505 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise. | |
7506 | * symtab.h (struct symbol): Likewise. | |
7507 | * tramp-frame.h (struct trad_frame_cache): Likewise. | |
7508 | * value.c (allocate_repeat_value): Likewise. | |
7509 | ||
0b02b92d UW |
7510 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
7511 | ||
7512 | * infrun.c (handle_inferior_event): Do not insert breakpoints at | |
7513 | TARGET_WAITKIND_LOADED events during startup (i.e. in the shell). | |
7514 | ||
d705c43c PA |
7515 | 2008-05-03 Pedro Alves <pedro@codesourcery.com> |
7516 | ||
7517 | * parse.c (parse_exp_in_context): Don't override | |
7518 | expression_context_pc if get_selected_block returned a valid | |
7519 | block. | |
7520 | ||
d6350901 DJ |
7521 | 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com> |
7522 | ||
7523 | * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete. | |
7524 | * arm-tdep.h (STATUS_REGISTER_SIZE): Delete. | |
7525 | * breakpoint.c (args_for_catchpoint_enable, current_exception_event): | |
7526 | Delete. | |
7527 | * c-typeprint.c (c_type_print_base): Delete handling of template | |
7528 | instantiations. | |
7529 | * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET) | |
7530 | (METHOD_PTR_TO_VOFFSET): Delete. | |
7531 | * defs.h (QUIT_FIXME): Delete. | |
7532 | * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77) | |
7533 | (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete. | |
7534 | * gdbtypes.h (struct cplus_struct_type): Delete is_inlined, | |
7535 | ninstantiations, and instantiations. | |
7536 | (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION) | |
7537 | (TYPE_FN_FIELD_INLINED): Delete. | |
7538 | * srec.h (SREC_BINARY): Delete. | |
7539 | * symtab.c (symbol_init_demangled_name): Delete. | |
7540 | * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name) | |
7541 | (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND) | |
7542 | (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE) | |
7543 | (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC) | |
7544 | (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE) | |
7545 | (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete. | |
7546 | * target.h (enum thread_control_capabilities): Delete tc_switch. | |
7547 | (target_can_switch_threads): Delete. | |
7548 | ||
30510692 DJ |
7549 | 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com> |
7550 | ||
7551 | * Makefile.in (objfiles.o): Update. | |
7552 | * exec.c (exec_set_section_address): Support p->addr != 0. | |
7553 | * objfiles.c (objfile_relocate): Update exec_ops section | |
7554 | addresses. | |
7555 | * symfile.c (place_section): Move exec_set_section_address call... | |
7556 | (default_symfile_offsets): ...to here. | |
7557 | ||
7284e1be UW |
7558 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
7559 | ||
7560 | * Makefile.in (ppc_linux_tdep_h): New macro. | |
7561 | (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise. | |
7562 | (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise. | |
7563 | (powerpc_e500l_c): Likewise. | |
7564 | (ppc-linux-nat.o): Update dependencies. | |
7565 | (ppc-linux-tdep.o): Update dependencies. | |
7566 | (rs6000-tdep.o): Update dependencies. | |
7567 | ||
7568 | * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove. | |
7569 | (ppc_linux_svr4_fetch_link_map_offsets): Remove. | |
7570 | (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h | |
7571 | (ppc_supply_reg, ppc_collect_reg): Add prototypes. | |
7572 | (tdesc_powerpc_e500): Remove. | |
7573 | ||
7574 | * rs6000.c: Include "features/rs6000/powerpc-altivec32.c" | |
7575 | and "features/rs6000/powerpc-altivec64.c". | |
7576 | (ppc_supply_reg, ppc_collect_reg): Make global. | |
7577 | (variants): Use tdesc_powerpc_32 for "powerpc" and | |
7578 | tdesc_powerpc_altivec64 for "powerpc64". | |
7579 | (_initialize_rs6000_tdep): Initialize AltiVec descriptions. | |
7580 | ||
7581 | * ppc-linux-tdep.h: New file. | |
7582 | ||
7583 | * ppc-linux-tdep.c: Include "ppc-linux-tdep.c". | |
7584 | Include "features/rs6000/powerpc-32l.c". | |
7585 | Include "features/rs6000/powerpc-altivec32l.c". | |
7586 | Include "features/rs6000/powerpc-64l.c". | |
7587 | Include "features/rs6000/powerpc-altivec64l.c". | |
7588 | Include "features/rs6000/powerpc-e500l.c". | |
7589 | (ppc_linux_supply_gregset): New function. | |
7590 | (ppc_linux_collect_gregset): Handle orig_r3 and trap registers. | |
7591 | (ppc32_linux_gregset): Use ppc_linux_supply_gregset. | |
7592 | (ppc64_linux_gregset): Likewise. | |
7593 | (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers. | |
7594 | (ppc_linux_trap_reg_p): New function. | |
7595 | (ppc_linux_write_pc): New function. | |
7596 | (ppc_linux_core_read_description): New function. | |
7597 | (ppc_linux_init_abi): Install ppc_linux_write_pc and | |
7598 | ppc_linux_core_read_description. Install orig_r3 and trap | |
7599 | registers if present in the target description. | |
7600 | (_initialize_ppc_linux_tdep): Initialize Linux target descriptions. | |
7601 | ||
7602 | * ppc-linux-nat.c: Include "ppc-linux-tdep.h". | |
7603 | (PT_ORIG_R3, PT_TRAP): Define if necessary. | |
7604 | (ppc_register_u_addr): Handle orig_r3 and trap registers. | |
7605 | (fetch_ppc_registers): Likewise. | |
7606 | (store_ppc_registers): Likewise. | |
7607 | (store_register): Likewise. | |
7608 | (ppc_linux_read_description): Check whether AltiVec is supported. | |
7609 | Check whether inferior is 32-bit or 64-bit. Return the appropriate | |
7610 | Linux target description. | |
7611 | ||
7612 | * features/Makefile (WHICH): Use rs6000/powerpc-32l and | |
7613 | rs6000/powerpc-altivec32l instead of rs6000/powerpc-32. | |
7614 | Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead | |
7615 | of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of | |
7616 | rs6000/powerpc-e500. Update -expedite variables accordingly. | |
7617 | ||
7618 | * features/rs6000/power-spe.xml: Use regnum 73 for "acc". | |
7619 | * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml. | |
7620 | * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml. | |
7621 | * features/rs6000/powerpc-e500.c: Regenerate. | |
7622 | * features/rs6000/powerpc-32.c: Regenerate. | |
7623 | * features/rs6000/powerpc-64.c: Regenerate. | |
7624 | ||
7625 | * features/rs6000/power-linux.xml: New file. | |
7626 | * features/rs6000/power64-linux.xml: New file. | |
7627 | * features/rs6000/powerpc-32l.xml: New file. | |
7628 | * features/rs6000/powerpc-altivec32l.xml: New file. | |
7629 | * features/rs6000/powerpc-64l.xml: New file. | |
7630 | * features/rs6000/powerpc-altivec64l.xml: New file. | |
7631 | * features/rs6000/powerpc-e500l.xml: New file. | |
7632 | * features/rs6000/powerpc-32l.c: New (generated) file. | |
7633 | * features/rs6000/powerpc-altivec32l.c: New (generated) file. | |
7634 | * features/rs6000/powerpc-64l.c: New (generated) file. | |
7635 | * features/rs6000/powerpc-altivec64l.c: New (generated) file. | |
7636 | * features/rs6000/powerpc-e500l.xml: New (generated) file. | |
7637 | ||
7638 | * regformats/reg-ppc.dat: Remove. | |
7639 | * regformats/reg-ppc64.dat: Remove. | |
7640 | * regformats/rs6000/powerpc-32.dat: Remove. | |
7641 | * regformats/rs6000/powerpc-64.dat: Remove. | |
7642 | * regformats/rs6000/powerpc-e500.dat: Remove. | |
7643 | * regformats/rs6000/powerpc-32l.dat: New (generated) file. | |
7644 | * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file. | |
7645 | * regformats/rs6000/powerpc-64l.dat: New (generated) file. | |
7646 | * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file. | |
7647 | * regformats/rs6000/powerpc-e500l.dat: New (generated) file. | |
7648 | ||
063bfe2e VP |
7649 | 2008-05-03 Pedro Alves <pedro@codesourcery.com> |
7650 | ||
7651 | * thread.c (delete_thread): Call observer_notify_thread_exit. | |
680b56ce AS |
7652 | * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as |
7653 | thread_exit observer. | |
7654 | (mi_thread_exit): New. | |
063bfe2e | 7655 | |
f132ba9d TJB |
7656 | 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com> |
7657 | ||
7658 | * breakpoint.c (create_exception_catchpoint): Remove prototype | |
7659 | for already deleted function. | |
7660 | * breakpoint.h (ep_is_exception_catchpoint): Likewise. | |
7661 | * frame.h (show_stack_frame): Remove prototype. | |
7662 | * stack.c (show_stack_frame): Remove empty, unused function. | |
7663 | * source.c (symtab_to_fullname, print_source_lines): Small fix | |
7664 | in comment. | |
7665 | * value.c (show_values): Update comments to mention "show values" | |
7666 | command instead of "info history". | |
7667 | ||
bccdca4a UW |
7668 | 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com> |
7669 | ||
7670 | * linespec.c: Include "target.h". | |
7671 | (minsym_found): Handle minimal symbols pointing to function | |
7672 | descriptors. Use find_function_start_pc. | |
7673 | * minsyms.c (msymbol_objfile): New function. | |
7674 | * parse.c (write_exp_msymbol): Handle minimal symbols pointing | |
7675 | to function descriptors. | |
7676 | * symtab.c (fixup_section): Only use minimal symbol at the same | |
7677 | address to determine section of a symbol. | |
7678 | (find_function_start_pc): New function. | |
7679 | (find_function_start_sal): Use it. | |
7680 | * symtab.h (msymbol_objfile): Add prototype. | |
7681 | (find_function_start_pc): Likewise. | |
7682 | * value.c: Include "objfiles.h". | |
7683 | (value_fn_field): Handle minimal symbols pointing to function | |
680b56ce | 7684 | descriptors. |
bccdca4a UW |
7685 | * Makefile.in (linespec.o): Update dependencies. |
7686 | (value.o): Likewise. | |
7687 | ||
de4d072f JB |
7688 | 2008-05-02 Joel Brobecker <brobecker@adacore.com> |
7689 | ||
7690 | * ada-lang.c (unwrap_value): Handle the case where the "F" field | |
7691 | inside a PAD type is a bitfield. | |
7692 | ||
93d4208d UW |
7693 | 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com> |
7694 | ||
7695 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle | |
7696 | TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT. | |
7697 | Handle TYPE_CODE_REF the same as TYPE_CODE_PTR. | |
7698 | Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC. | |
7699 | Allow typedefs when checking for function pointer arguments. | |
7700 | Right-align small structs passed on the stack. | |
7701 | (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and | |
7702 | TYPE_CODE_CHAR the same as TYPE_CODE_INT. | |
7703 | Handle TYPE_CODE_REF the same as TYPE_CODE_PTR. | |
7704 | ||
60c5725c DJ |
7705 | 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com> |
7706 | ||
7707 | * Makefile.in (arm-tdep.o): Update. | |
7708 | * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol) | |
7709 | (struct arm_per_objfile, arm_compare_mapping_symbols): New. | |
7710 | (arm_pc_is_thumb): Use mapping symbols. | |
7711 | (arm_objfile_data_cleanup, arm_record_special_symbol): New. | |
7712 | (arm_gdbarch_init): Call set_gdbarch_record_special_symbol. | |
7713 | (_initialize_arm_tdep): Initialize arm_objfile_data_key. | |
7714 | * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol. | |
7715 | * gdbarch.sh: Add record_special_symbol. | |
7716 | * gdbarch.c, gdbarch.h: Regenerated. | |
7717 | * objfiles.c (struct objfile_data): Add cleanup member. | |
7718 | (register_objfile_data_with_cleanup): New function, from | |
7719 | register_objfile_data. | |
7720 | (register_objfile_data): Use it. | |
7721 | (objfile_free_data): Call clear_objfile_data. | |
7722 | (clear_objfile_data): Call cleanup functions. | |
7723 | * objfiles.h (register_objfile_data_with_cleanup): Declare. | |
7724 | ||
574dffa2 DJ |
7725 | 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com> |
7726 | ||
7727 | * objfiles.c (init_entry_point_info): Handle shared libraries. | |
7728 | ||
2c404490 DJ |
7729 | 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com> |
7730 | ||
7731 | * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to | |
7732 | lowest_pc. | |
7733 | ||
237fc4c9 PA |
7734 | 2008-05-02 Jim Blandy <jimb@codesourcery.com> |
7735 | Pedro Alves <pedro@codesourcery.com> | |
7736 | ||
7737 | Implement displaced stepping. | |
7738 | ||
7739 | * gdbarch.sh (max_insn_length): New 'variable'. | |
7740 | (displaced_step_copy, displaced_step_fixup) | |
7741 | (displaced_step_free_closure, displaced_step_location): New | |
7742 | functions. | |
7743 | (struct displaced_step_closure): Add forward declaration. | |
7744 | * gdbarch.c, gdbarch.h: Regenerated. | |
7745 | ||
7746 | * arch-utils.c: #include "objfiles.h". | |
7747 | (simple_displaced_step_copy_insn) | |
7748 | (simple_displaced_step_free_closure) | |
7749 | (displaced_step_at_entry_point): New functions. | |
7750 | * arch-utils.h (simple_displaced_step_copy_insn) | |
7751 | (simple_displaced_step_free_closure) | |
7752 | (displaced_step_at_entry_point): New prototypes. | |
7753 | ||
7754 | * i386-tdep.c (I386_MAX_INSN_LEN): Rename to... | |
7755 | (I386_MAX_MATCHED_INSN_LEN): ... this. | |
7756 | (i386_absolute_jmp_p, i386_absolute_call_p) | |
7757 | (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p) | |
7758 | (i386_displaced_step_fixup): New functions. | |
7759 | (struct i386_insn, i386_match_insn): Update. | |
7760 | (i386_gdbarch_init): Set gdbarch_max_insn_length. | |
7761 | * i386-tdep.h (I386_MAX_INSN_LEN): New. | |
7762 | (i386_displaced_step_fixup): New prototype. | |
7763 | * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h". | |
7764 | Register gdbarch_displaced_step_copy, | |
7765 | gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure, | |
7766 | and gdbarch_displaced_step_location functions. | |
7767 | ||
7768 | * infrun.c (debug_displaced): New variable. | |
7769 | (show_debug_displaced): New function. | |
7770 | (struct displaced_step_request): New struct. | |
7771 | (displaced_step_request_queue, displaced_step_ptid) | |
7772 | (displaced_step_gdbarch, displaced_step_closure) | |
7773 | (displaced_step_original, displaced_step_copy) | |
7774 | (displaced_step_saved_copy, can_use_displaced_stepping): New | |
7775 | variables. | |
7776 | (show_can_use_displaced_stepping, use_displaced_stepping) | |
7777 | (displaced_step_clear, cleanup_displaced_step_closure) | |
7778 | (displaced_step_dump_bytes, displaced_step_prepare) | |
7779 | (displaced_step_clear_cleanup, write_memory_ptid) | |
7780 | (displaced_step_fixup): New functions. | |
7781 | (resume): Call displaced_step_prepare. | |
7782 | (proceed): Call read_pc once, and remember the value. If using | |
7783 | displaced stepping, don't remove breakpoints. | |
7784 | (handle_inferior_event): Call displaced_step_fixup. Add some | |
7785 | debugging output. When we try to step over a breakpoint, but get | |
7786 | a signal to deliver to the thread instead, ensure the step-resume | |
7787 | breakpoint is actually inserted. If a thread hop is needed, and | |
7788 | displaced stepping is enabled, don't remove breakpoints. | |
7789 | (init_wait_for_inferior): Call displaced_step_clear. | |
7790 | (_initialize_infrun): Add "set debug displaced" command. Add | |
7791 | "maint set can-use-displaced-stepping" command. Clear | |
7792 | displaced_step_ptid. | |
7793 | * inferior.h (debug_displaced): Declare variable. | |
7794 | (displaced_step_dump_bytes): Declare function. | |
7795 | ||
7796 | * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update | |
7797 | dependencies. | |
7798 | ||
0428b8f5 DJ |
7799 | 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com> |
7800 | ||
7801 | * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string) | |
7802 | (arm_force_mode_string, arm_show_fallback_mode) | |
7803 | (arm_show_force_mode): New. | |
7804 | (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use | |
7805 | arm_frame_is_thumb. | |
7806 | (_initialize_arm_tdep): Add "set arm fallback-mode" | |
7807 | and "set arm force-mode". | |
7808 | * NEWS: Document new commands. | |
7809 | ||
d01a8610 AS |
7810 | 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com> |
7811 | ||
7812 | * main.h (batch_silent): Declare. | |
7813 | * event-top.c: Include main.h. | |
7814 | (gdb_setup_readline): Remove extern batch_silent declaration. | |
7815 | * infrun.c (normal_stop): Don't print source location when running in | |
7816 | --batch-silent mode. | |
7817 | * Makefile.in (event-top.o): Add main.h dependency. | |
7818 | ||
5009afc5 AS |
7819 | 2008-05-02 Andreas Schwab <schwab@suse.de> |
7820 | ||
7821 | * target.h (struct target_ops): Add | |
7822 | to_watchpoint_addr_within_range. | |
7823 | (target_watchpoint_addr_within_range): New function. | |
7824 | * target.c (update_current_target): Inherit | |
7825 | to_watchpoint_addr_within_range, defaulting to | |
7826 | default_watchpoint_addr_within_range. | |
7827 | (default_watchpoint_addr_within_range): New function. | |
7828 | (debug_to_watchpoint_addr_within_range): New function. | |
7829 | (setup_target_debug): Set to_watchpoint_addr_within_range. | |
7830 | * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range): | |
7831 | New function. | |
7832 | (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range. | |
7833 | * breakpoint.c (watchpoints_triggered): Use | |
7834 | target_watchpoint_addr_within_range. | |
7835 | ||
a15c5c83 PA |
7836 | 2008-05-01 Pedro Alves <pedro@codesourcery.com> |
7837 | ||
7838 | * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*. | |
7839 | (i[34567]86-*-dicos*, x86_64-*-dicos*): | |
7840 | Set gdb_osabi to GDB_OSABI_DICOS. | |
7841 | ||
7842 | * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS. | |
7843 | * osabi.c (gdb_osabi_name): Add "DICOS". | |
7844 | ||
7845 | * i386-dicos-tdep.c: New file. | |
7846 | ||
7847 | * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o. | |
7848 | (ALLDEPFILES): Add i386-dicos-tdep.c. | |
7849 | (i386-dicos-tdep.o): New rule. | |
7850 | ||
728c8f58 PA |
7851 | 2008-05-01 Pedro Alves <pedro@codesourcery.com> |
7852 | ||
7853 | * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list | |
7854 | and register the fork's PTID as a thread. | |
7855 | ||
604133b5 AR |
7856 | 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com> |
7857 | ||
7858 | PR gdb/1665 | |
7859 | * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and | |
7860 | assign its value to the breakpoint created. | |
7861 | (create_breakpoints): Add breakpoint_ops argument and pass it | |
7862 | to create_breakpoint call. | |
7863 | (break_command_really): Add breakpoint_ops argument and pass/assign | |
7864 | appropriately. | |
7865 | (break_command_1): Pass NULL as ops argument. | |
7866 | (set_breakpoint): Pass NULL as ops argument. | |
7867 | (print_one_exception_catchpoint): Print <PENDING> if no loc available. | |
7868 | (handle_gnu_v3_exceptions): Call generic breakpoint code to insert | |
7869 | catch and throw catchpoints. | |
5009afc5 | 7870 | |
1f906a60 | 7871 | 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com> |
1cded358 AR |
7872 | |
7873 | PR gdb/2343 | |
7874 | * corelow.c (core_open): Use gdbarch_target_signal_from_host to | |
7875 | translate signal numeric value from the target to GDB's enum | |
7876 | target_signal. | |
7877 | * gdbarch.c, gdbarch.h: Regenerated. | |
7878 | * gdbarch.sh: Added two new functions target_signal_from_host and | |
7879 | target_signal_to_host. | |
680b56ce | 7880 | * target.h (default_target_signal_from_host, |
1cded358 AR |
7881 | default_target_signal_to_host): New functions - declarations. |
7882 | * signals/signals.c (struct gdbarch): New declaration. | |
7883 | (default_target_signal_to_host, default_target_signal_from_host): New | |
7884 | functions. | |
7885 | ||
ed5e9466 DJ |
7886 | 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com> |
7887 | Pedro Alves <pedro@codesourcery.com> | |
7888 | ||
7889 | Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff | |
7890 | Johnston <jjohnstn@redhat.com>. | |
7891 | ||
7892 | * NEWS: Mention attach to stopped process fix. | |
7893 | * infcmd.c (detach_command, disconnect_command): Discard the thread | |
7894 | list. | |
7895 | * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while | |
7896 | attaching. Use signal_stop_state. | |
7897 | (signal_stop_state): Check stop_soon. | |
7898 | * linux-nat.c (kill_lwp): Declare earlier. | |
7899 | (pid_is_stopped, linux_nat_post_attach_wait): New. | |
7900 | (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update | |
7901 | comments. | |
7902 | (linux_nat_attach): Use linux_nat_post_attach_wait. | |
7903 | (detach_callback, linux_nat_detach): Improve handling for signalled | |
7904 | processes. | |
7905 | (linux_nat_pid_to_str): Always print out the LWP ID if it differs | |
7906 | from the process ID. | |
7907 | * Makefile.in (infcmd.o): Update. | |
7908 | ||
b39cc962 DJ |
7909 | 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com> |
7910 | ||
7911 | * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition. | |
7912 | * arm-tdep.c (arm_frame_is_thumb): New. | |
7913 | (arm_pc_is_thumb): Clarify comment. | |
7914 | (thumb_analyze_prologue): Remove PC special case. | |
7915 | (thumb_scan_prologue): Take a block_addr argument. Use it for | |
7916 | find_pc_partial_function. Remove unused variables. | |
7917 | (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address | |
7918 | for find_pc_partial_function. Remove PC special case. | |
7919 | (arm_prologue_prev_register): Add special handling for PC and CPSR. | |
7920 | (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New. | |
7921 | (arm_get_next_pc): Use arm_frame_is_thumb. | |
7922 | (arm_write_pc): Use CPSR_T instead of 0x20. | |
7923 | (arm_gdbarch_init): Call dwarf2_frame_set_init_reg. | |
7924 | * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM. | |
7925 | (CPSR_T): Define. | |
7926 | * dwarf2-frame.c (dwarf2_frame_prev_register): Handle | |
7927 | DWARF2_FRAME_REG_FN. | |
7928 | * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add | |
7929 | DWARF2_FRAME_REG_FN. | |
7930 | (struct dwarf2_frame_state_reg): Add FN to loc union. | |
7931 | ||
944f08ab JB |
7932 | 2008-05-01 Nick Roberts <nickrob@snap.net.nz> |
7933 | ||
7934 | * exec.c (print_section_info): Add missing '\n'. | |
7935 | ||
cfc01461 VP |
7936 | 2008-05-01 Vladimir Prus <vladimir@codesourcery.com> |
7937 | ||
7938 | * thread.c (add_thread): Move observer call to ... | |
680b56ce | 7939 | (add_thread_silent): ... here. |
cfc01461 | 7940 | |
1af5d7ce UW |
7941 | 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com> |
7942 | ||
7943 | * rs6000-tdep.c: Update for unwinder changes. | |
7944 | * ppcobsd-tdep.c: Likewise. | |
7945 | ||
f089c433 UW |
7946 | 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com> |
7947 | ||
7948 | * s390-tdep.c: Update for unwinder changes. | |
7949 | ||
8d998b8f UW |
7950 | 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com> |
7951 | ||
7952 | * spu-tdep.c: Update for unwinder changes. | |
7953 | ||
5366653e DJ |
7954 | 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com> |
7955 | ||
7956 | * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c, | |
7957 | ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c, | |
7958 | sparc64-linux-tdep.c: Update for unwinder changes. | |
7959 | ||
b8a22b94 DJ |
7960 | 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com> |
7961 | ||
7962 | * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update | |
7963 | for unwinder changes. | |
7964 | * mips-tdep.c: Likewise. | |
7965 | (mips_stub_frame_cache): Unwind the ABI stack pointer, not the | |
7966 | raw one. | |
7967 | ||
a262aec2 DJ |
7968 | 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com> |
7969 | ||
7970 | * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for | |
7971 | unwinder changes. | |
7972 | ||
10458914 DJ |
7973 | 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com> |
7974 | ||
7975 | Update i386 and amd64 ports for unwinder changes. | |
7976 | ||
7977 | * amd64-tdep.c (amd64_frame_cache): Expect this_frame. | |
7978 | (amd64_frame_this_id, amd64_frame_prev_register): Update signature. | |
7979 | (amd64_frame_unwind): Use default_frame_sniffer. | |
7980 | (amd64_frame_sniffer): Delete. | |
7981 | (amd64_sigtramp_frame_cache): Expect this_frame. | |
7982 | (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register) | |
7983 | (amd64_sigtramp_frame_sniffer): Update signature. | |
7984 | (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer. | |
7985 | (amd64_frame_base_address): Expect this_frame. | |
7986 | (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect | |
7987 | this_frame. | |
7988 | (amd64_init_abi): Use set_gdbarch_dummy_id and | |
7989 | frame_unwind_append_unwinder. | |
7990 | * i386-tdep.c (i386_frame_cache): Expect this_frame. | |
7991 | (i386_frame_this_id, i386_frame_prev_register): Update signature. | |
7992 | (i386_frame_unwind): Use default_frame_sniffer. | |
7993 | (i386_frame_sniffer): Delete. | |
7994 | (i386_sigtramp_frame_cache): Expect this_frame. | |
7995 | (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register) | |
7996 | (i386_sigtramp_frame_sniffer): Update signature. | |
7997 | (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer. | |
7998 | (i386_frame_base_address): Update signature. | |
7999 | (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame. | |
8000 | (i386_push_dummy_call): Update comment. | |
8001 | (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr): | |
8002 | Expect this_frame. | |
8003 | (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders, | |
8004 | and frame_unwind_append_unwinder. | |
8005 | * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c, | |
8006 | amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c, | |
8007 | i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c, | |
8008 | i386nbsd-tdep.c: Update for unwinder changes. | |
8009 | ||
25492ce3 DJ |
8010 | 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com> |
8011 | ||
8012 | * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame. | |
8013 | (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect | |
8014 | this_frame. | |
8015 | (trad_frame_get_prev_register, trad_frame_get_register): Update signature. | |
8016 | * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register) | |
8017 | (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update | |
8018 | signature. | |
8019 | * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect | |
8020 | this_frame. | |
8021 | (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer): | |
8022 | Update signature. | |
8023 | * tramp-frame.h (struct tramp_frame): Update signature of init. | |
8024 | * Makefile.in (trad-frame.o): Update. | |
8025 | ||
4a4e5149 DJ |
8026 | 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com> |
8027 | ||
8028 | * dwarf2-frame.c (read_reg): Expect this_frame in the baton. | |
8029 | (execute_stack_op): Put this_frame in the baton. | |
8030 | (execute_cfa_program): Take this_frame. | |
8031 | (struct dwarf2_frame_ops): Update comment for signal_frame_p. | |
8032 | (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg) | |
8033 | (dwarf2_frame_signal_frame_p, dwarf2_frame_cache) | |
8034 | (dwarf2_frame_this_id): Adjust to work on this_frame. | |
8035 | (dwarf2_signal_frame_this_id): Delete. | |
8036 | (dwarf2_frame_prev_register): Update signature. Use new frame | |
8037 | unwind methods. | |
8038 | (dwarf2_frame_sniffer): Update signature. Expect this_frame. | |
8039 | (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add | |
8040 | dwarf2_frame_sniffer. | |
8041 | (dwarf2_append_unwinders): New. | |
8042 | (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect | |
8043 | this_frame. | |
8044 | * sparc-tdep.c (sparc32_dwarf2_struct_return_p) | |
8045 | (sparc32_dwarf2_frame_init_reg): Expect this_frame. | |
8046 | * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise. | |
8047 | * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise. | |
8048 | * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise. | |
8049 | * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise. | |
8050 | * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise. | |
8051 | * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration. | |
8052 | (dwarf2_append_unwinders): Declare. | |
8053 | (dwarf2_frame_base_sniffer): Update declaration. | |
8054 | * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect | |
8055 | this_frame. | |
8056 | ||
669fac23 DJ |
8057 | 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com> |
8058 | ||
8059 | Convert frame unwinders to use the current frame and | |
8060 | "struct value". | |
8061 | ||
8062 | * frame.c (frame_debug): Make global. | |
8063 | (get_frame_id): Pass this frame to unwinder routines. | |
8064 | (frame_pc_unwind): Remove unused unwind->prev_pc support. | |
8065 | (do_frame_register_read): Do not discard the return value of | |
8066 | frame_register_read. | |
8067 | (frame_register_unwind): Remove debug messages. Use | |
8068 | frame_unwind_register_value. | |
8069 | (frame_unwind_register_value, get_frame_register_value): New | |
8070 | functions. | |
8071 | (create_new_frame, get_frame_base_address, get_frame_locals_address) | |
8072 | (get_frame_args_address, get_frame_type): Pass this frame to | |
8073 | unwinder routines. | |
8074 | (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New | |
8075 | functions. | |
8076 | * frame.h: Update comments. | |
8077 | (frame_debug, frame_unwind_register_value, get_frame_register_value) | |
8078 | (frame_prepare_for_sniffer): Declare. | |
8079 | * frame-unwind.h: Update comments and parameter names. | |
8080 | (default_frame_sniffer): Declare. | |
8081 | (frame_prev_register_ftype): Return a struct value *. | |
8082 | (struct frame_unwind): Remove prev_pc member. | |
8083 | (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete. | |
8084 | (frame_unwind_append_unwinder, frame_unwind_got_optimized) | |
8085 | (frame_unwind_got_register, frame_unwind_got_memory) | |
8086 | (frame_unwind_got_constant, frame_unwind_got_address): Declare. | |
8087 | * frame-base.h: Update comments and parameter names. | |
8088 | * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate | |
8089 | if necessary. Add debugging output. | |
8090 | * sentinel-frame.c (sentinel_frame_prev_register) | |
8091 | (sentinel_frame_this_id): Update for new signature. | |
8092 | (sentinel_frame_prev_pc): Delete. | |
8093 | (sentinel_frame_unwinder): Remove prev_pc. | |
8094 | * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize | |
8095 | prev_pc. | |
8096 | * libunwind-frame.c (libunwind_frame_unwind): Likewise. | |
8097 | * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer. | |
8098 | (frame_unwind_append_sniffer): Delete. | |
8099 | (frame_unwind_append_unwinder): New function. | |
8100 | (frame_unwind_find_by_frame): Take this frame. Only use sniffers | |
8101 | from unwinders. Use frame_prepare_for_sniffer. | |
8102 | (default_frame_sniffer, frame_unwind_got_optimized) | |
8103 | (frame_unwind_got_register, frame_unwind_got_memory) | |
8104 | (frame_unwind_got_constant, frame_unwind_got_address): New functions. | |
8105 | * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id. | |
8106 | (dummy_frame_prev_register, dummy_frame_this_id): Update for new | |
8107 | signature. | |
8108 | * gdbarch.sh: Replace unwind_dummy_id with dummy_id. | |
8109 | * gdbarch.c, gdbarch.c: Regenerated. | |
8110 | * frame-base.c (default_frame_base_address) | |
8111 | (default_frame_locals_address, default_frame_args_address): Update | |
8112 | for new signature. | |
8113 | (frame_base_find_by_frame): Pass this frame to unwinder routines. | |
8114 | * infcall.c (call_function_by_hand): Update comments. | |
8115 | * Makefile.in (frame-unwind.o): Update dependencies. | |
8116 | ||
9214ee5f DJ |
8117 | 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com> |
8118 | ||
8119 | * ada-lang.c (ada_value_primitive_packed_val): Only check | |
8120 | value_lazy for memory lvals. | |
8121 | * findvar.c (value_of_register_lazy): New function. | |
8122 | (locate_var_value): Only check value_lazy for memory lvals. | |
8123 | * valarith.c (value_subscripted_rvalue): Likewise. | |
8124 | * valops.c (value_fetch_lazy): Handle both memory and register | |
8125 | lvals. | |
8126 | (search_struct_field, value_slice): Only check value_lazy for memory | |
8127 | lvals. | |
8128 | * value.c (struct value): Update comment for lazy. | |
8129 | (value_primitive_field): Only check value_lazy for memory lvals. | |
8130 | * value.h (value_lazy): Update comment. | |
8131 | (value_of_register_lazy): Declare. | |
8132 | ||
939643d7 DJ |
8133 | 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com> |
8134 | ||
8135 | * corefile.c (reopen_exec_file): Close any open files. | |
8136 | ||
1de34ab7 JB |
8137 | 2008-04-29 Joel Brobecker <brobecker@adacore.com> |
8138 | ||
8139 | * ia64-tdep.c (ia64_memory_remove_breakpoint): Set | |
8140 | show_memory_breakpoints to 1 while reading the instruction bundle. | |
8141 | ||
ea42b34a JB |
8142 | 2008-04-29 Joel Brobecker <brobecker@adacore.com> |
8143 | ||
8144 | * gdbarch.sh: Document the return_value method. Explain that | |
8145 | the FUNCTYPE parameter might be NULL. | |
8146 | * gdbarch.h: Regenerated. | |
8147 | * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function | |
8148 | type when calling using_struct_return, as this is unnecessary | |
8149 | on this target. | |
8150 | ||
a0fe373c JB |
8151 | 2008-04-28 Joel Brobecker <brobecker@adacore.com> |
8152 | ||
8153 | * terminal.h (create_tty_session): Fix return type. | |
8154 | ||
c6446539 VP |
8155 | 2008-04-26 Vladimir Prus <vladimir@codesourcery.com> |
8156 | ||
8157 | * mi/mi-interp.c (mi_new_thread): Quote the thread id. | |
8158 | ||
2f069f6f JB |
8159 | 2008-04-26 Joel Brobecker <brobecker@adacore.com> |
8160 | ||
8161 | * breakpoint.c (condition_command, commands_from_control_command) | |
8162 | (break_command_really): Minor reformatting. | |
8163 | ||
93b5768b PA |
8164 | 2008-04-25 Pedro Alves <pedro@codesourcery.com> |
8165 | ||
8166 | * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp. | |
8167 | ||
436675d3 PA |
8168 | 2008-04-25 Pedro Alves <pedro@codesourcery.com> |
8169 | ||
8170 | * amd64-tdep.c (amd64_get_longjmp_target): New. | |
8171 | (amd64_init_abi): Register amd64_get_longjmp_target as | |
8172 | gdbarch_get_longjmp_target callback. | |
8173 | * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling. | |
8174 | ||
78b6a731 PA |
8175 | 2008-04-25 Pedro Alves <pedro@codesourcery.com> |
8176 | ||
8177 | * breakpoint.h (enum bpstat_what_main_action): Delete | |
8178 | BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE. | |
8179 | ||
8180 | * breakpoint.c (clrs): Delete. | |
8181 | (bpstat_what): Update table. | |
8182 | ||
8183 | * infrun.c (handle_inferior_event): Remove | |
8184 | BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling. | |
8185 | ||
9e22b03a VP |
8186 | 2008-04-24 Vladimir Prus <vladimir@codesourcery.com> |
8187 | ||
8188 | * mi/mi-cmds.h (mi_cmd_args_ftype): Remove. | |
8189 | Adjust all prototypes using mi_cmd_args_ftype to use | |
8190 | mi_cmd_argv_ftype. | |
8191 | (struct mi_cmd): Remove the args_func field. | |
8192 | * mi/mi-cmds.c: Don't provide value for the args_func field. | |
8193 | * mi/mi-main.c (mi_execute_async_cli_command) | |
8194 | (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction) | |
8195 | (mi_cmd_exec_step, mi_cmd_exec_step_instruction) | |
8196 | (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return) | |
8197 | (mi_cmd_exec_continue, mi_cmd_exec_interrupt) | |
8198 | (mi_cmd_target_download): Adjust. | |
8199 | (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter. | |
8200 | (mi_cmd_execute): Do not check for args_func. | |
8201 | (mi_execute_async_cli_command): Adjust. | |
8202 | * mi/mi-parse.c: Don't check for args_func. | |
8203 | ||
721c02de | 8204 | 2008-04-24 Vladimir Prus <vladimir@codesourcery.com> |
18a18393 | 8205 | |
680b56ce AS |
8206 | * breakpoint.c (bpstat_check_location) |
8207 | (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): | |
8208 | New, extracted from bpstat_stop_status. | |
8209 | (bpstat_stop_status): Use the above. | |
18a18393 VP |
8210 | |
8211 | 2008-04-24 Vladimir Prus <vladimir@codesourcery.com> | |
8212 | ||
680b56ce AS |
8213 | * mi/mi-main.c (last_async_command): Rename to current_token. |
8214 | (previous_async_command): Remove. | |
8215 | (mi_cmd_gdb_exit): Adjust. | |
8216 | (mi_cmd_exec_interrupt): Don't dance with previous_async_command. | |
8217 | (mi_cmd_target_select): Adjust. | |
8218 | (mi_cmd_execute): Don't set previous_async_command. Free token | |
8219 | here even in async mode. | |
8220 | (mi_execute_async_cli_command): Adjust. | |
8221 | (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the | |
8222 | token. | |
8223 | (mi_load_progress): Adjust. | |
721c02de | 8224 | |
f13468d9 VP |
8225 | 2008-04-24 Vladimir Prus <vladimir@codesourcery.com> |
8226 | ||
680b56ce AS |
8227 | * infcmd.c (step_1_continuation): Always disable longjmp |
8228 | breakpoint if we're not going to do another step. | |
f13468d9 | 8229 | |
f107f563 VP |
8230 | 2008-04-24 Vladimir Prus <vladimir@codesourcery.com> |
8231 | ||
8232 | exec_cleanup murder. | |
8233 | * breakpoint.c (until_break_command_continuation): Add | |
8234 | the 'error' parameter. Directly delete the breakoint as | |
8235 | opposed to running cleanups. | |
8236 | (until_break_command): Install continuation only | |
8237 | after starting the target. Don't use exec cleanups, | |
8238 | use ordinary cleanups. Discard cleanups is successfully | |
8239 | started the target in async mode. | |
8240 | (make_cleanup_delete_breakpoint): Remove. | |
8241 | * breakpoint.h (make_cleanup_delete_breakpoint): Remove | |
8242 | declaration. | |
8243 | * defs.h (do_exec_cleanups, make_exec_cleanup): Remove | |
8244 | declarations. | |
8245 | (struct continations): Add the 'error' parameter to the | |
8246 | continuation_hook field. | |
8247 | (add_continuation, do_all_continuations) | |
8248 | (add_intermediate_continuation) | |
8249 | (do_all_intermediate_continuations): Add the 'error' parameter. | |
8250 | * exceptions.c (throw_exception): Don't call do_exec_cleanups. | |
8251 | * inf-loop.c (inferior_event_handler): Instead of calling | |
8252 | discard_all_continuations, use do_all_continuations with 1 as | |
8253 | 'error' parameter. Pass 0 as 'error' parameter in existing uses | |
8254 | of discard_all_continuations. | |
8255 | * infcmd.c (step_1): Do not use exec cleanup. For async case, discard | |
8256 | cleanups. | |
8257 | (step_once): Install continuation only after resuming the target. | |
8258 | (step_1_continuation): Disable longjmp breakpoint on error. | |
8259 | (finish_command_continuation): Add the error parameter. Delete | |
8260 | the finish breakpoint directly, do not use cleanups. | |
8261 | (finish_command): Do not use exec_cleanups. Always setup | |
8262 | continuation. For sync case, immediately run them. | |
8263 | (attach_command_continuation): Add the error parameter. | |
8264 | * infrun.c (fetch_inferior_event): Do not use exec cleanups to | |
8265 | remove step_resume_breakpoint -- adjust delete it directly. | |
8266 | * interps.c (interp_set): Adjust call to do_all_continations. | |
8267 | * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not | |
8268 | do exec cleanups. | |
8269 | * mi/mi-main.c (mi_cmd_target_select): Do not do exec | |
8270 | cleanups. | |
8271 | (mi_cmd_execute): Do not use exec_cleanup. | |
8272 | (mi_execute_async_cli_command): Simplify the string concatenation | |
8273 | logic. Do no use exec cleanup. | |
8274 | (mi_exec_async_cli_cmd_continuation): New parameter error. | |
8275 | Free last_async_command. | |
8276 | * top.c (command_line_handler_continuation): New parameter error. | |
8277 | * utils.c (exec_cleanup_chain, make_exec_cleanup) | |
8278 | (do_exec_cleanups): Remove. | |
8279 | (add_continuation, do_all_continations) | |
8280 | (add_intermediate_continuation) | |
8281 | (do_all_intermediate_continuations): New parameter error. | |
8282 | ||
74960c60 VP |
8283 | 2008-04-24 Vladimir Prus <vladimir@codesourcery.com> |
8284 | ||
8285 | * breakpoint.h (bp_location_p): New typedef. | |
8286 | Register a vector of bp_location_p. | |
8287 | * breakpoint.c (always_inserted_mode) | |
8288 | (show_always_inserted_mode): New. | |
8289 | (unlink_locations_from_global_list): Remove. | |
8290 | (update_global_location_list) | |
8291 | (update_global_location_list_nothrow): New. | |
8292 | (update_watchpoint): Don't free locations. | |
8293 | (should_insert_location): New. | |
8294 | (insert_bp_location): Use should_insert_location. | |
8295 | (insert_breakpoint_locations): Copied from | |
8296 | insert_breakpoints. | |
8297 | (insert_breakpoint): Use insert_breakpoint_locations. | |
8298 | (bpstat_stop_status): Call update_global_location_list | |
8299 | when disabling breakpoint. | |
8300 | (allocate_bp_location): Don't add to bp_location_chain. | |
8301 | (set_raw_breakpoint) | |
8302 | (create_longjmp_breakpoint, enable_longjmp_breakpoint) | |
8303 | (disable_longjmp_breakpoint, create_overlay_event_breakpoint) | |
8304 | (enable_overlay_breakpoints, disable_overlay_breakpoints) | |
8305 | (set_longjmp_resume_breakpoint) | |
8306 | (enable_watchpoints_after_interactive_call_stop) | |
8307 | (disable_watchpoints_before_interactive_call_start) | |
8308 | (create_internal_breakpoint) | |
8309 | (create_fork_vfork_event_catchpoint) | |
8310 | (create_exec_event_catchpoint, set_momentary_breakpoint) | |
8311 | (create_breakpoints, break_command_1, watch_command_1) | |
8312 | (create_exception_catchpoint) | |
8313 | (handle_gnu_v3_exceptions) | |
8314 | (disable_breakpoint, breakpoint_re_set_one) | |
8315 | (create_thread_event_breakpoint, create_solib_event_breakpoint) | |
8316 | (create_ada_exception_breakpoint): : Don't call check_duplicates. | |
8317 | Call update_global_location_list. | |
8318 | (delete_breakpoint): Don't remove locations and don't | |
8319 | try to reinsert them. Call update_global_location_list. | |
8320 | (update_breakpoint_locations): Likewise. | |
8321 | (restore_always_inserted_mode): New. | |
8322 | (update_breakpoints_after_exec): Temporary disable | |
8323 | always inserted mode. | |
8324 | * Makefile.in: Update dependencies. | |
8325 | ||
8326 | * infrun.c (proceed): Remove breakpoints while stepping | |
8327 | over breakpoint. | |
8328 | (handle_inferior_event): Don't remove or insert | |
8329 | breakpoints. | |
8330 | * linux-fork.c (checkpoint_command): Remove breakpoints | |
8331 | before fork and insert after. | |
8332 | (linux_fork_context): Remove breakpoints before switch | |
8333 | and insert after. | |
8334 | * target.c (target_disconnect, target_detach): Remove | |
8335 | breakpoints from target. | |
8336 | ||
680b56ce | 8337 | |
d24317b4 VP |
8338 | 2008-04-24 Vladimir Prus <vladimir@codesourcery.com> |
8339 | ||
8340 | * breakpoint.c (print_one_breakpoint_location): In MI | |
8341 | mode, report the location string the breakpoint was | |
8342 | originally created with. | |
8343 | ||
ee967b5f MG |
8344 | 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com> |
8345 | ||
8346 | * Makefile.in (xtensa-tdep.o): Update dependencies. | |
8347 | * configure.tgt (xtensa*): Update dependencies. | |
8348 | * xtensa-tdep.c (arreg_number): Renamed from areg_number. | |
8349 | Local variable areg renamed to arreg. | |
8350 | (areg_number): New function. | |
8351 | (xtensa_pseudo_register_read, xtensa_pseudo_register_write) | |
8352 | (xtensa_extract_return_value, xtensa_store_return_value): areg_number | |
8353 | replaced by arreg_number. | |
8354 | (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments. | |
8355 | (xtensa_alloc_frame_cache): Initialize cache->wd.ws. | |
8356 | (xtensa_scan_prologue): New function. | |
8357 | (xtensa_frame_cache): New local fp_regnum. Handle separately the case, | |
8358 | when ENTRY instraction hasn't been executed yet. Get the frame pointer | |
8359 | value based on prologue analysis. Fix the bugs preventing WS and | |
8360 | AR4-AR7/A11 registers from getting right values for intermediate frames, | |
8361 | whose registers have been already spilled. | |
8362 | (xtensa_frame_prev_register): Fix WS register value. Use are_number | |
8363 | and arreg_number appropriately. | |
8364 | (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to | |
8365 | svr4_ilp32_fetch_link_map_offsets. | |
8366 | ||
09d71d23 AS |
8367 | 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com> |
8368 | ||
8369 | * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW. | |
8370 | (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set. | |
8371 | ||
fdc59709 PB |
8372 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
8373 | ||
680b56ce AS |
8374 | * acinclude.m4: Add override.m4. |
8375 | * configure: Regenerate. | |
fdc59709 | 8376 | |
0bcd0149 JK |
8377 | 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
8378 | ||
8379 | * ada-lang.c (get_selections): Variable PROMPT made non-const and | |
8380 | initialized with a trailing space now. Use PROMPT_ARG of | |
8381 | COMMAND_LINE_INPUT instead of printing it ourselves. | |
8382 | ||
88d8a8e0 JB |
8383 | 2008-04-22 Joel Brobecker <brobecker@adacore.com> |
8384 | ||
8385 | * NEWS: Document support for 64-bit core file. | |
8386 | ||
c055b101 CV |
8387 | 2008-04-22 Corinna Vinschen <vinschen@redhat.com> |
8388 | ||
8389 | * NEWS: Add information on calling convention and new SH CLI options. | |
8390 | ||
8391 | * sh-tdep.c (sh_cc_gcc): New static string. | |
8392 | (sh_cc_renesas): Ditto. | |
8393 | (sh_cc_enum): New static string array. | |
8394 | (sh_active_calling_convention): New static string pointer denoting | |
8395 | active user chosen ABI. | |
8396 | (sh_is_renesas_calling_convention): New function to return function | |
8397 | specific ABI, or user choice if necessary. | |
8398 | (sh_use_struct_convention): Rename first argument and turn around its | |
8399 | meaning. Check for renesas ABI and return accordingly. | |
8400 | (sh_use_struct_convention_nofpu): New function. | |
8401 | (sh_next_flt_argreg): Get function type as third parameter. Check | |
8402 | for renesas ABI and choose floating registers accordingly. | |
8403 | (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and | |
8404 | struct return slot accordingly. | |
8405 | (sh_push_dummy_call_nofpu): Ditto. | |
8406 | (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here. | |
8407 | Evaluate ABI and give to sh_use_struct_convention_nofpu. | |
8408 | (sh_return_value_fpu): Evaluate ABI and give to | |
8409 | sh_use_struct_convention. | |
8410 | (show_sh_command): New function. | |
8411 | (set_sh_command): Ditto. | |
8412 | (_initialize_sh_tdep): Initialize `set/show sh calling-convention | |
8413 | CLI command. | |
8414 | ||
8415 | * gdbarch.sh (return_value): Add func_type argument. | |
8416 | * gdbarch.c: Regenerate. | |
8417 | * gdbarch.h: Ditto. | |
8418 | * eval.c (evaluate_subexp_standard): Rename local variable value_type to | |
8419 | val_type so as not to collide with value_type function. Call | |
8420 | using_struct_return with additional function type argument. | |
8421 | * infcall.c (call_function_by_hand): Call using_struct_return and | |
8422 | gdbarch_return_value with additional function type argument. | |
8423 | * infcmd.c (print_return_value): Take addition func_type argument. | |
8424 | Call gdbarch_return_value with additional function type argument. | |
8425 | (finish_command_continuation): Call print_return_value with additional | |
8426 | function type argument. | |
8427 | (finish_command): Ditto. | |
8428 | * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with | |
8429 | additional function type argument. | |
8430 | * stack.c (return_command): Call using_struct_return and | |
8431 | gdbarch_return_value with additional function type argument. | |
8432 | * value.c (using_struct_return): Take additional function type argument. | |
8433 | * value.h (using_struct_return): Accommodate declaration. | |
8434 | * alpha-tdep.c (alpha_return_value): Add func_type argument. | |
8435 | * amd64-tdep.c (amd64_return_value): Ditto. | |
8436 | * arm-tdep.c (arm_return_value): Ditto. | |
8437 | * avr-tdep.c (avr_return_value): Ditto. | |
8438 | * cris-tdep.c (cris_return_value): Ditto. | |
8439 | * frv-tdep.c (frv_return_value): Ditto. | |
8440 | * h8300-tdep.c (h8300_return_value): Ditto. | |
8441 | (h8300h_return_value): Ditto. | |
8442 | * hppa-tdep.c (hppa32_return_value): Ditto. | |
8443 | (hppa64_return_value): Ditto. | |
8444 | * i386-tdep.c (i386_return_value): Ditto. | |
8445 | * ia64-tdep.c (ia64_return_value): Ditto. | |
8446 | * iq2000-tdep.c (iq2000_return_value): Ditto. | |
8447 | * m32c-tdep.c (m32c_return_value): Ditto. | |
8448 | * m32r-tdep.c (m32r_return_value): Ditto. | |
8449 | * m68hc11-tdep.c (m68hc11_return_value): Ditto. | |
8450 | * m68k-tdep.c (m68k_return_value): Ditto. | |
8451 | (m68k_svr4_return_value): Ditto. | |
8452 | * m88k-tdep.c (m88k_return_value): Ditto. | |
8453 | * mep-tdep.c (mep_return_value): Ditto. | |
8454 | * mips-tdep.c (mips_eabi_return_value): Ditto. | |
8455 | (mips_n32n64_return_value): Ditto. | |
8456 | (mips_o32_return_value): Ditto. | |
8457 | (mips_o64_return_value): Ditto. | |
8458 | * mn10300-tdep.c (mn10300_return_value): Ditto. | |
8459 | * mt-tdep.c (mt_return_value): Ditto. | |
8460 | * ppc-linux-tdep.c (ppc_linux_return_value): Ditto. | |
8461 | * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto. | |
8462 | (ppc_sysv_abi_broken_return_value): Ditto. | |
8463 | (ppc64_sysv_abi_return_value): Ditto. | |
8464 | * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto. | |
8465 | (ppc_sysv_abi_broken_return_value): Ditto. | |
8466 | (ppc64_sysv_abi_return_value): Ditto. | |
8467 | * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto. | |
8468 | * rs6000-tdep.c (rs6000_return_value): Ditto. | |
8469 | * s390-tdep.c (s390_return_value): Ditto. | |
8470 | * score-tdep.c (score_return_value): Ditto. | |
8471 | * sh-tdep.c (sh_return_value_nofpu): Ditto. | |
8472 | (sh_return_value_fpu): Ditto. | |
8473 | * sh64-tdep.c (sh64_return_value): Ditto. | |
8474 | * sparc-tdep.c (sparc32_return_value): Ditto. | |
8475 | * sparc64-tdep.c (sparc64_return_value): Ditto. | |
8476 | * spu-tdep.c (spu_return_value): Ditto. | |
8477 | * v850-tdep.c (v850_return_value): Ditto. | |
8478 | * vax-tdep.c (vax_return_value): Ditto. | |
8479 | * xstormy16-tdep.c (xstormy16_return_value): Ditto. | |
8480 | * xtensa-tdep.c (xtensa_return_value): Ditto. | |
8481 | ||
8482 | * gdbtypes.h (struct type): Add calling_convention member. | |
8483 | * dwarf2read.c (read_subroutine_type): Add calling convention read | |
8484 | from DW_AT_calling_convention attribute to function type. | |
8485 | ||
9eec4d1e MD |
8486 | 2008-04-22 Markus Deuling <deuling@de.ibm.com> |
8487 | ||
8488 | * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for | |
8489 | multi_f77_subscript to support values from registers. | |
8490 | * valarith.c (value_subscripted_rvalue): Remove prototype and static. | |
8491 | * value.h (value_subscripted_rvalue): Add prototype. | |
8492 | ||
8493 | * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION. | |
8494 | Fix output. | |
8495 | * f-valprint.c (f_val_print): Likewise. | |
8496 | ||
ef72380d CS |
8497 | 2008-04-21 Craig Silverstein <csilvers@google.com> |
8498 | ||
8499 | * dwarf2read.c (zlib_decompress_section): Define abfd in the | |
8500 | !HAVE_ZLIB_H case. | |
8501 | ||
ff8e85c3 PA |
8502 | 2008-04-21 Pedro Alves <pedro@codesourcery.com> |
8503 | ||
8504 | * symfile.c (syms_from_objfile): Don't warn if lowest loadable | |
8505 | section is not a code section. | |
8506 | ||
31fffb02 CS |
8507 | 2008-04-19 Craig Silverstein <csilvers@google.com> |
8508 | ||
8509 | * NEWS: Add information on compressed debug sections. | |
8510 | ||
8e91f023 VP |
8511 | 2008-04-19 Vladimir Prus <vladimir@codesourcery.com> |
8512 | ||
8513 | * mi/mi-cmd-var.c (varobj_update_one): Print new | |
8514 | value for variable objects that changed type. | |
8515 | ||
603ba1de VP |
8516 | 2008-04-19 Vladimir Prus <vladimir@codesourcery.com> |
8517 | ||
8518 | * varobj.c (varobj_invalidate): Don't touch floating | |
8519 | varobjs. | |
8520 | ||
7fc830e2 MK |
8521 | 2008-04-19 Mark Kettenis <kettenis@gnu.org> |
8522 | ||
8523 | * symtab.c: (multiple_symbols_modes, multiple_symbols_ask) | |
8524 | (multiple_symbols_cancel): Remove extra const. | |
8525 | * symtab.h: Likewise. | |
8526 | ||
bcbf8b68 NR |
8527 | 2008-04-19 Nick Roberts <nickrob@snap.net.nz> |
8528 | ||
8529 | * interps.c (top_level_interpreter): Rename static variable... | |
8530 | (top_level_interpreter_ptr): ...to this. | |
8531 | (top_level_interpreter): New function. | |
8532 | ||
8533 | * interps.h: New extern for top_level_interpreter. | |
8534 | ||
8535 | * linespec.c: Include interps.h and mi/mi-cmds.h. | |
8536 | (decode_line_2): When using MI, always set all breakpoints in menu. | |
8537 | ||
8538 | * Makefile.in (linespec.o, mi-interp.o): Add dependencies. | |
8539 | ||
31fffb02 | 8540 | 2008-04-18 Craig Silverstein <csilvers@google.com> |
233a11ab CS |
8541 | |
8542 | * configure.ac (AC_SEARCH_LIBS): Add check for zlib. | |
8543 | * config.in, configure: Regenerate. | |
8544 | * dwarf2read.c: Include zlib.h if present. | |
8545 | Modified *_SECTION macros. | |
8546 | (section_is_p): New. | |
8547 | (dwarf2_locate_sections): Use section_is_p instead of strcmp | |
8548 | (dwarf2_resize_section): New. | |
8549 | to determine whether a given section has a given name. | |
8550 | (zlib_decompress_section): New. | |
8551 | (dwarf2_read_section): Read the compressed section if present | |
8552 | in the binary. | |
8553 | * MAINTAINERS: Added myself to section Write After Approval. | |
bcbf8b68 | 8554 | |
a03b3a97 TJB |
8555 | 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com> |
8556 | ||
8557 | * defs.h (exec_set_section_offsets): Remove prototype. | |
8558 | * exec.c (exec_set_section_offsets): Remove function. | |
8559 | ||
9e386756 JB |
8560 | 2008-04-18 Joel Brobecker <brobecker@adacore.com> |
8561 | ||
8562 | * stabsread.c (cleanup_undefined_types_1): Add instance flags check | |
8563 | in the search for the matching symbol. | |
8564 | ||
2ec93238 MK |
8565 | 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com> |
8566 | ||
8567 | * breakpoint.c (update_watchpoint): Always reparse | |
8568 | condition. | |
8569 | ||
e9bbd7c5 JB |
8570 | 2008-04-17 Joel Brobecker <brobecker@adacore.com> |
8571 | ||
8572 | * breakpoint.c (print_one_breakpoint_location): Make sure to print | |
8573 | the breakpoint address only once. | |
8574 | ||
475bbd17 JB |
8575 | 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com> |
8576 | ||
8577 | * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture, | |
8578 | rather than a hard-coded architecture, for xcoff executables. | |
8579 | ||
86991504 DE |
8580 | 2008-04-17 Doug Evans <dje@google.com> |
8581 | ||
4584e32e DE |
8582 | * buildsym.c (watch_main_source_file_lossage): New fn. |
8583 | (end_symtab): Call it. | |
8584 | ||
86991504 DE |
8585 | * source.c (find_and_open_source): Add some comments clarifying |
8586 | handling of FULLNAME argument. Make static. Remove pointless | |
8587 | xstrdup/xfree. | |
8588 | ||
0a320680 PA |
8589 | 2008-04-17 Pedro Alves <pedro@codesourcery.com> |
8590 | ||
8591 | * inf-loop.c (inferior_event_handler): Also run the intermediate | |
8592 | continuations in the INF_EXEC_COMPLETE case. | |
8593 | ||
700b53b1 TT |
8594 | 2008-04-16 Tom Tromey <tromey@redhat.com> |
8595 | ||
8596 | * cli/cli-decode.h (CMD_ASYNC_OK): New define. | |
8597 | (set_cmd_async_ok, get_cmd_async_ok): Declare. | |
8598 | * cli/cli-decode.c (set_cmd_async_ok): New function. | |
8599 | (get_cmd_async_ok): New function. | |
8600 | * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and | |
8601 | "show" as async-ok. | |
8602 | * top.c (execute_command): Use get_cmd_async_ok. | |
8603 | * infcmd.c: Include cli/cli-decode.h. | |
8604 | (_initialize_infcmd): Mark "interrupt" as async-ok. | |
8605 | * Makefile.in (infcmd.o): Depend on cli_decode_h. | |
8606 | ||
dacec2a8 DJ |
8607 | 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com> |
8608 | ||
8609 | PR gdb/2445 | |
8610 | * exec.c: Correct "arch-utils.h" include. | |
8611 | ||
1f906a60 | 8612 | 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com> |
2cec12e5 AR |
8613 | |
8614 | PR gdb/2424 | |
8615 | * infrun.c (normal_stop) Move breakpoint_auto_delete further down | |
8616 | to allow printing to 'see' real reason of stop. This fixes PR 2424. | |
8617 | * breakpoint.c (bpdisp_texst): New function. The function takes over | |
8618 | the role of bpstats static array in print_one_breakpoint_location. | |
8619 | (print_it_typical): Print "Temporary breakpoint" instead | |
8620 | of just "Breakpoint" when breakpoint is, well, temporary. For mi-like | |
8621 | protocols, print disp field. | |
8622 | (print_one_breakpoint_location): Removed bpdisps static definition. | |
8623 | Call new bpstat_text function to get value for 'disp' field. | |
8624 | (mention): Print "Temporary breakpoint" instead of just "Breakpoint". | |
8625 | ||
4d7b71aa DJ |
8626 | 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com> |
8627 | ||
8628 | * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4, | |
8629 | gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust | |
8630 | by rerunning gnulib-tool with --aux-dir=gnulib/extra. | |
8631 | * gnulib/Makefile.in: Regenerate. | |
8632 | ||
aa11fd3f DJ |
8633 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
8634 | ||
8635 | * Makefile.in (GNULIB_H): New. Trigger all-lib. | |
8636 | (defs_h): Use $(GNULIB_H). | |
8637 | (all-lib): Depend on gnulib/Makefile. | |
8638 | (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps. | |
8639 | * config.in, gnulib/Makefile.in: Regenerated. | |
8640 | ||
e28b3332 DJ |
8641 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
8642 | ||
8643 | * Makefile.in (LIBGNU, INCGNU): Define. | |
8644 | (INTERNAL_CFLAGS_BASE): Add INCGNU. | |
8645 | (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU. | |
8646 | (CLEANDIRS): New. | |
8647 | ($(LIBGNU), all-lib): New rules. | |
8648 | (clean, distclean, do-maintainer-clean): Use CLEANDIRS. | |
8649 | * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE. | |
8650 | Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile. | |
8651 | * gnulib: New directory, from gnulib-tool. | |
8652 | * configure, aclocal.m4: Regenerated. | |
8653 | ||
e3bc4218 DJ |
8654 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
8655 | ||
8656 | * linux-thread-db.c (have_threads_callback): Check thread->private. | |
8657 | ||
fcacd99f VP |
8658 | 2008-04-13 Nick Roberts <nickrob@snap.net.nz> |
8659 | Vladimir Prus <vladimir@codesourcery.com> | |
8660 | ||
8661 | Fix @-varobjs. | |
680b56ce AS |
8662 | * varobj.c (value_of_root): Update the expression for |
8663 | floating varobjs. | |
8664 | * mi/mi-cmd-var.c (varobj_update_one): If type has changed, | |
8665 | report that. | |
fcacd99f | 8666 | |
de051565 MK |
8667 | 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com> |
8668 | ||
8669 | * mi/mi-cmd-var.c: Include "mi-getopt.h". | |
8670 | (mi_parse_format): New. Factored out from mi_cmd_var_set_format. | |
8671 | (mi_cmd_var_set_format): Use new mi_parse_format. | |
8672 | (mi_cmd_var_evaluate_expression): Support for -f option to specify | |
8673 | format. | |
8674 | * Makefile.in (mi-cmd-var.o): Update dependencies. | |
8675 | ||
8676 | * varobj.h (varobj_get_formatted_value): Declare. | |
8677 | * varobj.c (my_value_of_variable): Added format parameter. | |
8678 | (cplus_value_of_variable): Likewise. | |
8679 | (java_value_of_variable): Likewise. | |
8680 | (c_value_of_variable): Likewise. Evaluate expression based | |
8681 | on format parameter. | |
8682 | (struct language_specific): Add format parameter to function member | |
8683 | *value_of_variable. | |
8684 | (varobj_get_formatted_value): New. | |
8685 | (varobj_get_value): Added format parameter to method call. | |
680b56ce | 8686 | |
56953f80 JB |
8687 | 2008-04-08 Joel Brobecker <brobecker@adacore.com> |
8688 | ||
8689 | * stabsread.c (cleanup_undefined_types_noname): Manually set the | |
8690 | instance flags of the undefined type before calling replace_type. | |
8691 | ||
e4e33b9e VP |
8692 | 2008-04-08 Vladimir Prus <vladimir@codesourcery.com> |
8693 | ||
8694 | * target.h (enum strata): Remove the download_stratum. | |
680b56ce | 8695 | |
92b5c263 DE |
8696 | 2008-04-07 Doug Evans <dje@google.com> |
8697 | ||
8698 | * buildsym.h (last_source_file): Add dwarf info to comment. | |
8699 | (last_source_start_addr): Ditto. | |
8700 | ||
effa26a9 PA |
8701 | 2008-04-07 Pedro Alves <pedro@codesourcery.com> |
8702 | ||
8703 | * alphanbsd-tdep.c: Include "target.h". | |
8704 | * mn10300-tdep.c: Include "target.h". | |
8705 | * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update. | |
8706 | ||
2b2d9e11 VP |
8707 | 2008-04-06 Vladimir Prus <vladimir@codesourcery.com> |
8708 | ||
8709 | Fix breakpoint condition that use member variables. | |
680b56ce AS |
8710 | * valops.c (check_field): Remove. |
8711 | (check_field_in): Rename to check_field. | |
8712 | (value_of_this): Use la_name_of_this. | |
8713 | * value.h (check_field): Adjust prototype. | |
8714 | ||
8715 | * language.h (la_value_of_this): Rename to la_name_of_this. | |
8716 | * language.c (unknown_language_defn): Specify "this" for | |
8717 | name_of_this. | |
8718 | (auto_language_defn): Likewise. | |
8719 | (local_language_defn): Likewise. | |
8720 | * ada-lang.c (ada_language_defn): Adjust comment. | |
8721 | * c-lang.c (c_language_defn): Adjust comment. | |
8722 | (cplus_language_defn): Specify "this" for name_of_this. | |
8723 | (asm_language_defn): Adjust comment. | |
8724 | (minimal_language_defn): Adjust comment. | |
8725 | * f-lang.c (f_language_defn): Specify NULL for name_of_this. | |
8726 | * jv-lang.c (java_language_defn): Specify "this" for name_of_this. | |
8727 | * m2-lang.c (m2_language_defn): Specify "this" for name_of_this. | |
8728 | * objc-lang.c (objc_language_defn): Specify "self" for | |
8729 | name_of_this. | |
8730 | * p-lang.c (pascal_language_defn): Specify "this" for | |
8731 | name_of_this. | |
8732 | * scm-lang.c (scm_language_defn): Specify NULL for name_of_this. | |
8733 | ||
8734 | * symtab.c (lookup_symbol_aux): Lookup "this" in the | |
8735 | proper scope, and check for field in type of "this", without | |
8736 | trying to create a value. | |
2b2d9e11 | 8737 | |
a13e061a PA |
8738 | 2008-04-04 Pedro Alves <pedro@codesourcery.com> |
8739 | ||
8740 | * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR. | |
8741 | (mi_error_message): Delete declaration. | |
8742 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of | |
8743 | returning MI_CMD_ERROR. | |
8744 | * mi/mi-main.c (mi_error_message): Delete. | |
8745 | (mi_cmd_exec_interrupt): | |
8746 | (mi_cmd_thread_select, mi_cmd_thread_list_ids) | |
8747 | (mi_cmd_thread_info): Call error instead of returning | |
8748 | MI_CMD_ERROR. | |
8749 | (mi_cmd_data_list_register_values): Call error instead of | |
8750 | returning MI_CMD_ERROR. Adapt to new get_register interface. | |
8751 | (get_register): Change return typo to void. Call error instead of | |
8752 | returning MI_CMD_ERROR. | |
8753 | (mi_cmd_data_write_register_values): Call error instead of | |
8754 | returning MI_CMD_ERROR. | |
8755 | (mi_cmd_list_features): Return MI_CMD_DONE. | |
8756 | (captured_mi_execute_command): Remove MI_CMD_ERROR handling. | |
8757 | (mi_execute_command): Always print exceptions with -error. | |
8758 | ||
aad4b048 JB |
8759 | 2008-04-04 Joel Brobecker <brobecker@adacore.com> |
8760 | ||
8761 | * NEWS: Mention new commands set/show multiple-symbols. | |
8762 | ||
717d2f5a JB |
8763 | 2008-04-03 Joel Brobecker <brobecker@adacore.com> |
8764 | ||
8765 | * symtab.c (multiple_symbols_ask, multiple_symbols_all) | |
8766 | (multiple_symbols_cancel): New constants. | |
8767 | (multiple_symbols_modes, multiple_symbols_mode): New static globals. | |
8768 | (multiple_symbols_select_mode): New function. | |
8769 | (_initialize_symtab): Add new set/show multiple-symbols commands. | |
8770 | * symtab.h (multiple_symbols_ask, multiple_symbols_all) | |
8771 | (multiple_symbols_cancel, multiple_symbols_select_mode): Declare. | |
8772 | * ada-lang.c (user_select_syms): Add handling of new multiple-symbols | |
8773 | setting. | |
8774 | * linespec.c (decode_line_2): Likewise. | |
8775 | ||
f73634e5 DE |
8776 | 2008-04-03 Doug Evans <dje@sebabeach.org> |
8777 | ||
8778 | * symtab.h (enum free_code): Delete free_contents, unused. | |
8779 | * symmisc.c (free_symtab_block): Delete. | |
8780 | (free_symtab, case free_code): Delete. | |
8781 | ||
1f906a60 | 8782 | 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com> |
6af87b03 AR |
8783 | |
8784 | * valops.c (value_cast_structs): New function. Cast related | |
680b56ce | 8785 | STRUCT types up/down and return cast value. The body of this |
6af87b03 AR |
8786 | function comes mostly from value_cast_pointers. |
8787 | (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved | |
8788 | to value_cast_structs. Now value_cast_pointers needs only create | |
8789 | appropriate reference after using value_cast_structs for actual | |
8790 | casting. | |
8791 | (value_cast): Handle references. | |
8792 | ||
61ad90e1 MK |
8793 | 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com> |
8794 | ||
8795 | * MAINTAINERS: Added myself to section Write After Approval. | |
8796 | ||
b7d038ae DJ |
8797 | 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
8798 | ||
8799 | * ia64-tdep.c (examine_prologue): Correct array access. | |
8800 | ||
1f906a60 | 8801 | 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com> |
c836824f AR |
8802 | |
8803 | * cp-support.c (first_component_command): Return if no arguments. | |
8804 | ||
df3ac606 CD |
8805 | 2008-03-28 Carlos O'Donell <carlos@codesourcery.com> |
8806 | ||
8807 | * ser-mingw.c (ser_windows_open): Open requested name. | |
8808 | ||
ca933485 AR |
8809 | 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com> |
8810 | ||
8811 | * MAINTAINERS: Added myself. | |
8812 | ||
5f667f2d PA |
8813 | 2008-03-28 Pedro Alves <pedro@codesourcery.com> |
8814 | ||
8815 | * target.c (find_default_run_target): Allow a NULL `do_mesg' | |
8816 | parameter. If it is NULL, don't call error. | |
8817 | (find_default_can_async_p, find_default_is_async_p): Pass NULL as | |
8818 | `do_mesg' parameter to find_default_run_target. If no target was | |
8819 | found, return 0. | |
8820 | ||
e741f4d4 DJ |
8821 | 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com> |
8822 | ||
8823 | * mips-linux-tdep.c: Update N32/N64 signal frame comments. | |
8824 | (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update. | |
8825 | (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR): | |
8826 | Delete. | |
8827 | (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr. | |
8828 | ||
f66d8205 | 8829 | 2008-03-27 Joel Brobecker <brobecker@adacore.com> |
8830 | ||
8831 | GDB 6.8 released. | |
8832 | ||
221c031f UW |
8833 | 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com> |
8834 | ||
8835 | * features/Makefile (%.dat): Set xmltarget to the base filename | |
8836 | of the XML source, without subdirectory. | |
8837 | * regformats/rs6000/powerpc-32.dat: Regenerate. | |
8838 | * regformats/rs6000/powerpc-64.dat: Regenerate. | |
8839 | * regformats/rs6000/powerpc-e500.dat: Regenerate. | |
8840 | ||
40c58d95 MD |
8841 | 2008-03-27 Markus Deuling <deuling@de.ibm.com> |
8842 | ||
8843 | * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by | |
8844 | objfile arch. | |
8845 | ||
bb1ec7d2 NR |
8846 | 2008-03-27 Nick Roberts <nickrob@snap.net.nz> |
8847 | ||
8848 | * mi/mi-main.c (enum captured_mi_execute_command_actions): | |
8849 | Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly. | |
8850 | ||
5e2b427d UW |
8851 | 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
8852 | ||
8853 | * objfiles.h (struct objfile): New GDBARCH member. | |
8854 | (get_objfile_arch): Add prototype. | |
8855 | * objfiles.c: Include "arch-utils.h". | |
8856 | (allocate_objfile): Look up gdbarch associated with bfd. | |
8857 | (get_objfile_arch): New function. | |
8858 | * Makefile (objfiles.o): Update dependencies. | |
8859 | ||
8860 | * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch | |
8861 | by objfile arch. | |
8862 | * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch | |
8863 | by frame arch. | |
8864 | (locexpr_describe_location): Replace current_gdbarch by | |
8865 | objfile arch. | |
8866 | * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch. | |
8867 | (dwarf2_add_field): Likewise. | |
8868 | (read_tag_pointer_type): Likewise. | |
8869 | (read_base_type): Likewise. | |
8870 | (new_symbol): Likewise. | |
8871 | ||
8872 | * coffread.c (decode_type): Add OBJFILE argument. Update callers. | |
8873 | (decode_base_type, decode_function_type): Likewise. | |
8874 | (coff_read_struct_type, coff_read_enum_type): Likewise. | |
8875 | (coff_symtab_read): Replace current_gdbarch by objfile arch. | |
8876 | (decode_base_type): Likewise. | |
8877 | (coff_read_enum_type): Likewise. | |
8878 | (coff_read_struct_type): Replace current_objfile by OBJFILE argument. | |
8879 | (coff_read_enum_type): Likewise. | |
8880 | ||
8881 | * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch. | |
8882 | (end_psymtab): Likewise. | |
8883 | (process_one_symbol): Likewise. | |
8884 | ||
8885 | * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch. | |
8886 | (parse_procedure): Likewise. | |
8887 | (parse_partial_symbols): Likewise. | |
8888 | ||
8889 | * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch. | |
8890 | ||
8891 | * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch. | |
8892 | Replace static pcc_promotion_type and pcc_unsigned_promotion_type by | |
8893 | built-in types. | |
8894 | (read_range_type): Replace current_gdbarch by objfile arch. Replace | |
8895 | static range_index_type by built-in type. | |
8896 | (read_one_struct_field): Replace current_gdbarch by objfile arch. | |
8897 | (read_enum_type): Likewise. | |
8898 | ||
8899 | * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by | |
8900 | objfile arch. | |
8901 | ||
5a413362 VP |
8902 | 2008-03-26 Vladimir Prus <vladimir@codesourcery.com> |
8903 | ||
8904 | * varobj.h (varobj_floating_p): Declare. | |
8905 | * varobj.c (varobj_floating_p): New. | |
8906 | * mi/mi-cmd-var.c (mi_cmd_var_update): When passed | |
8907 | '@' as the name, update all floating varobjs. | |
8908 | ||
a5defcdc VP |
8909 | 2008-03-26 Vladimir Prus <vladimir@codesourcery.com> |
8910 | ||
8911 | * varobj.c (struct varobj_root): Rename use_selected_frame to | |
8912 | floating, and clarify the meaning. | |
8913 | (varobj_create, varobj_update, new_root_variable): Adjust. | |
8914 | (value_of_root): Don't use type_changed as in variable, | |
8915 | adjust comment. | |
8916 | (c_value_of_root): Adjust. | |
5a413362 | 8917 | |
403fe197 PA |
8918 | 2008-03-25 Pedro Alves <pedro@codesourcery.com> |
8919 | ||
8920 | * linux-nat.c (linux_nat_attach): Add the pid we attached to, to | |
8921 | gdb's thread list. | |
8922 | (linux_nat_wait): Add main lwp to gdb's thread list. | |
8923 | * linux-thread-db.c (find_new_threads_callback): Also attach to | |
8924 | already listed threads which thread_db didn't know about yet. | |
8925 | ||
710151dd PA |
8926 | 2008-03-25 Pedro Alves <pedro@codesourcery.com> |
8927 | ||
8928 | * linux-nat.c (drain_queued_events): Fix comment typo. | |
8929 | (linux_nat_attach): In async mode, don't rely on storing a pending | |
8930 | status. Instead place the wait status on the pipe. | |
8931 | (linux_nat_resume): Remove unreacheable shortcut code in async | |
8932 | mode. | |
8933 | (stop_wait_callback): In async mode, don't store pending status. | |
8934 | Instead, cancel breakpoints or resend the signal appropriatelly. | |
8935 | (cancel_breakpoint): New, refactored from | |
8936 | cancel_breakpoints_callback. | |
8937 | (cancel_breakpoints_callback): Call cancel_breakpoint. | |
8938 | (pipe_to_local_event_queue): Remove special token processing. | |
8939 | (linux_nat_wait): Issue an internal error if a pending status is | |
8940 | found in async mode. | |
8941 | ||
807bddf3 DJ |
8942 | 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com> |
8943 | ||
8944 | * inflow.c (gdb_has_a_terminal): Guard access to our_process_group. | |
8945 | ||
c5b48eac VP |
8946 | 2008-03-24 Nick Roberts <nickrob@snap.net.nz> |
8947 | Vladimir Prus <vladimir@codesourcery.com> | |
8948 | ||
680b56ce AS |
8949 | * varobj.c (struct varobj_root): New component thread_id. |
8950 | (varobj_get_thread_id, check_scope): New functions. | |
8951 | (c_value_of_root): Use check_scope. Switch to the | |
c5b48eac VP |
8952 | proper thread if necessary. |
8953 | ||
680b56ce | 8954 | * varobj.h (varobj_get_thread_id): New extern. |
c5b48eac | 8955 | |
680b56ce | 8956 | * mi/mi-cmd-var.c (print_varobj): Add thread-id field. |
c5b48eac | 8957 | |
12f4afab DJ |
8958 | 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com> |
8959 | ||
8960 | PR gdb/544 | |
8961 | * top.c: Revert 2008-03-21 changes. | |
8962 | ||
6208b47d VP |
8963 | 2008-03-23 Vladimir Prus <vladimir@codesourcery.com> |
8964 | ||
8965 | * thread.c (make_cleanup_restore_current_thread): Make it | |
8966 | globally visible. | |
8967 | * gdbthread.h (make_cleanup_restore_current_thread): Declare. | |
8968 | * varobj.c (varobj_update): Don't save/restore frame. | |
8969 | (c_value_of_root): Save/restore thread and frame here, | |
8970 | using make_cleanup_restore_current_thread. | |
8971 | * Makefile.in: Update dependecies. | |
8972 | ||
44a67aa7 VP |
8973 | 2008-03-23 Vladimir Prus <vladimir@codesourcery.com> |
8974 | ||
680b56ce AS |
8975 | * varobj.c (struct varobj_root): Clarify |
8976 | comment on the frame field. | |
8977 | (varobj_create): Don't set frame if we have no | |
8978 | block. | |
44a67aa7 | 8979 | |
b562a0cb DJ |
8980 | 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com> |
8981 | ||
8982 | PR gdb/544 | |
8983 | Suggested by Jan Kratochvil: | |
8984 | * top.c (gdb_rl_operate_and_get_next_completion): Call | |
8985 | rl_redisplay_function. | |
8986 | (gdb_rl_redisplay): New. | |
8987 | (init_main): Set rl_redisplay_function. | |
8988 | ||
ed1bd5f5 JB |
8989 | 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change) |
8990 | ||
8991 | * aix-thread.c (pdc_read_regs): Fix compiler warning. | |
8992 | (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread) | |
8993 | (store_regs_kernel_thread): Likewise. | |
8994 | ||
b84876c2 PA |
8995 | 2008-03-21 Pedro Alves <pedro@codesourcery.com> |
8996 | ||
8997 | Linux native async support. | |
8998 | ||
8999 | * target.h (struct target_ops): Delete to_async_mask_value and add | |
9000 | to_async_mask. | |
9001 | (target_is_async_p, target_async): Formatting. | |
9002 | (target_async_mask_value): Delete. | |
9003 | (target_async_mask): Delete function declaration, and add new | |
9004 | target macro with the same name. | |
9005 | ||
9006 | * target.c (update_current_target): Replace to_async_mask_value by | |
9007 | to_async_mask. Default to_async_mask to return_one. | |
9008 | (target_async_mask): Delete. | |
9009 | (find_default_can_async_p, find_default_is_async_p): New. | |
9010 | (init_dummy_target): register find_default_can_async_p and | |
9011 | find_default_is_async_p on the dummy target. | |
9012 | ||
9013 | * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h. | |
9014 | (debug_linux_nat_async): New global. | |
9015 | (show_debug_linux_nat_async): New function. | |
9016 | (linux_nat_async_enabled, linux_nat_async_mask_value) | |
9017 | (linux_nat_event_pipe, linux_nat_num_queued_events) | |
9018 | (linux_nat_async_events_enabled): New globals. | |
9019 | (struct waitpid_result): New struct. | |
9020 | (waitpid_queue): New global. | |
9021 | (queued_waitpid, push_waitpid, drain_queued_events): New. | |
9022 | (my_waitpid): Call queued_waitpid. | |
9023 | (linux_child_follow_fork): Disable async events during the call. | |
9024 | (blocked_mask): Delete. | |
9025 | (sync_sigchld_action, async_sigchld_action): New globals. | |
9026 | (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In | |
9027 | async mode, block events during the call. | |
9028 | (linux_nat_create_inferior): New. | |
9029 | (linux_nat_attach): In sync mode, restore the mask states. In | |
9030 | async mode, wake the event loop immediatelly. | |
9031 | (detach_callback): Drain all queued events of the lwp we're | |
9032 | detaching from. | |
9033 | (linux_nat_detach): Block async mode, and drain events of the main | |
9034 | process. | |
9035 | (linux_nat_resume): If in async mode, mask async events during the | |
9036 | call. If short circuiting, force event loop to wake up. If | |
9037 | resuming, set target_executing, and register target events in the | |
9038 | event loop. | |
9039 | (pipe_to_local_event_queue, local_event_queue_to_pipe): New. | |
9040 | (linux_nat_wait): In async mode, block events during the call. | |
9041 | Only enable/disable passing SIGINT to the inferior in sync mode. | |
9042 | Get events from local waitpid queue. If no interesting events was | |
9043 | found, return to events loop. Reregister target events in the | |
9044 | event loop on exit. In sync mode, no need to reblock SIGCHLD. | |
9045 | (linux_nat_kill): Disable events on entry. | |
9046 | (linux_nat_mourn_inferior): In sync mode, don't restore the masks | |
9047 | here. Detach async mode from the event loop if there are no more | |
9048 | forks available, otherwise leave it on. | |
9049 | (sigchld_handler): Assure this is called only in sync mode. | |
9050 | (linux_async_permitted, linux_async_permitted_1): New globals. | |
9051 | (set_maintenance_linux_async_permitted) | |
9052 | (show_maintenance_linux_async_permitted): New functions. | |
9053 | (linux_nat_is_async_p, linux_nat_can_async_p) | |
9054 | (linux_nat_async_mask): New. | |
9055 | (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New. | |
9056 | (get_pending_events, async_sigchld_handler): New. | |
9057 | (linux_nat_async_events): New. | |
9058 | (async_terminal_is_ours): New global. | |
9059 | (linux_nat_terminal_inferior, linux_nat_terminal_ours): New. | |
9060 | (async_client_callback, async_client_context): New. | |
9061 | (linux_nat_async_file_handler, linux_nat_async) | |
9062 | (linux_nat_disable_async, linux_nat_enable_async): New. | |
9063 | (linux_nat_add_target): Register linux_nat_create_inferior, | |
9064 | linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async, | |
9065 | linux_nat_async_mask, linux_nat_terminal_inferior and | |
9066 | linux_nat_terminal_ours. | |
9067 | (_initialize_linux_nat): Remove local action variable, and update | |
9068 | code that used it to use sync_sigchld_action. Add new | |
9069 | "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug | |
9070 | set/show command in the maintenance class. Add new "linux-async" | |
9071 | maintenance set/show command. Block SIGCHLD by default. Setup | |
9072 | async_sichld_action, and sync_sigchld_action. Install the default | |
9073 | async mode. | |
9074 | (lin_thread_get_thread_signals): Use a local sigset_t for blocking | |
9075 | the cancel signals. | |
9076 | ||
9077 | * linux-thread-db.c (re_check_for_thread_db): New. | |
9078 | (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE. | |
9079 | (thread_db_can_async_p, thread_db_is_async_p, thread_db_async) | |
9080 | (thread_db_async_mask): New. | |
9081 | (init_thread_db_ops): Register thread_db_can_async_p, | |
9082 | thread_db_is_async_p, thread_db_async and thread_db_async_mask. | |
9083 | ||
9084 | * remote.c (remote_async_mask_value): New. | |
9085 | (remote_return_zero): New. | |
9086 | (init_remote_ops): Register remote_return_zero as callbacks of | |
9087 | to_can_async_p and to_is_async_p. | |
9088 | (remote_can_async_p, remote_is_async_p, remote_async): Update to | |
9089 | use remote_async_mask_value. | |
9090 | (remote_async_mask): New. | |
9091 | (init_remote_async_ops): Remove to_async_mask_value setting and | |
9092 | register remote_async_mask as to_async_mask callback in | |
9093 | remote_async_ops. | |
9094 | ||
9095 | * Makefile.in (linux-nat.o): Update. | |
9096 | ||
17faa917 DJ |
9097 | 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com> |
9098 | ||
9099 | * gdbthread.h (add_thread_with_info): New. | |
9100 | * linux-thread-db.c: Add some documentation. | |
9101 | (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete. | |
9102 | (struct private_thread_info): Remove th_valid and ti_valid. | |
9103 | Replace ti with tid. | |
9104 | (thread_get_info_callback): Do not add TID to the new ptid. Do | |
9105 | not cache th or ti. | |
9106 | (thread_db_map_id2thr, lwp_from_thread): Delete functions. | |
9107 | (thread_from_lwp): Assert that the LWP is set. Do not add TID to the | |
9108 | new PTID. | |
9109 | (attach_thread): Handle an already-existing thread. Use | |
9110 | add_thread_with_info. Cache the th and tid. | |
9111 | (detach_thread): Verify that private was set. Remove verbose | |
9112 | argument and printing. Update caller. | |
9113 | (thread_db_detach): Do not adjust inferior_ptid. | |
9114 | (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete. | |
9115 | (check_event, find_new_threads_callback): Do not add TID to the new PTID. | |
9116 | (thread_db_wait): Do not use lwp_from_thread. | |
9117 | (thread_db_pid_to_str): Use the cached TID. | |
9118 | (thread_db_extra_thread_info): Check that private is set. | |
9119 | (same_ptid_callback): Delete. | |
9120 | (thread_db_get_thread_local_address): Do not use it or check | |
9121 | is_thread. Check that private is set. Assume that the thread | |
9122 | handle is already cached. | |
9123 | (init_thread_db_ops): Remove to_resume and to_kill. | |
9124 | * thread.c (add_thread_with_info): New. | |
9125 | (add_thread): Use it. | |
9126 | * linux-nat.c (find_thread_from_lwp): Delete. | |
9127 | (exit_lwp): Do not use it. Check print_thread_events. Print before | |
9128 | deleting the thread. | |
9129 | (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to... | |
9130 | * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here. | |
9131 | * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and | |
9132 | printf_unfiltered for thread exits. | |
9133 | * procfs.c (procfs_wait): Likewise. | |
9134 | ||
6214f497 DJ |
9135 | 2008-03-21 Chris Demetriou <cgd@google.com> |
9136 | ||
9137 | * symtab.c (rbreak_command): Quote symbol name before passing | |
9138 | it to break_command. | |
9139 | ||
63092375 DJ |
9140 | 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com> |
9141 | ||
9142 | * eval.c (evaluate_subexp_for_address): Clarify error message. | |
9143 | Use value_must_coerce_to_target. | |
9144 | * infcall.c (value_arg_coerce): Call value_coerce_to_target. | |
9145 | * valops.c (value_assign): Call value_coerce_to_target when | |
9146 | assigning to anything but internalvars. Leave GDB-side arrays | |
9147 | as arrays when assigning to internalvars. | |
9148 | (value_must_coerce_to_target, value_coerce_to_target): New. | |
9149 | (value_coerce_array, value_addr): Call value_coerce_to_target. | |
9150 | (value_array): Create the array in GDB's memory instead of | |
9151 | the inferior's. | |
9152 | * value.h (value_must_coerce_to_target, value_coerce_to_target): | |
9153 | Declare. | |
9154 | ||
b21991b0 DJ |
9155 | 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com> |
9156 | ||
9157 | * top.c (quit_confirm): Warn that we will kill the program. | |
9158 | ||
49a834f9 PA |
9159 | 2008-03-19 Pedro Alves <pedro@codesourcery.com> |
9160 | ||
9161 | * inflow.c (terminal_ours_1): Guard access to | |
9162 | inferior_process_group with #ifdef PROCESS_GROUP_TYPE. | |
9163 | ||
ae0d2f24 UW |
9164 | 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com> |
9165 | Jim Blandy <jimb@codesourcery.com> | |
9166 | Daniel Jacobowitz <drow@false.org> | |
9167 | ||
9168 | * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member. | |
9169 | (dwarf2_read_address): Update prototype. | |
9170 | ||
9171 | * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter. | |
9172 | (signed_address_type): Likewise. | |
9173 | (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE. | |
9174 | (execute_stack_op): Update calls to unsigned_address_type, | |
9175 | signed_address_type and dwarf2_read_address. Fix implementation | |
9176 | of DW_OP_deref_size. | |
9177 | ||
9178 | * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype. | |
9179 | (dwarf2_per_cu_addr_size): Likewise. | |
9180 | (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU. | |
9181 | (struct dwarf2_loclist_baton): Likewise. | |
9182 | ||
9183 | * dwarf2loc.c (find_location_expression): Update calls to | |
9184 | dwarf2_read_address. Use dwarf2_per_cu_objfile and | |
9185 | dwarf2_per_cu_addr_size to retrieve PER_CU parameters. | |
9186 | (locexpr_describe_location): Likewise. | |
9187 | (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter. | |
9188 | Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu). | |
9189 | (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size | |
9190 | to dwarf2_per_cu_addr_size (per_cu). | |
9191 | (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call. | |
9192 | (loclist_read_variable): Likewise. | |
9193 | (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call. | |
9194 | ||
9195 | * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu | |
9196 | instead of baton->objfile. | |
9197 | (dwarf2_per_cu_obfile): New function. | |
9198 | (dwarf2_per_cu_addr_size): Likewise. | |
9199 | ||
9200 | * dwarf2-frame.c (struct comp_unit): Move higher. | |
9201 | (struct dwarf2_cie): Add UNIT and ADDR_SIZE members. | |
9202 | (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size. | |
9203 | (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P | |
9204 | parameter by using fde->eh_frame_p. Use read_encoded_value | |
9205 | to implement DW_CFA_set_loc. | |
9206 | (struct dwarf2_frame_cache): Add ADDR_SIZE member. | |
9207 | (dwarf2_frame_cache): Set cache->addr_size. Update calls to | |
9208 | execute_stack_op and execute_cfa_program. | |
9209 | (dwarf2_frame_prev_register): Update calls to execute_stack_op. | |
9210 | (size_of_encoded_value): Remove. | |
9211 | (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters. | |
9212 | Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel. | |
9213 | (add_cie): Set cie->unit backlink. | |
9214 | (decode_frame_entry_1): Set cie->addr_size. Update calls to | |
9215 | read_encoded_value. | |
9216 | (dwarf2_build_frame_info): Allocate UNIT on objfile obstack. | |
9217 | ||
1c8201d1 MD |
9218 | 2008-03-17 Markus Deuling <deuling@de.ibm.com> |
9219 | ||
9220 | * i386-tdep.c (i386_print_insn): Remove unnecessary call to | |
9221 | gdbarch_bfd_arch_info. | |
9222 | ||
46bba1ef JB |
9223 | 2008-03-17 Joel Brobecker <brobecker@adacore.com> |
9224 | ||
9225 | * aix-thread.c (pdc_read_regs): Minor reformatting. | |
9226 | ||
0bcd3e20 VP |
9227 | 2008-03-17 Vladimir Prus <vladimir@codesourcery.com> |
9228 | ||
9229 | * thread.c (print_thread_info): Don't insist | |
9230 | on having current thread if there are no | |
9231 | threads at all. | |
9232 | ||
9356cf8d PA |
9233 | 2008-03-17 Pedro Alves <pedro@codesourcery.com> |
9234 | ||
9235 | * infcmd.c (attach_command_post_wait) | |
9236 | (attach_command_continuation): New. | |
9237 | (attach_command): Support background async execution, and async | |
9238 | execution in synchronous mode. | |
9239 | ||
5c3ce3f7 DJ |
9240 | 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com> |
9241 | ||
9242 | * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR. | |
9243 | * symmisc.c (dump_symtab_1): Likewise. | |
9244 | * wrapper.c (gdb_value_struct_elt): Likewise. | |
9245 | ||
fa2c6a57 PA |
9246 | 2008-03-17 Pedro Alves <pedro@codesourcery.com> |
9247 | ||
9248 | * linux-nat.c (linux_nat_filter_event): Fix comment typo. | |
9249 | ||
02f3fc28 PA |
9250 | 2008-03-17 Pedro Alves <pedro@codesourcery.com> |
9251 | ||
9252 | * linux-nat.c (linux_nat_filter_event): New, refactored from | |
9253 | linux_nat_wait. | |
9254 | (linux_nat_wait): Call linux_nat_filter_event. | |
9255 | ||
2f77b315 UW |
9256 | 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com> |
9257 | ||
9258 | * top.c (execute_command): Fix uninitialized variable error. | |
9259 | ||
f01be29b NH |
9260 | 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com> |
9261 | ||
680b56ce AS |
9262 | * Makefile.in (amd64nbsd-nat.o): New dependency. |
9263 | * amd64nbsd-nat.c: Include "nbsd-nat.h". | |
9264 | (_initialize_amd64nbsd_nat): Update target vector to use | |
9265 | nbsd_pid_to_exec_file. | |
9266 | * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o. | |
f01be29b | 9267 | |
6cf32704 VP |
9268 | 2008-03-15 Vladimir Prus <vladimir@codesourcery.com> |
9269 | ||
9270 | Remove ignoring leading exec events code. | |
680b56ce AS |
9271 | * fork-child.c (startup_inferior): Do not set |
9272 | inferior_ignoring_leading_exec_events. | |
9273 | * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove. | |
9274 | (inf_child_target): Do not set to_reported_exec_events_per_exec_call. | |
9275 | * infrun.c (inferior_ignoring_leading_exec_events): Remove. | |
9276 | (handle_inferior_event): Remove code for ignoring leading exec | |
9277 | events. | |
9278 | * target.c (update_current_target): Do not inherit, or default, | |
9279 | to_reported_exec_events_per_exec_call. | |
9280 | (debug_to_reported_exec_events_per_exec_call): Remove. | |
9281 | (setup_target_debug): Do not set to_reported_exec_events_per_exec_call. | |
9282 | * target.h (target_reported_exec_events_per_exec_call): Remove. | |
9283 | (struct target): Remove the to_reported_exec_events_per_exec_call | |
9284 | field. | |
6cf32704 | 9285 | |
8e8901c5 VP |
9286 | 2008-03-15 Vladimir Prus <vladimir@codesourcery.com> |
9287 | ||
9288 | Implement -thread-info. | |
680b56ce | 9289 | * gdbthread.h (print_thread_info): Declare. |
8e8901c5 | 9290 | |
680b56ce AS |
9291 | * thread.c (print_thread_info): New, extracted |
9292 | from info_threads_command and adjusted to | |
9293 | work for CLI and MI. | |
9294 | (info_threads_command): Use print_thread_info. | |
8e8901c5 VP |
9295 | * Makefile.in: Update dependencies. |
9296 | ||
680b56ce AS |
9297 | * mi/mi-cmds.c (mi_cmds): Specify a handler |
9298 | for -thread-info. | |
9299 | * mi/mi-cmds.h (mi_cmd_thread_info): Declare. | |
9300 | * mi/mi-main.c (mi_cmd_thread_info): New. | |
9301 | (mi_cmd_list_features): Include 'thread-info'. | |
8e8901c5 | 9302 | |
7d1e6fb8 KB |
9303 | 2008-03-14 Kevin Buettner <kevinb@redhat.com> |
9304 | ||
9305 | * mips-tdep.c (mips32_scan_prologue): Use the ABI register size | |
9306 | to decide whether to match instruction patterns using "sw" and "sd". | |
9307 | ||
89113898 PA |
9308 | 2008-03-14 Pedro Alves <pedro@codesourcery.com> |
9309 | ||
9310 | * infcmd.c (jump_command): Postpone disabling stdin until after | |
9311 | the possible query. | |
9312 | ||
64a0ac84 PA |
9313 | 2008-03-14 Pedro Alves <pedro@codesourcery.com> |
9314 | ||
9315 | * inflow.c (gdb_getpgrp): New. | |
9316 | (gdb_has_a_terminal): Use get_getpgrp. | |
9317 | (terminal_ours_1): If attach_flag is set, don't refetch | |
9318 | inferior_process_group. | |
9319 | ||
1fddbabb PA |
9320 | 2008-03-14 Pedro Alves <pedro@codesourcery.com> |
9321 | ||
9322 | * features/library-list.dtd: Allow "section" elements as children | |
9323 | of "library". Add "section" element and describe its attributes. | |
9324 | ||
9325 | * solib-target.c (struct lm_info): Add section_bases member. | |
9326 | (library_list_start_segment): Error out if seen a section element. | |
9327 | (library_list_start_section): New. | |
9328 | (library_list_end_library): New. | |
9329 | (solib_target_free_library_list): Free section_bases. | |
9330 | (section_attributes): New. | |
9331 | (library_children): Make "segment" optional. Add "section" child. | |
9332 | (library_list_children): Register library_list_end_library. | |
9333 | (solib_target_relocate_section_addresses): Handle section bases. | |
9334 | ||
9335 | * NEWS: Mention new qXfer:libraries:read section offsets support. | |
9336 | ||
712af3be VP |
9337 | 2008-03-14 Vladimir Prus <vladimir@codesourcery.com> |
9338 | ||
9339 | * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups) | |
9340 | (make_exec_error_cleanup): Remove declarations. | |
9341 | * utils.c (exec_error_cleanup_chain): Remove. | |
9342 | (do_exec_error_cleanups, discard_exec_error_cleanups) | |
9343 | (make_exec_error_cleanup): Remove. | |
9344 | * event-loop.c (start_event_loop): Adjust call to | |
9345 | async_enable_stdin. | |
9346 | * event-top.c (async_enable_stdin): Remove the paramater dummy. | |
9347 | (async_disable_stdin): Don't register async_enable_stdin via | |
9348 | cleanup. | |
9349 | * inf-loop.c (inferior_event_handler): Don't | |
9350 | call do_exec_error_cleanups. Call async_enable_stdin instead. | |
9351 | * event-loop.c (start_event_loop): Adjust call to | |
9352 | async_enable_stdin. | |
9353 | * tui/tui-interp.c (tui_command_loop): Adjust call to | |
9354 | async_enable_stdin. | |
9355 | ||
32c1e744 VP |
9356 | 2008-03-14 Vladimir Prus <vladimir@codesourcery.com> |
9357 | ||
9358 | Async mode fixes. | |
680b56ce AS |
9359 | * Makefile.in (infcmd.o, inf-loop.o): Update dependencies. |
9360 | * breakpoint.c (bpstat_do_actions): In async mode, | |
9361 | don't jump to top expecting stop_bpstat to be already | |
9362 | updated. | |
9363 | * event-loop.c (start_event_loop): Call async_enable_stdin | |
9364 | on exception. | |
9365 | * event-top.c (async_enable_stdin): Do nothing if sync_execution | |
9366 | is not set. | |
9367 | (command_handler): Do not setup continuation here. | |
9368 | (command_line_handler_continuation): Move to... | |
9369 | * top.c (command_line_handler_continuation): ... here. | |
9370 | (execute_command): In async mode, register continuation. | |
9371 | Don't check frame's language in running in async mode. | |
9372 | * exceptions.c (throw_exception): Don't do exec_error_cleanups. | |
9373 | * inf-loop.c (complete_execution): Inline into... | |
9374 | (inferior_event_handler): ... here. Clear target_executing before | |
9375 | doing any cleanups. Don't try to show prompt if the target was | |
9376 | resumed. | |
9377 | * infcmd.c (signal_command): Add support for async mode. | |
9378 | (finish_command): Only add continuation if the target was | |
9379 | successfully resumed. | |
9380 | * remote.c (init_async_opts): Register to_get_thread_local_address | |
9381 | handler. | |
9382 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess | |
9383 | with sync_execution. | |
9384 | * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin | |
9385 | on exception. | |
32c1e744 | 9386 | |
c04ea773 DJ |
9387 | 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com> |
9388 | ||
9389 | * corefile.c (reopen_exec_file): Use exec_bfd_mtime. | |
9390 | * exec.c (exec_bfd_mtime): Define. | |
9391 | (exec_close): Clear it. | |
9392 | (exec_file_attach): Set it. | |
9393 | * gdbcore.h (exec_bfd_mtime): Declare. | |
9394 | * source.c (find_source_lines): Do not use bfd_get_mtime. | |
9395 | ||
952dc227 VP |
9396 | 2008-03-14 Vladimir Prus <vladimir@codesourcery.com> |
9397 | ||
9398 | * top.c (simplified_command_loop): Remove. | |
9399 | ||
4cf46804 VP |
9400 | 2008-03-14 Vladimir Prus <vladimir@codesourcery.com> |
9401 | ||
9402 | Remove unused remote.c hooks. | |
680b56ce AS |
9403 | * remote.c (deprecated_target_resume_hook) |
9404 | (deprecated_target_wait_loop_hook): Remove. | |
9405 | (remote_resume): Do not call deprecated_target_resume_hook. | |
9406 | (remote_wait): Do not call deprecated_target_wait_loop_hook. | |
9407 | (remote_async_wait): Likewise. | |
4cf46804 | 9408 | |
683f2885 VP |
9409 | 2008-03-14 Vladimir Prus <vladimir@codesourcery.com> |
9410 | ||
9411 | Implement MI notification for new threads. | |
680b56ce AS |
9412 | * doc/observer.texi (new_thread): Document. |
9413 | * observer.sh: Forward declare struct thread_info. | |
9414 | * thread.c (add_thread): Notify observer. | |
9415 | ||
9416 | * interps.h (interp_init_ftype): New parameter | |
9417 | top_level. | |
9418 | (interp_set): Likewise. | |
9419 | (top_level_interpreter_data): Declare. | |
9420 | * interps.c (interp_set): New parameter top_level. | |
9421 | Pass it to interpreter's init function. Remember | |
9422 | top level interpreter. | |
9423 | (interpreter_exec_cmd): Adjust. | |
9424 | (top_level_interpreter_data): New. | |
9425 | * main.c (captured_main): Pass 1 for top_level | |
9426 | parameter of interp_set. | |
683f2885 | 9427 | * cli/cli-interp.c (cli_interpreter_init): New |
680b56ce AS |
9428 | parameter top_level. |
9429 | * tui/tui-interp.c (tui_init): New parameter top_level. | |
683f2885 | 9430 | |
680b56ce AS |
9431 | * mi/mi-interp.c (mi_new_thread): New. |
9432 | (mi_interpreter_init): If top level, register | |
9433 | observer for new threads. | |
683f2885 | 9434 | |
680b56ce | 9435 | * Makefile.in (mi-interp.o, thread.o): Update dependencies. |
683f2885 | 9436 | |
ff9b3928 PA |
9437 | 2008-03-14 Pedro Alves <pedro@codesourcery.com> |
9438 | ||
9439 | * top.c (execute_command): Disable break and stop | |
9440 | commands in async mode. | |
9441 | ||
b18392ef PA |
9442 | 2008-03-14 Pedro Alves <pedro@codesourcery.com> |
9443 | ||
9444 | revert: | |
9445 | 2008-03-14 Pedro Alves <pedro@codesourcery.com> | |
9446 | * inf-loop.c (inferior_event_handler): Don't include remote.h. | |
9447 | Call target_stop in the INF_QUIT_REQ case. | |
9448 | * Makefile.in (inf-loop.o): Update. | |
9449 | ||
0aca9f07 PA |
9450 | 2008-03-14 Pedro Alves <pedro@codesourcery.com> |
9451 | ||
9452 | * inf-loop.c (inferior_event_handler): Don't include remote.h. | |
9453 | Call target_stop in the INF_QUIT_REQ case. | |
9454 | * Makefile.in (inf-loop.o): Update. | |
9455 | ||
0b4e556c PA |
9456 | 2008-03-14 Pedro Alves <pedro@codesourcery.com> |
9457 | ||
9458 | * top.c (execute_command): Enable break, info and interrupt | |
9459 | commands in async mode. | |
9460 | ||
8defab1a DJ |
9461 | 2008-03-13 Vladimir Prus <vladimir@codesourcery.com> |
9462 | Daniel Jacobowitz <dan@codesourcery.com> | |
9463 | ||
9464 | * breakpoint.h (breakpoint_restore_shadows): New | |
9465 | declaration. | |
9466 | * breakpoint.c (breakpoint_restore_shadows): New. | |
9467 | (read_memory_nobpt): Delete. | |
9468 | * gdbcore.h (read_memory_nobpt): Delete declaration. | |
9469 | * target.c (memory_xfer_partial): Call | |
9470 | breakpoint_restore_shadows. | |
9471 | (restore_show_memory_breakpoints) | |
2da16c8c | 9472 | (make_show_memory_breakpoints_cleanup): New. |
8defab1a | 9473 | (show_memory_breakpoints): New. |
2da16c8c | 9474 | * target.h (make_show_memory_breakpoints_cleanup): Declare. |
8defab1a DJ |
9475 | * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): |
9476 | Make sure we see memory breakpoints when checking if | |
9477 | breakpoint is still there. | |
9478 | * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c, | |
9479 | hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c, | |
9480 | m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c, | |
9481 | sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt. | |
9482 | ||
fd532e2e PA |
9483 | 2008-03-12 Pedro Alves <pedro@codesourcery.com> |
9484 | ||
9485 | * thread.c (add_thread): Use printf_unfiltered to print. | |
9486 | ||
f749779f | 9487 | 2008-03-12 Joel Brobecker <brobecker@gnat.com> |
965b60ee JB |
9488 | |
9489 | * sol-thread.c: Replace use of TM_I386SOL2_H by an expression | |
9490 | that is true only on x86-solaris and x86_64-solaris. | |
9491 | * procfs.c: Likewise. Move procfs_find_LDT_entry up together | |
9492 | with proc_get_LDT_entry. | |
9493 | ||
9494 | 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com> | |
83116857 TJB |
9495 | |
9496 | * configure.ac (AC_CHECK_FUNCS): Add check for setsid. | |
9497 | * config.in, configure: Regenerate. | |
9498 | * fork-child.c (fork_inferior): Call create_tty_session. | |
9499 | * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY. | |
9500 | (create_tty_session): New function. | |
9501 | * terminal.h: Declare create_tty_session. | |
9502 | ||
4fbb74a6 AM |
9503 | 2008-03-12 Alan Modra <amodra@bigpond.net.au> |
9504 | ||
9505 | PR 5900 | |
9506 | * elfread.c (elf_symtab_read): Make shndx an unsigned int. | |
9507 | * mipsread.c: Include elf/internal.h. | |
9508 | (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx | |
9509 | to internal range. | |
9510 | ||
20a6ec49 MD |
9511 | 2008-03-11 Markus Deuling <deuling@de.ibm.com> |
9512 | ||
9513 | * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch | |
9514 | to get at the current architecture and at the target specific vector. | |
9515 | Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and | |
9516 | remove define of I387_ST0_REGNUM. | |
9517 | ||
9518 | * amd64-tdep.c (I387_ST0_REGNUM): Remove define. | |
9519 | ||
9520 | (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to | |
9521 | get at the current architecture | |
9522 | (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as | |
9523 | parameter. | |
9524 | ||
9525 | * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM, | |
9526 | I387_NUM_XMM_REGS and I387_MM0_REGNUM. | |
9527 | ||
9528 | (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM, | |
9529 | I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM, | |
9530 | (I387_FSTAT_REGNUM): Add target specific vector as parameter. | |
9531 | ||
9532 | (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get | |
9533 | at the target specific vector. | |
9534 | ||
9535 | (i386_get_longjmp_target): Use get_frame_arch to get at the current | |
9536 | architecture. Use gdbarch_tdep to get at the target specific vector. | |
9537 | ||
9538 | (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and | |
9539 | update caller. Use gdbarch_tdep to get at the target specific vector. | |
9540 | ||
9541 | (i386_register_to_value: Use get_frame_arch to get at the current | |
9542 | architecture. | |
9543 | ||
9544 | * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as | |
9545 | parameter. | |
9546 | ||
9547 | * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM, | |
9548 | I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM | |
9549 | I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR, | |
9550 | FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter. | |
9551 | ||
9552 | (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and | |
9553 | undef's. | |
9554 | ||
9555 | (i387_convert_register_p, i387_register_to_value, | |
9556 | i387_value_to_register): Update call for i386_fp_regnum_p. | |
9557 | ||
9558 | * i387-tdep.h: Remove comment. | |
9559 | (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define. | |
9560 | (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM, | |
9561 | I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM, | |
9562 | I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM, | |
9563 | I387_MXCSR_REGNUM): Add target specific vector as parameter. | |
9564 | ||
ccd213ac DJ |
9565 | 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com> |
9566 | ||
9567 | * Makefile.in (fork-child.o): Update. | |
9568 | * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper | |
9569 | argument. Gather all gdbserver features together. | |
9570 | * fork-child.c (exec_wrapper): New variable. | |
9571 | (fork_inferior): Use it. | |
9572 | (startup_inferior): Skip an extra trap if using "set exec-wrapper". | |
9573 | (unset_exec_wrapper_command, _initialize_fork_child): New. | |
9574 | ||
9575 | 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp> | |
80618b99 MS |
9576 | |
9577 | * source.c (directory_command): Modify the determination of | |
9578 | condition of terminal "from_tty". | |
9579 | ||
22566fbd DJ |
9580 | 2008-03-10 Matt Rice <ratmice@gmail.com> |
9581 | ||
9582 | * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC. | |
9583 | ||
9971ac47 UW |
9584 | 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp> |
9585 | ||
9586 | * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end | |
9587 | of the data passing to strtoulst function. | |
9588 | (info_spu_signal_command): Likewise. | |
9589 | ||
835670cf VP |
9590 | 2008-03-08 Vladimir Prus <vladimir@codesourcery.com> |
9591 | ||
9592 | * mi/mi-interp.c (mi_command_loop): Remove | |
9593 | commented-out code. | |
680b56ce | 9594 | |
be86555c JB |
9595 | 2008-03-07 Joel Brobecker <brobecker@adacore.com> |
9596 | ||
9597 | * remote.c (extended_remote_attach_1): Make local variable pid an int | |
9598 | instead of a pid_t. | |
9599 | ||
4d7b2d5b JB |
9600 | 2008-03-07 Joel Brobecker <brobecker@adacore.com> |
9601 | ||
9602 | * solib-svr4.c (svr4_same_1): New function, originally extracted | |
9603 | from svr4_same and expanded to handle the sparc64 case. | |
9604 | (svr4_same): Move up and reimplement using svr4_same_1. | |
9605 | (enable_break): Use svr4_same_1 to do shared library name comparisons. | |
9606 | ||
61fed90e RR |
9607 | 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com> |
9608 | ||
9609 | * MAINTAINERS: Move self to Paper trail. | |
9610 | ||
b803fb0f DJ |
9611 | 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com> |
9612 | ||
9613 | * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update. | |
9614 | * event-loop.c (call_async_signal_handler): New. | |
9615 | * event-loop.h (call_async_signal_handler) | |
9616 | (gdb_call_async_signal_handler): Declare. | |
9617 | (mark_async_signal_handler): Add comments. | |
9618 | * event-top.c (handle_sigint): Use gdb_call_async_signal_handler. | |
9619 | * mingw-hdep.c (sigint_event, sigint_handler): New. | |
9620 | (gdb_select): Use them. Wait for the readline signal handler | |
9621 | to finish. | |
9622 | (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions. | |
9623 | * posix-hdep.c (gdb_call_async_signal_handler): New function. | |
9624 | * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt): | |
9625 | New. | |
9626 | (remote_fileio_ctrl_c_signal_handler): Use | |
9627 | gdb_call_async_signal_handler. | |
9628 | (initialize_remote_fileio): Initialize sigint_fileio_token. | |
9629 | * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do | |
9630 | not initialize tokens here. | |
9631 | (handle_remote_sigint_twice): Likewise. Reinstall | |
9632 | handle_remote_sigint. | |
9633 | (async_remote_interrupt_twice): Just call interrupt_query. | |
9634 | (cleanup_sigint_signal_handler): Do not delete tokens. | |
9635 | (remote_interrupt, remote_interrupt_twice): Use | |
9636 | gdb_call_async_signal_handler. | |
9637 | (interrupt_query): Reinstall the default signal handler. | |
9638 | (_initialize_remote): Initialize tokens here. | |
9639 | ||
8f4d54ed JB |
9640 | 2008-03-04 Joel Brobecker <brobecker@adacore.com> |
9641 | ||
9642 | * features/rs6000/power-core.xml, features/rs6000/power64-core.xml, | |
9643 | features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml: | |
9644 | Change the type of the lr register to code_ptr. | |
9645 | * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c, | |
9646 | features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c, | |
9647 | features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c, | |
9648 | features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c, | |
9649 | features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c, | |
9650 | features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c, | |
9651 | features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate. | |
9652 | ||
95ece428 JW |
9653 | 2008-03-03 James E. Wilson <wilson@tuliptree.org> |
9654 | ||
9655 | * MAINTAINERS: Update my email address. | |
9656 | ||
686a5eed KS |
9657 | 2008-03-03 Keith Seitz <keiths@redhat.com> |
9658 | ||
9659 | From Dave Murphy <davem@devkitpro.org>: | |
9660 | * configure.ac: Set tcl configdir to win under mingw. | |
9661 | * configure: Regenerate. | |
9662 | ||
fa4727a6 DJ |
9663 | 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
9664 | ||
9665 | * breakpoint.c (fetch_watchpoint_value): New function. | |
9666 | (update_watchpoint): Set and clear val_valid. Use | |
9667 | fetch_watchpoint_value. Handle unreadable values on the | |
9668 | value chain. Correct check for user-requested array watchpoints. | |
9669 | (breakpoint_init_inferior): Clear val_valid. | |
9670 | (watchpoint_value_print): New function. | |
9671 | (print_it_typical): Use it. Do not free or clear old_val. Print | |
9672 | watchpoints even if old_val == NULL. | |
9673 | (watchpoint_check): Use fetch_watchpoint_value. Check for values | |
9674 | becoming readable or unreadable. | |
9675 | (watch_command_1): Use fetch_watchpoint_value. Set val_valid. | |
9676 | (do_enable_watchpoint): Likewise. | |
9677 | * breakpoint.h (struct breakpoint): Update comment for val. Add | |
9678 | val_valid. | |
9679 | * NEWS: Mention watchpoints on inaccessible memory. | |
9680 | ||
9b7d9019 | 9681 | 2008-02-29 Daniel Jacobowitz <dan@codesourcery.com> |
c03374d5 DJ |
9682 | |
9683 | * Makefile.in (i386-nat.o): Update. | |
9684 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call | |
9685 | i386_use_watchpoints. | |
9686 | * i386-linux-nat.c (_initialize_i386_linux_nat): Call | |
9687 | i386_use_watchpoints. | |
9688 | * i386-nat.c (i386_stopped_data_address): Take two arguments. | |
9689 | (i386_stopped_by_watchpoint): Update call. | |
9690 | (i386_can_use_hw_breakpoint, i386_use_watchpoints): New. | |
9691 | * config/i386/nm-i386.h: Conditionalize definitions on | |
9692 | ! I386_WATCHPOINTS_IN_TARGET_VECTOR. | |
9693 | (i386_use_watchpoints): Declare. | |
9694 | (i386_stopped_data_address): Update. | |
9695 | * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define. | |
9696 | * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define. | |
9697 | ||
c24d7425 | 9698 | 2008-02-29 Joel Brobecker <brobecker@adacore.com> |
9699 | ||
9700 | GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC) | |
9701 | * version.in: Bump version to 6.8.50.20080229-cvs. | |
9702 | ||
a7dfd010 MD |
9703 | 2008-02-28 Markus Deuling <deuling@de.ibm.com> |
9704 | ||
9705 | * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING | |
9706 | properly. | |
9707 | ||
258c00cc TT |
9708 | 2008-02-28 Tom Tromey <tromey@redhat.com> |
9709 | ||
9710 | * infcmd.c (notice_args_read): Print result of get_inferior_args. | |
9711 | ||
8edfe269 DJ |
9712 | 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com> |
9713 | ||
9714 | * infcmd.c (kill_if_already_running): Make static. Use | |
9715 | target_require_runnable. | |
9716 | * target.c (target_require_runnable): New. | |
9717 | * target.h (target_require_runnable): Declare. | |
9718 | ||
0d6ba1b1 DJ |
9719 | 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com> |
9720 | ||
9721 | * frame.c (reinit_frame_cache): Only annotate if frames were | |
9722 | previously valid. | |
9723 | ||
6fe305f7 UW |
9724 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
9725 | ||
9726 | * regformats/reg-ppc.dat: Rename "ps" to "msr". | |
9727 | * regformats/reg-ppc64.dat: Likewise. | |
9728 | ||
9b4b61c8 UW |
9729 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
9730 | ||
9731 | * features/Makefile (%.dat): Emit xmltarget statement. | |
9732 | ||
9733 | * regformats/regdat.sh: Support xmltarget and xmlarch statments. | |
9734 | Generate code to set gdbserver_xmltarget in init_registers_${name}. | |
9735 | ||
9736 | * regformats/arm-with-iwmmxt.dat: Regenerate. | |
9737 | * regformats/mips64-linux.dat: Regenerate. | |
9738 | * regformats/mips-linux.dat: Regenerate. | |
9739 | * regformats/rs6000/powerpc-32.dat: Regenerate. | |
9740 | * regformats/rs6000/powerpc-64.dat: Regenerate. | |
9741 | * regformats/rs6000/powerpc-e500.dat: Regenerate. | |
9742 | ||
9743 | * regformats/reg-arm.dat: Add xmlarch statement. | |
9744 | * regformats/reg-i386.dat: Likewise. | |
9745 | * regformats/reg-i386-linux.dat: Likewise. | |
9746 | * regformats/reg-x86-64-linux.dat: Likewise. | |
9747 | * regformats/reg-spu.dat: Likewise. | |
9748 | ||
20b4711e DJ |
9749 | 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
9750 | ||
9751 | * remote.c (remote_wait, remote_async_wait): Stop if we receive | |
9752 | an error. | |
9753 | ||
1843f87b DJ |
9754 | 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
9755 | ||
9756 | * utils.c (debug_timestamp): New. | |
9757 | (vfprintf_unfiltered): Print timestamps if requested. | |
9758 | (show_debug_timestamp): New. | |
9759 | (initialize_utils): Register "set debug timestamp". | |
9760 | * NEWS: Mention "set debug timestamp". Add GDB 6.8 section. | |
9761 | ||
6a048695 JB |
9762 | 2008-02-27 Joel Brobecker <brobecker@adacore.com> |
9763 | ||
9764 | * breakpoint.c (skip_prologue_sal): New function. | |
9765 | (resolve_sal_pc): Adjust SAL past prologue if the SAL was | |
9766 | computed from a line number. | |
9767 | ||
0b998f49 JB |
9768 | 2008-02-27 Joel Brobecker <brobecker@adacore.com> |
9769 | ||
9770 | * features/rs6000/power-core.xml, features/rs6000/power64-core.xml | |
9771 | features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml: | |
9772 | Set PC register type to "code_ptr". | |
9773 | * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c, | |
9774 | features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c, | |
9775 | features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c, | |
9776 | features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c, | |
9777 | features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c, | |
9778 | features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c, | |
9779 | features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: | |
9780 | Regenerate. | |
9781 | ||
d05b4ac3 UW |
9782 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
9783 | ||
9784 | * regformats/regdat.sh: Rename init_registers function in | |
9785 | generated file to init_registers_${name}. | |
9786 | ||
9787 | * regformats/reg-crisv32.dat: Set "name" to crisv32. | |
9788 | * regformats/reg-ppc64.dat: Set "name" to ppc64. | |
9789 | * regformats/reg-s390x.dat: Set "name" to s390x. | |
9790 | ||
a5d9d57d DJ |
9791 | 2008-02-26 Greg Law <glaw@undo-software.com> |
9792 | ||
9793 | * regcache.c (registers_changed): Call reinit_frame_cache. | |
9794 | ||
e25c958c DJ |
9795 | 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
9796 | ||
9797 | * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o. | |
9798 | * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver | |
9799 | and svr4_fetch_objfile_link_map. | |
9800 | * Makefile.in (sh-linux-tdep.o): Update. | |
9801 | ||
5daa78cc TJB |
9802 | 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com> |
9803 | ||
9804 | * amd64-tdep.c (amd64_classify): Add support for decimal float | |
9805 | types. | |
9806 | * i386-tdep.c (i386_return_value): Make 128-bit decimal float | |
9807 | use the struct return convention. | |
9808 | ||
54e52265 VP |
9809 | 2008-02-26 Nick Roberts <nickrob@snap.net.nz> |
9810 | ||
9811 | * breakpoint.c (print_one_breakpoint_location): Revert Enb field | |
9812 | to old format. Discard breakpoint address if shared library is | |
9813 | unloaded. | |
9814 | (breakpoint_1): Adjust formatting of table header accordingly. | |
9815 | ||
d8f2712d VP |
9816 | 2008-02-25 Vladimir Prus <vladimir@codesourcery.com> |
9817 | ||
9818 | * remote.c (remote_get_threadlist): If the response | |
9819 | is empty, don't try to parse it. | |
9820 | ||
05ce04a4 VP |
9821 | 2008-02-23 Vladimir Prus <vladimir@codesourcery.com> |
9822 | ||
9823 | Unbreak 'target async'. | |
680b56ce AS |
9824 | * serial.c (serial_async): Set the |
9825 | handler function before enabling async | |
9826 | mode. | |
05ce04a4 | 9827 | |
b36ec657 DJ |
9828 | 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com> |
9829 | ||
9830 | * solib-svr4.c (enable_break): Convert r_brk to a code address. | |
9831 | ||
df7df359 PA |
9832 | 2008-02-21 Pedro Alves <pedro@codesourcery.com> |
9833 | ||
9834 | * remote.c (extended_remote_attach_1): Set attach_flag. | |
9835 | (extended_remote_create_inferior_1): Clear attach_flag. | |
9836 | ||
7cd25cfc DJ |
9837 | 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com> |
9838 | ||
9839 | * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set | |
9840 | r_brk_offset. | |
9841 | (mipsnbsd_lp64_fetch_link_map_offsets): Likewise. | |
9842 | * solib-svr4.c (solib_svr4_r_brk): New. | |
9843 | (open_symbol_file_object, svr4_current_sos): Always check the | |
9844 | debug base. | |
9845 | (svr4_fetch_objfile_link_map): Do not set debug_base. | |
9846 | (enable_break): Use r_brk if it is set. | |
9847 | (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset. | |
9848 | (svr4_lp64_fetch_link_map_offsets): Likewise. | |
9849 | * solib-svr4.h (struct link_map_offsets): Add r_brk_offset. | |
9850 | ||
07ea644b MD |
9851 | 2008-02-20 Markus Deuling <deuling@de.ibm.com> |
9852 | Mark Kettenis <kettenis@gnu.org> | |
9853 | ||
9854 | * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by | |
9855 | trad_frame_saved_reg. | |
680b56ce | 9856 | (trad-frame.h): New include. |
07ea644b MD |
9857 | |
9858 | (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs | |
680b56ce | 9859 | instead of frame_obstack_zalloc. |
07ea644b MD |
9860 | (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register. |
9861 | ||
680b56ce | 9862 | * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h. |
07ea644b | 9863 | |
40887e1a MD |
9864 | 2008-02-20 Markus Deuling <deuling@de.ibm.com> |
9865 | ||
9866 | * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess | |
9867 | from disassemble_info instead of gdbarch_byte_order. | |
9868 | ||
9869 | * mips-tdep.c (gdb_print_insn_mips): Likewise. | |
9870 | * arm-tdep.c (gdb_print_insn_arm): Likewise. | |
9871 | ||
ae4b2284 MD |
9872 | 2008-02-20 Markus Deuling <deuling@de.ibm.com> |
9873 | ||
9874 | * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add | |
9875 | gdbarch as parameter. | |
9876 | ||
9877 | * gdbarch.{c,h}: Regenerate. | |
9878 | ||
9879 | * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as | |
9880 | parameter. | |
9881 | * mem-break.c (default_memory_insert_breakpoint) | |
9882 | (default_memory_remove_breakpoint): Likewise. | |
9883 | * target.h (default_memory_remove_breakpoint) | |
9884 | (default_memory_insert_breakpoint): Likewise. | |
9885 | ||
9886 | * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as | |
9887 | parameter. Replace current_gdbarch by gdbarch. | |
9888 | * m32r-tdep.c (m32r_memory_insert_breakpoint) | |
9889 | (m32r_memory_remove_breakpoint): Likewise. | |
9890 | ||
d9bf65d5 DJ |
9891 | 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com> |
9892 | ||
9893 | * MAINTAINERS: Add Vladimir Prus as MI maintainer. | |
9894 | ||
b93b6ca7 JB |
9895 | 2008-02-19 Joel Brobecker <brobecker@adacore.com> |
9896 | ||
9897 | * NEWS: Add entry describing Add support improvements. | |
9898 | ||
4ed226fe MD |
9899 | 2008-02-18 Markus Deuling <deuling@de.ibm.com> |
9900 | ||
9901 | * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by | |
9902 | M68K_FP0_REGNUM. | |
9903 | ||
caaa79ad MD |
9904 | 2008-02-18 Markus Deuling <deuling@de.ibm.com> |
9905 | ||
9906 | * sentinel-frame.c (sentinel_frame_prev_register): Do not call | |
9907 | register_offset_hack anymore. | |
9908 | ||
9909 | * regcache.{c,h} (register_offset_hack): Remove. | |
9910 | ||
e38c262f MD |
9911 | 2008-02-18 Markus Deuling <deuling@de.ibm.com> |
9912 | ||
9913 | * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter. | |
9914 | ||
9915 | * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace | |
9916 | current_gdbarch by gdbarch. | |
9917 | (hppa64_hpux_find_global_pointer): Likewise. | |
9918 | * hppa-tdep.c (hppa_find_global_pointer): Likewise. | |
9919 | (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for | |
9920 | find_global_pointer. | |
9921 | ||
9922 | * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as | |
9923 | parameter. | |
9924 | * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise. | |
9925 | ||
9926 | * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead | |
9927 | of gdbarch_num_regs. | |
9928 | ||
9929 | * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and | |
680b56ce | 9930 | replace current_gdbarch by gdbarch. |
e38c262f MD |
9931 | (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr. |
9932 | ||
206988c4 MD |
9933 | 2008-02-18 Markus Deuling <deuling@de.ibm.com> |
9934 | ||
9935 | * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter | |
9936 | and replace current_gdbarch by gdbarch. | |
9937 | ||
9938 | (store_register): Update call for exec_one_dummy_insn. | |
9939 | (fetch_register, store_register): Update call of regmap. | |
9940 | ||
9941 | * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as | |
9942 | parameter and replace current_gdbarch by gdbarch. | |
680b56ce | 9943 | |
206988c4 MD |
9944 | (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at |
9945 | the current architecture. Update call for getregs_supplies and | |
9946 | getfpregs_supplies. | |
9947 | (ppcnbsd_fetch_inferior_registers): Likewise. | |
9948 | ||
680b56ce | 9949 | * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and |
206988c4 MD |
9950 | replace current_gdbarch by gdbarch. |
9951 | (ppcobsd_fetch_registers, ppcobsd_store_registers): Use | |
9952 | get_regcache_arch to get at the current architecture. Update call for | |
9953 | getfpregs_supplies. | |
9954 | ||
f642be6b MD |
9955 | 2008-02-18 Markus Deuling <deuling@de.ibm.com> |
9956 | ||
9957 | * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch | |
680b56ce | 9958 | variables. |
f642be6b | 9959 | |
b1f2bf01 MD |
9960 | 2008-02-15 Markus Deuling <deuling@de.ibm.com> |
9961 | ||
9962 | * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error. | |
9963 | ||
ee163bf5 VP |
9964 | 2008-02-14 Vladimir Prus <vladimir@codesourcery.com> |
9965 | ||
9966 | * NEWS: Mention pending breakpints in MI. | |
680b56ce | 9967 | |
f6fbcbf9 MD |
9968 | 2008-02-14 Markus Deuling <deuling@de.ibm.com> |
9969 | ||
9970 | * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o. | |
9971 | ||
36af4ef6 MD |
9972 | 2008-02-13 Markus Deuling <deuling@de.ibm.com> |
9973 | ||
9974 | Add script to build and test GDB using enable-targets=all. | |
9975 | ||
9976 | * gdb_buildall.sh: New file. | |
9977 | ||
94a0e877 MG |
9978 | 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com> |
9979 | ||
9980 | * NEWS (New native configurations): Xtensa GNU/Linux. | |
9981 | (New targets): Xtensa GNU/Linux. | |
9982 | * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and | |
9983 | xtensa-linux-tdep.o | |
9984 | (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c | |
9985 | (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies. | |
9986 | * configure.tgt (xtensa*-*-linux*): New entry. | |
9987 | * xtensa-config.c (xtensa_tdep): New variable. | |
9988 | (xtensa_config_byte_order, xtensa_config_tdep): Removed. | |
9989 | (rmap): Change format based on new macro XTREG. | |
9990 | (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h. | |
9991 | * xtensa-linux-nat.c: New. | |
9992 | * xtensa-linux-tdep.c: New. | |
9993 | * xtensa-xtregs.c: New. | |
9994 | * xtensa-tdep.h (xtensa_elf_gregset_t): Update. | |
9995 | (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE) | |
9996 | (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros. | |
9997 | (xtensa_register_t): New field coprocessor. | |
9998 | (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected. | |
9999 | * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed. | |
10000 | (xtensa_pseudo_register_read, xtensa_pseudo_register_write): | |
10001 | Update to handle privileged registers. | |
10002 | (xtensa_supply_gregset) Remove exccause and excvaddr registers. | |
10003 | (xtensa_push_dummy_call): Set windowstart register correctly. | |
10004 | (call0_analyze_prologue): Initialize xtensa_default_isa. | |
10005 | (xtensa_derive_tdep): New. | |
10006 | (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and | |
10007 | xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead. | |
10008 | Call xtensa_derive_tdep(). | |
10009 | * config/xtensa/linux.mh: New. | |
10010 | * regformats/reg-xtensa.dat: New. | |
10011 | ||
b7ee1b0a | 10012 | 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change) |
f90c07ac EZ |
10013 | |
10014 | * corelow.c (core_open): Use IS_ABSOLUTE_PATH. | |
10015 | (filenames.h): New include. | |
10016 | * Makefile.in (corelow.o): Add dependency for filenames.h. | |
10017 | ||
8da2a1df DJ |
10018 | 2008-02-08 Doug Evans <dje@google.com> |
10019 | ||
10020 | * source.c (find_and_open_source): Always rewrite absolute filenames. | |
10021 | ||
776592bf DE |
10022 | 2008-02-07 Doug Evans <dje@google.com> |
10023 | ||
10024 | * breakpoint.c: #include "hashtab.h". | |
10025 | (ambiguous_names_p): New fn. | |
10026 | (update_breakpoint_locations): When restoring bp enable status, don't | |
10027 | compare function names if any functions have same name. | |
10028 | * Makefile.in (breakpoint.o): Add hashtab.h dependency. | |
10029 | ||
d6565258 JB |
10030 | 2008-02-07 Joel Brobecker <brobecker@adacore.com> |
10031 | ||
10032 | * ada-lang.c (symbol_completion_add): Make SV parameter a VEC** | |
10033 | instead of just a VEC*. Update use of SV. | |
10034 | (ada_make_symbol_completion_list): Update symbol_completion_add calls. | |
10035 | ||
6d53d0af JB |
10036 | 2007-02-07 Joel Brobecker <brobecker@adacore.com> |
10037 | ||
10038 | * NEWS: Put all new commands since gdb-6.7 together. | |
10039 | ||
2ba95b9b JB |
10040 | 2007-02-07 Joel Brobecker <brobecker@adacore.com> |
10041 | ||
10042 | * ada-lang.c: #include "vec.h". | |
10043 | (struct string_vector, new_string_vector, string_vector_append): | |
10044 | Delete. | |
10045 | (char_ptr): New typedef. | |
10046 | (DEF_VEC_P (char_ptr)): New VEC type. | |
10047 | (symbol_completion_add): Update profile to take the new VEC type | |
10048 | instead of the old string_vector structure. Update code accordingly. | |
10049 | (ada_make_symbol_completion_list): Use the new VEC type instead of | |
10050 | the old string_vector structure, and update the code accordingly. | |
10051 | * Makefile.in (ada-lang.o): Add dependency on vec.h. | |
10052 | ||
4ae0885a PM |
10053 | 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr> |
10054 | ||
10055 | * p-exp.y: Set current_type in missing places. | |
10056 | (leftdiv_is_integer): New static variable. | |
10057 | Typecast right operand of BINOP_DIV to long_double if both operands | |
10058 | are integers. | |
10059 | ||
06b1d59c MR |
10060 | 2008-02-06 Maciej W. Rozycki <macro@mips.com> |
10061 | ||
10062 | * remote-mips.c (set_breakpoint): Rename to... | |
10063 | (mips_set_breakpoint): ... this. | |
10064 | (clear_breakpoint): Rename to... | |
10065 | (mips_clear_breakpoint): ... this. | |
10066 | (common_breakpoint): Rename to... | |
10067 | (mips_common_breakpoint): ... this. | |
10068 | (check_lsi_error): Rename to... | |
10069 | (mips_check_lsi_error): ... this. | |
10070 | ||
41d27058 JB |
10071 | 2007-02-05 Joel Brobecker <brobecker@adacore.com> |
10072 | ||
10073 | * language.h (struct language_defn): Add new field | |
10074 | la_make_symbol_completion_list. | |
10075 | * symtab.c (default_make_symbol_completion_list): Renames | |
10076 | make_symbol_completion_list. | |
10077 | (make_symbol_completion_list): New function. | |
10078 | * symtab.h (default_make_symbol_completion_list): Add declaration. | |
10079 | * langauge.c (unknown_language): Set la_make_symbol_completion_list. | |
10080 | (auto_language, local_language): Likewise. | |
10081 | * objc-lang.c (objc_language_defn): Likewise. | |
10082 | * scm-lang.c (scm_language_defn): Likewise. | |
10083 | * m2-lang.c (m2_language_defn): Likewise. | |
10084 | * f-lang.c (f_language_defn): Likewise. | |
10085 | * jv-lang.c (java_language_defn): Likewise. | |
10086 | * p-lang.c (pascal_language_defn): Likewise. | |
10087 | * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn) | |
10088 | (minimal_language_defn): Likewise. | |
10089 | * ada-lang.c (struct string_vector): New structure. | |
10090 | (new_string_vector, string_vector_append, ada_unqualified_name) | |
10091 | (add_angle_brackets, symbol_completion_match, symbol_completion_add) | |
10092 | (ada_make_symbol_completion_list): New functions. | |
10093 | (ada_language_defn): Set la_make_symbol_completion_list. | |
10094 | * ada-lang.h (ada_make_symbol_completion_list): Remove declaration, | |
10095 | this function is static. | |
10096 | ||
ee3a2f01 KB |
10097 | 2008-02-05 Kevin Buettner <kevinb@redhat.com> |
10098 | ||
10099 | * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer | |
10100 | to account for call site optimizations. | |
10101 | ||
d844e34b JB |
10102 | 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com> |
10103 | ||
10104 | * tracepoint.c (read_actions): Handle end-of-text indicator | |
10105 | in action list properly. (Committed by Jim Blandy) | |
10106 | ||
02e4669d JB |
10107 | 2008-02-05 Jim Blandy <jimb@red-bean.com> |
10108 | ||
10109 | * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a | |
10110 | pseudoregister, not an internal error. | |
85ecb32b | 10111 | Reported by: Andrzej Zaborowski |
02e4669d | 10112 | |
c39c8256 VP |
10113 | 2008-02-04 Vladimir Prus <vladimir@codesourcery.com> |
10114 | ||
10115 | * varobj.c (c_value_of_variable): Use xstrdup. | |
10116 | ||
ae7d22a6 VP |
10117 | 2008-02-04 Vladimir Prus <vladimir@codesourcery.com> |
10118 | ||
10119 | Update stored rendition of varobj value when format changes. | |
10120 | * varobj.c (varobj_set_display_format): Recomputed | |
680b56ce AS |
10121 | print_value. |
10122 | (c_value_of_variable): Return print_value. | |
ae7d22a6 | 10123 | |
81fe8080 DE |
10124 | 2008-02-03 Doug Evans <dje@google.com> |
10125 | ||
301f0ecf DE |
10126 | * eval.c (evaluate_subexp_standard): Fix type of result of mixed |
10127 | integer/float division operations when EVAL_AVOID_SIDE_EFFECTS. | |
10128 | * valops.c (value_one): New function. | |
10129 | * value.h (value_one): Declare. | |
10130 | ||
10131 | Fix argument promotion for binary arithmetic ops for C. | |
10132 | * valarith.c (unop_result_type): New fn. | |
10133 | (binop_result_type): New fn. | |
10134 | (value_binop): Move result type computation to binop_result_type. | |
10135 | (value_pos, value_neg, value_complement): Move result type | |
10136 | computation to unop_result_type. | |
10137 | ||
81fe8080 DE |
10138 | PR 2384 |
10139 | * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno. | |
10140 | Return basetype, fieldno if found. All callers updated. | |
10141 | Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different | |
10142 | objfile. | |
10143 | * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno. | |
10144 | * symfile.h (fill_in_vptr_fieldno): Delete. | |
10145 | ||
41808ebe DE |
10146 | 2008-02-02 Doug Evans <dje@google.com> |
10147 | ||
f8597ac3 DE |
10148 | * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero. |
10149 | ||
41808ebe DE |
10150 | * typeprint.c (*): Whitespace cleanup. |
10151 | ||
f964a756 MK |
10152 | 2008-02-02 Mark Kettenis <kettenis@gnu.org> |
10153 | Luis Machado <luisgpm@br.ibm.com> | |
680b56ce | 10154 | Thiago Jung Bauermann <bauerman@br.ibm.com> |
f964a756 MK |
10155 | |
10156 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that | |
10157 | don't fit into registerson the stack the way GCC does. | |
10158 | ||
b06ead72 JB |
10159 | 2008-02-01 Joel Brobecker <brobecker@adacore.com> |
10160 | ||
10161 | * symtab.c (symbol_set_names): Do not add an entry in the demangling | |
10162 | hash table for Ada symbols. Just store the linkage name as is, | |
10163 | and leave the demangled_name as NULL. | |
10164 | ||
2cfa0c8d JB |
10165 | 2007-02-01 Joel Brobecker <brobecker@adacore.com> |
10166 | ||
10167 | * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms | |
10168 | in the global scope. | |
10169 | (new_symbol): Likewise. | |
10170 | ||
98deb0da | 10171 | 2008-02-01 Vladimir Prus <vladimir@codesourcery.com> |
680b56ce AS |
10172 | |
10173 | * breakpoint.c (break_command_1): Return void. | |
10174 | (break_command_really): Return void. Rethrow | |
10175 | exceptions instead of returning. | |
10176 | (gdb_breakpoint): Remove the error_message parameter. | |
10177 | Return void. Rename to set_breakpoint. | |
10178 | * gdb.h (gdb_breakpoint): Rename and move to... | |
98deb0da | 10179 | * breakpoint.h (set_breakpoint): ...here. |
680b56ce AS |
10180 | * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore |
10181 | event hooks even if exception is thrown. Adjust to | |
10182 | gdb_breakpoint interface changes. | |
10183 | ||
98deb0da | 10184 | |
ce0451ad TJB |
10185 | 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10186 | ||
10187 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit | |
10188 | float in both first and second word in the doubleword, to support | |
10189 | old and new ABIs. | |
10190 | ||
723a2275 VP |
10191 | 2008-02-01 Vladimir Prus <vladimir@codesourcery.com> |
10192 | ||
10193 | Properly rethrow exception. This fixes errors | |
10194 | about non-existent functions for -break-insert. | |
680b56ce AS |
10195 | * breakpoint.c (break_command_really): Use throw_exception |
10196 | for rethrowing. If rethrowing, don't print the exception. | |
723a2275 | 10197 | |
d64a946d TJB |
10198 | 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10199 | ||
10200 | * NEWS: Mention Decimal Floating Point support. | |
10201 | ||
02b156f5 JB |
10202 | 2008-01-31 Joel Brobecker <brobecker@adacore.com> |
10203 | ||
10204 | * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned | |
10205 | value type to builtin_type_void_func_ptr. | |
10206 | ||
a16b8bcd UW |
10207 | 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com> |
10208 | ||
10209 | * s390-tdep.c (is_float_singleton, is_float_like, | |
10210 | alignment_of, s390_return_value): Make checks for | |
10211 | TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well. | |
10212 | ||
f949c649 TJB |
10213 | 2008-01-31 Luis Machado <luisgpm@br.ibm.com> |
10214 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
10215 | ||
10216 | * infcmd.c (default_print_registers_info): Also print hex | |
10217 | raw contents for TYPE_CODE_DECFLOAT registers. | |
10218 | * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member. | |
10219 | * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro. | |
10220 | (rs6000_register_name): Add support for DFP pseudo-registers. | |
10221 | (rs6000_pseudo_register_type): Likewise. | |
10222 | rs6000_pseudo_register_reggroup_p): Likewise. | |
10223 | (ppc_pseudo_register_read): New function. | |
10224 | (ppc_pseudo_register_write): Likewise. | |
10225 | (rs6000_pseudo_register_read): Likewise. | |
10226 | (rs6000_pseudo_register_write): Likewise. | |
10227 | (e500_pseudo_register_read): Move checks to | |
10228 | rs6000_pseudo_register_read. | |
10229 | (e500_pseudo_register_write): Move checks to | |
10230 | rs6000_pseudo_register_write. | |
10231 | (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install | |
10232 | rs6000_pseudo_register_read and rs6000_pseudo_register_write | |
10233 | in gdbarch if SPE or DFP is available. Adjust gdbarch's | |
10234 | num_pseudo_regs to account for DFP pseudo regs. | |
10235 | ||
5a9e69ba TJB |
10236 | 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10237 | ||
10238 | * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member. | |
10239 | * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro. | |
10240 | (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type, | |
10241 | rs6000_pseudo_register_reggroup_p, e500_move_ev_register, | |
10242 | e500_pseudo_register_read, e500_pseudo_register_write): Use | |
10243 | IS_SPE_PSEUDOREG macro. | |
10244 | (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum. | |
10245 | (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable. | |
10246 | Remove initialization of tdep->ppc_ev31_regnum. | |
10247 | ||
4e885b20 JB |
10248 | 2008-01-08 Paul Hilfinger <hilfinger@adacore.com> |
10249 | ||
10250 | * printcmd.c (print_formatted): Handle references as for unformatted | |
10251 | prints. | |
10252 | ||
80f064a2 JB |
10253 | 2008-01-30 Joel Brobecker <brobecker@adacore.com> |
10254 | ||
10255 | * eval.c (evaluate_subexp_standard): Add handling of user | |
10256 | registers when in EVAL_AVOID_SIDE_EFFECTS mode. | |
10257 | ||
9b3442ee PM |
10258 | 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr> |
10259 | ||
10260 | * eval.c (evaluate_subexp_standard): Support | |
10261 | BINOP_INTDIV opcode. | |
10262 | ||
d118ef87 PH |
10263 | 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com> |
10264 | ||
10265 | * valarith.c (value_binop): Add floating-point BINOP_MIN and | |
10266 | BINOP_MAX cases. | |
10267 | For BINOP_EXP, use length and signedness of left operand only for | |
10268 | result, as for shifts. | |
10269 | For integral operands to BINOP_EXP, use new integer_pow and | |
10270 | uinteger_pow functions so as to get full range of results. | |
10271 | (integer_pow): New function. | |
10272 | (uinteger_pow): New function. | |
10273 | ||
d56d46f5 VP |
10274 | 2008-01-30 Vladimir Prus <vladimir@codesourcery.com> |
10275 | ||
10276 | Use vector for varobj_list_children interface. | |
680b56ce AS |
10277 | * gdb/varobj.c (varobj_list_children): Return vector |
10278 | of varobjs. | |
10279 | * gdb/varobj.h (varobj_list_children): Adjust | |
10280 | prototype. | |
10281 | (varobj_p): Declare. Declare vector thereof. | |
10282 | * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust | |
10283 | for varobj_list_children change. | |
d56d46f5 VP |
10284 | * Makefile.in (varobj_h): Update dependencies. |
10285 | ||
1300a2f4 TJB |
10286 | 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10287 | ||
10288 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for | |
10289 | TYPE_CODE_DECFLOAT arguments. | |
10290 | (ppc64_sysv_abi_push_dummy_call) Likewise. | |
10291 | (get_decimal_float_return_value): New function. | |
10292 | (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return | |
10293 | values by calling get_decimal_float_return_value. | |
10294 | (ppc64_sysv_abi_return_value): Likewise. | |
10295 | ||
95ef687d NR |
10296 | 2008-01-30 Nick Roberts <nickrob@snap.net.nz> |
10297 | ||
10298 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field | |
10299 | for preprocessor macro information. Formatting changes. | |
10300 | ||
2d717e4f DJ |
10301 | 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
10302 | ||
10303 | * remote.c (struct remote_state): Add cached_wait_status. | |
10304 | (remote_exec_file): New variable. | |
10305 | (PACKET_vAttach, PACKET_vRun): New constants. | |
10306 | (extended_remote_restart): Do not query for status. | |
10307 | (struct start_remote_args): New. | |
10308 | (remote_start_remote): Take it as a second argument. Check | |
10309 | whether the target is running. Issue an error for non-running | |
10310 | non-extended targets. Cache the wait status. Set inferior_ptid | |
10311 | here. | |
10312 | (remote_open_1): Prompt to disconnect non-running targets. Make | |
10313 | sure the target is marked running. Do not set inferior_ptid here. | |
10314 | Update call to remote_start_remote. Do not call remote_check_symbols | |
10315 | if the target is not running. | |
10316 | (remote_detach_1): Rename from remote_detach. Take an EXTENDED | |
10317 | argument. Handle a non-running target. | |
10318 | (remote_detach): Use it. | |
10319 | (extended_remote_detach): New. | |
10320 | (remote_disconnect): Fix typo. Use remoute_mourn_1. | |
10321 | (extended_remote_attach_1, extended_remote_attach) | |
10322 | (extended_async_remote_attach): New. | |
10323 | (remote_vcont_resume): Remove unused variable. | |
10324 | (remote_wait, remote_async_wait): Use any cached wait status. | |
10325 | (putpkt_binary, getpkt): Clear any cached wait status. | |
10326 | (extended_remoute_mourn_1): New. | |
10327 | (extended_remote_mourn): Use it. | |
10328 | (extended_async_remote_mourn, extended_remote_run): New. | |
10329 | (extended_remote_create_inferior_1): New. | |
10330 | (extended_remote_create_inferior): Use it. | |
10331 | (extended_remote_async_create_inferior): Likewise. | |
10332 | (remote_xfer_partial): Skip for non-executing targets. | |
10333 | (init_extended_remote_ops): Set to_detach and to_attach. | |
10334 | (init_extended_async_remote_ops): Likewise. Use | |
10335 | extended_async_remote_mourn. | |
10336 | (_initialize_remote): Register vAttach, vRun, and | |
10337 | set remote exec-file. | |
10338 | * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support. | |
10339 | ||
e85a822c DJ |
10340 | 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
10341 | ||
10342 | * Makefile.in (symfile.o): Update. | |
10343 | * NEWS: Mention exec tracing support. | |
10344 | * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for | |
10345 | exec events. | |
10346 | * infcmd.c (kill_if_already_running, detach_command) | |
10347 | (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries. | |
10348 | * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete. | |
10349 | (follow_exec): Do not check may_follow_exec. Do not mourn and push | |
10350 | targets. Apply the sysroot path to the loaded executable. Use | |
10351 | no_shared_libraries. | |
10352 | * linux-nat.c (linux_child_follow_fork): Print fork following | |
10353 | messages if verbose. | |
10354 | (kill_wait_callback): Kill again before waiting a second time. | |
10355 | * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with | |
10356 | no_shared_libraries. | |
10357 | ||
9db13498 JB |
10358 | 2008-01-29 Joel Brobecker <brobecker@adacore.com> |
10359 | ||
10360 | * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR. | |
10361 | ||
b4d5ed91 JB |
10362 | 2008-01-29 Joel Brobecker <brobecker@adacore.com> |
10363 | ||
10364 | * nto-tdep.h: Remove #include "defs.h". | |
10365 | * nto-tdep.c: Add #include "defs.h". | |
10366 | * Makefile.in (nto_tdep_h): Update dependencies. | |
10367 | (nto-tdep.o): Likewise. | |
10368 | ||
107313f7 | 10369 | 2008-01-29 Joel Brobecker <brobecker@adacore.com> |
ae123ec6 JB |
10370 | |
10371 | * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter | |
10372 | and use it. | |
10373 | (proceed, start_remote): Update call to wait_for_inferior. | |
10374 | * inferior.h (wait_for_inferior): Update declaration. | |
10375 | * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c, | |
10376 | solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior. | |
10377 | * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as | |
10378 | TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED. | |
10379 | ||
3f4178d6 DJ |
10380 | 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com> |
10381 | ||
680b56ce | 10382 | * varobj (adjust_value_for_child_access): Added checking for |
3f4178d6 DJ |
10383 | returned value from gdb_value_ind. |
10384 | (c_describe_child): Likewise. | |
10385 | (cplus_describe_child): Fixed a typo. | |
10386 | ||
5eeba8d4 JB |
10387 | 2008-01-29 Jim Blandy <jimb@red-bean.com> |
10388 | ||
10389 | * MAINTAINERS: Update my info. | |
10390 | ||
a5606eee VP |
10391 | 2008-01-29 Vladimir Prus <vladimir@codesourcery.com> |
10392 | ||
10393 | Use multiple locations for hardware watchpoints. | |
10394 | This eliminates the need to traverse value chain, doing | |
10395 | various checks, in three different places. | |
10396 | ||
680b56ce AS |
10397 | * breakpoint.h (struct bp_location): New fields |
10398 | lengths and watchpoint_type. | |
10399 | (struct breakpoint): Remove the val_chain field. | |
10400 | * breakpoint.c (is_hardware_watchpoint): New. | |
10401 | (free_valchain): Remove. | |
10402 | (update_watchpoint): New. | |
10403 | (insert_bp_location): For hardware watchpoint, just | |
10404 | directly insert it. | |
10405 | (insert_breakpoints): Call update_watchpoint_locations | |
10406 | on all watchpoints. If we have failed to insert | |
10407 | any location of a hardware watchpoint, remove all inserted | |
10408 | locations. | |
10409 | (remove_breakpoint): For hardware watchpoints, directly | |
10410 | remove location. | |
10411 | (watchpoints_triggered): Iterate over locations. | |
10412 | (bpstat_stop_status): Use only first location of | |
10413 | a resource watchpoint. | |
10414 | (delete_breakpoint): Don't call free_valchain. | |
10415 | (print_one_breakpoint): Don't print all | |
10416 | locations for watchpoints. | |
10417 | (breakpoint_re_set_one): Use update_watchpoint for | |
10418 | watchpoints. | |
a5606eee | 10419 | |
0b3de036 VP |
10420 | 2008-01-29 Vladimir Prus <vladimir@codesourcery.com> |
10421 | ||
10422 | Don't reset watchpoint block on solib load. | |
10423 | ||
680b56ce AS |
10424 | * breakpoint.c (insert_bp_location): For watchpoints, |
10425 | recompute condition. | |
10426 | (breakpoint_re_set_one): Instead of recomputing value | |
10427 | and condition for watchpoints, just reset value and | |
10428 | let insert_breakpoints/insert_bp_location recompute it. | |
10429 | Don't do anything about disabled watchpoint. | |
0b3de036 | 10430 | |
c3940723 PM |
10431 | 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr> |
10432 | ||
10433 | * valarith.c (value_binop): Handle unsigned integer | |
10434 | division by zero. | |
10435 | ||
83845630 KB |
10436 | 2008-01-28 Kevin Buettner <kevinb@redhat.com> |
10437 | ||
10438 | * mn10300-tdep.c (mn10300_analyze_prologue): Check for an | |
10439 | instruction pattern that appears frequently in position | |
10440 | independent code. Fix bug in code which looks for "fmov" and | |
10441 | backtracks if no "fmov" is found. | |
10442 | ||
9ce5d3bb DE |
10443 | 2008-01-28 Doug Evans <dje@google.com> |
10444 | ||
10445 | * dbxread.c (read_dbx_symtab): Fix indentation. | |
131fe1bb DE |
10446 | Reformat comments to 80 columns. |
10447 | Move local var def closer to only use. | |
9ce5d3bb | 10448 | |
c78d192c DJ |
10449 | 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com> |
10450 | ||
10451 | * fork-child.c (SHELL_FILE): Remove #ifndef. | |
10452 | (fork_inferior): Remove SHELL_COMMAND_CONCAT. | |
10453 | ||
e11481da PM |
10454 | 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr> |
10455 | ||
10456 | * i386-tdep.c (i386_skip_noop): New function. | |
10457 | (i386_analyze_prologue): Call i386_skip_noop function. | |
10458 | ||
244e85c8 MS |
10459 | 2008-01-24 Michael Snyder <msnyder@specifix.com> |
10460 | ||
10461 | * procfs.c (procfs_xfer_partial): Comment, cut/paste error. | |
10462 | * win32-nat.c (win32_xfer_partial): Ditto. | |
10463 | * target.c (default_xfer_partial): Minor whitespace adjustment. | |
10464 | ||
dd6be234 PA |
10465 | 2008-01-24 Pedro Alves <pedro@codesourcery.com> |
10466 | ||
10467 | * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't | |
10468 | strip bit 1 even if pc doesn't point to thumb code. | |
10469 | ||
9fa2223d DJ |
10470 | 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com> |
10471 | ||
10472 | * remote.c (remote_wait): Handle SIGINT between packets. | |
10473 | (remote_async_wait): Likewise. | |
10474 | ||
93815fbf VP |
10475 | 2008-01-23 Vladimir Prus <vladimir@codesourcery.com> |
10476 | Chris Demetriou <cgd@google.com> | |
10477 | ||
680b56ce AS |
10478 | * thread.c (add_thread_silent): Renamed |
10479 | from add_thread. | |
10480 | (print_thread_events): New variable definition. | |
10481 | (show_print_thread_events): New function. | |
10482 | (_initialize_thread): Add "set print thread-events" and | |
10483 | "show print thread-events" commands. | |
10484 | (add_thread): Announce new thread. | |
10485 | * gdbthread.h (add_thread_silent): Declare. | |
10486 | (print_thread_events): New variable declaration. | |
10487 | * inf-ttrace.c (inf_ttrace_wait): Don't | |
10488 | inform about new thread, as add_thread is always | |
10489 | called too, and will take care of that. | |
10490 | * infrun.c (handle_inferior_event): Likewise. | |
10491 | * procfs.c (procfs_wait): Likewise. | |
10492 | * remote.c (remote_currthread): Likewise. | |
10493 | * sol-thread.c (sol_thread_wait): Likewise. | |
10494 | * win32-nat.c (get_win32_debug_event): Likewise. | |
10495 | * linux-thread-db.c (attach_thread): Likewise. | |
10496 | Remove the verbose parameter. | |
10497 | (check_event): Make detach_thread be verbose | |
10498 | only if print_thread_events is set. | |
10499 | * linux-nat.c (lin_lwp_attach_lwp): Don't inform | |
10500 | about new thread. This is called only from | |
10501 | linux-thread-db.c:attach_thread, which will take care. | |
10502 | Remove the verbose parameter. | |
10503 | * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype. | |
93815fbf | 10504 | |
b4d7c9a6 NR |
10505 | 2008-01-23 Nick Roberts <nickrob@snap.net.nz> |
10506 | ||
10507 | * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output. | |
10508 | ||
60c46647 VP |
10509 | 2008-01-22 Vladimir Prus <vladimir@codesourcery.com> |
10510 | ||
10511 | * breakpoint.c (break_command_really): New parameter | |
10512 | ignore_count. | |
10513 | (break_command_1): Pass 0 as | |
10514 | ignore_count to break_command_really. | |
10515 | (gdb_breakpoint): Pass ignore_count to | |
10516 | break_command_really. | |
10517 | ||
e84605cd KB |
10518 | 2008-01-21 Kevin Buettner <kevinb@redhat.com> |
10519 | ||
10520 | * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find | |
10521 | sigcontext struct via pointer. | |
10522 | (struct sigframe comment): Update to show new field `psc'. | |
10523 | ||
9d9cd7ac VP |
10524 | 2008-01-21 Vladimir Prus <vladimir@codesourcery.com> |
10525 | ||
10526 | * infrun.c (handle_inferior_event): If | |
10527 | we failed to remove breakpoints, error, | |
10528 | don't try to increment PC by hand. | |
10529 | ||
af5ca30d NH |
10530 | 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com> |
10531 | ||
10532 | Add NetBSD/hppa target and host support. | |
10533 | ||
10534 | * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ... | |
10535 | (hppabsd_gregset): Move to ... | |
10536 | (hppabsd_regset_from_core_section): Rename | |
10537 | hppaobsd_regset_from_core_section and move to ... | |
10538 | (hppabsd_find_global_pointer): Update comment. | |
10539 | (hppabsd_init_abi): Make global. Do not register | |
10540 | hppabsd_regset_from_core_section. | |
10541 | (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and | |
10542 | move to ... | |
10543 | (_initialize_hppabsd_tdep): Move to ... | |
10544 | * hppaobsd-tdep.c: ... here. New file. | |
10545 | * hppnbsd-tdep.c: New file. | |
10546 | * hppnbsd-nat.c: New file. | |
680b56ce | 10547 | * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o. |
af5ca30d | 10548 | (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c. |
680b56ce AS |
10549 | (hppabsd-nat.o, hppabsd-tdep.o): New dependencies. |
10550 | (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies. | |
af5ca30d NH |
10551 | * configure.host (hppa*-*-netbsd*): New entry. |
10552 | * configure.tgt (hppa*-*-netbsd*): New entry. | |
10553 | (hppa*-*-openbsd*): Update. | |
10554 | * NEWS (New native configuration): Mention NetBSD/hppa. | |
10555 | (New targets): Mention NetBSD/hppa. | |
10556 | ||
32c9a795 MD |
10557 | 2008-01-18 Markus Deuling <deuling@de.ibm.com> |
10558 | ||
10559 | * gdbarch.sh (function_list): Add new property bits_big_endian to | |
10560 | gdbarch structure. | |
10561 | * gdbarch.{c,h}: Regenerate. | |
10562 | ||
10563 | * value.c (struct value): Replace BITS_BIG_ENDIAN by | |
10564 | gdbarch_bits_big_endian (comment). | |
10565 | (unpack_field_as_long, modify_field): Likewise. | |
10566 | * value.h: Likewise (comment). | |
10567 | * valops.c (value_slice): Likewise. | |
10568 | * valarith.c (value_subscript, value_bit_index): Likewise. | |
10569 | * gdbtypes.h (field): Likewise (comment). | |
10570 | * eval.c (evaluate_subexp_standard): Likewise. | |
10571 | * dwarf2read.c (dwarf2_add_field): Likewise. | |
10572 | * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val) | |
10573 | (move_bits, ada_value_assign, value_assign_to_component): Likewise. | |
680b56ce | 10574 | |
32c9a795 MD |
10575 | * defs.h (BITS_BIG_ENDIAN): Remove. |
10576 | ||
1e5e79d0 MD |
10577 | 2008-01-18 Markus Deuling <deuling@de.ibm.com> |
10578 | ||
10579 | * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate | |
10580 | function calls. | |
10581 | * m2-exp.y (yylex): Likewise. | |
10582 | * objc-exp.y (yylex): Likewise. | |
10583 | ||
10584 | * defs.h (DEPRECATED_STREQN): Remove. | |
10585 | ||
fabda5a7 L |
10586 | 2008-01-17 H.J. Lu <hjl.tools@gmail.com> |
10587 | ||
10588 | * MAINTAINERS: Update my email address. | |
10589 | ||
92726479 JB |
10590 | 2008-01-17 Jim Blandy <jimb@codesourcery.com> |
10591 | ||
10592 | * README: Mention gdbserver/README. | |
10593 | ||
ef80d18e PM |
10594 | 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr> |
10595 | ||
10596 | * valarith.c (value_binop): Handle BINOP_INTDIV | |
10597 | for unsigned and signed integers. | |
10598 | ||
1de90795 UW |
10599 | 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com> |
10600 | ||
10601 | * s390-tdep.c (s390_gdbarch_init): Set default long double | |
10602 | type to 128-bit IEEE quad. | |
10603 | ||
c70bd6f3 JB |
10604 | 2008-01-17 Joel Brobecker <brobecker@adacore.com> |
10605 | ||
10606 | * hpux-thread.c (hpux_thread_resume): Delete commented-out code. | |
10607 | ||
ba759613 MK |
10608 | 2008-01-16 Mark Kettenis <kettenis@gnu.org> |
10609 | ||
77d49ac6 MK |
10610 | * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS. |
10611 | ||
ba759613 MK |
10612 | * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest. |
10613 | * value.c: All callers changed. | |
10614 | ||
7ecb6532 MD |
10615 | 2008-01-16 Markus Deuling <deuling@de.ibm.com> |
10616 | ||
10617 | * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace | |
10618 | DEPRECATED_STREQ by its expression. | |
10619 | * coffread.c (coff_locate_sections, coff_symtab_read): Likewise. | |
10620 | * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos) | |
10621 | (scan_xcoff_symtab): Likewise. | |
10622 | * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise. | |
10623 | * f-lang.c (find_common_for_function): Likewise. | |
10624 | * objc-exp.y (parse_number): Likewise. | |
10625 | ||
10626 | * defs.h (DEPRECATED_STREQ): Remove. | |
10627 | ||
d15cf01c MD |
10628 | 2008-01-16 Markus Deuling <deuling@de.ibm.com> |
10629 | ||
10630 | * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter. | |
10631 | * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use | |
10632 | get_frame_arch to get at the current_architecture. Update AM33_MODE | |
10633 | call. | |
10634 | (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller. | |
10635 | (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current | |
10636 | architecture. | |
10637 | (set_reg_offsets, mn10300_analyze_prologue): Fix indentation. | |
10638 | ||
f8028488 MD |
10639 | 2008-01-16 Markus Deuling <deuling@de.ibm.com> |
10640 | ||
680b56ce | 10641 | * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as |
f8028488 MD |
10642 | parameter. |
10643 | * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise. | |
10644 | ||
10645 | (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace | |
10646 | current_gdbarch by gdbarch. Update caller. | |
10647 | ||
10648 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers) | |
10649 | (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at | |
10650 | the current architecture. Update calls of | |
10651 | amd64_native_gregset_supplies_p. | |
10652 | * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers) | |
10653 | (amd64bsd_store_inferior_registers): Likewise. | |
10654 | ||
e101270f MD |
10655 | 2008-01-16 Markus Deuling <deuling@de.ibm.com> |
10656 | ||
10657 | * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter. | |
10658 | Replace current_gdbarch by gdbarch. Update caller. | |
10659 | ||
063e58ba MD |
10660 | 2008-01-16 Markus Deuling <deuling@de.ibm.com> |
10661 | ||
10662 | * dbxread.c (repeated_header_complaint, dbx_symfile_init) | |
10663 | (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint) | |
10664 | (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1) | |
10665 | (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol) | |
10666 | (stabsect_build_psymtabs): Fix indentation. | |
10667 | ||
662fb31b MS |
10668 | 2008-01-15 Michael Snyder <msnyder@specifix.com> |
10669 | ||
10670 | * corelow.c (core_xfer_partial): Comment, cut/paste error. | |
10671 | ||
c1766e7d PM |
10672 | 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr> |
10673 | ||
10674 | * win32-nat.c (win32_create_inferior): Restore code calling | |
10675 | CloseHandle on ProcessInformation structure. | |
10676 | ||
5ed10e6e NH |
10677 | 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com> |
10678 | ||
10679 | * configure.ac: Check for void * as 3 argument of ptrace. | |
10680 | * configure: regenerate. | |
10681 | ||
be8626e0 MD |
10682 | 2008-01-11 Markus Deuling <deuling@de.ibm.com> |
10683 | ||
10684 | * alpha-tdep.c (alpha_heuristic_proc_start) | |
10685 | (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace | |
10686 | current_gdbarch by gdbarch. | |
10687 | ||
10688 | (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the | |
680b56ce | 10689 | current architecture by frame_info. Update alpha_heuristic_proc_start |
be8626e0 MD |
10690 | call. |
10691 | ||
10692 | (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use | |
10693 | get_frame_arch to get at the current architecture by frame_info. Update | |
10694 | alpha_sigtramp_register_address call. | |
10695 | ||
10696 | * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace | |
10697 | current_gdbarch by gdbarch. Update caller. | |
10698 | (convert_to_extended, convert_from_extended): Add endianess parameter | |
10699 | for comparison. Update caller. | |
10700 | (arm_extract_return_value, arm_store_return_value): Use | |
10701 | get_regcache_arch to get at the current architecture. | |
10702 | ||
10703 | * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace | |
10704 | current_gdbarch by gdbarch. Update caller. | |
10705 | (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add | |
10706 | gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch. | |
10707 | ||
10708 | * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add | |
680b56ce | 10709 | gdbarch as parameter. Update caller. |
be8626e0 MD |
10710 | (h8300_init_frame_cache): Add gdbarch as parameter. Replace |
10711 | current_gdbarch by gdbarch. Update caller. | |
10712 | ||
680b56ce | 10713 | * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and |
be8626e0 MD |
10714 | update caller. Replace current_gdbarch by gdbarch. |
10715 | ||
10716 | * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at | |
10717 | the current architecture. Replace current_gdbarch by gdbarch. | |
10718 | * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise. | |
10719 | (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its | |
10720 | expression. Add gdbarch as parameter and replace current_gdbarch with | |
10721 | it. Update caller. | |
10722 | (M6811_TDEP): Remove. | |
10723 | (m68hc11_frame_prev_register): Use get_frame_arch to get at the current | |
10724 | architecture. | |
680b56ce | 10725 | (m68hc11_scan_prologue): Add gdbarch as parameter. Replace |
be8626e0 MD |
10726 | current_gdbarch by gdbarch. Update caller. |
10727 | ||
10728 | * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and | |
10729 | update caller. | |
10730 | (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch | |
10731 | by gdbarch. | |
10732 | ||
10733 | * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update | |
10734 | caller. Relace current_gdbarch by gdbarch. | |
10735 | (altivec_register_p, spe_register_p): Likewise. | |
10736 | * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as | |
10737 | parameter. | |
10738 | * ppc-linux-nat.c (fetch_register, store_register): Update caller of | |
10739 | altivec_register_p and spe_register_p. | |
10740 | ||
680b56ce | 10741 | * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update |
be8626e0 MD |
10742 | caller. Replace current_gdbarch by gdbarch. |
10743 | (score_analyze_prologue): use get_frame_arch to get at the current | |
680b56ce | 10744 | architecture. |
be8626e0 MD |
10745 | |
10746 | * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter. | |
10747 | * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace | |
10748 | current_gdbarch by gdbarch. Update caller. | |
10749 | (sparc_frame_cache): Use get_frame_arch to get at the current | |
10750 | architecture. | |
10751 | * sparce64-tdep.c (sparc64_skip_prologue): Update call of | |
10752 | sparc_analyze_prologue. | |
10753 | ||
10754 | * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as | |
10755 | parameter. | |
10756 | ||
ed49a04f MD |
10757 | 2008-01-11 Markus Deuling <deuling@de.ibm.com> |
10758 | ||
10759 | * exec.c: #include "arch-utils.h" | |
10760 | (print_section_info): Use gdbarch_from_bfd to get at the | |
10761 | current architecture. Replace current_gdbarch. Fix indention. Replace | |
10762 | deprecated_print_address_numeric by paddress. | |
10763 | * Makefile.in (exec.o) Add dependency to arch-utils.h. | |
10764 | ||
680b56ce | 10765 | * valprint.c (val_print_string): Replace |
ed49a04f MD |
10766 | deprecated_print_address_numeric. |
10767 | * tracepoint.c (trace_mention, scope_info): Likewise. | |
10768 | * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol) | |
10769 | (print_symbol, print_partial_symbols, maintenance_info_psymtabs) | |
10770 | (maintenance_check_symtabs): Likewise. | |
10771 | * symfile.c (list_overlays_command): Likewise. | |
10772 | * stack.c (frame_info, print_block_frame_labels): Likewise. | |
10773 | * printcmd.c (print_address, print_address_demangle) | |
10774 | (address_info): Likewise. | |
10775 | * corefile.c (memory_error): Likewise. | |
10776 | * infcmd.c (jump_command): Likewise. | |
10777 | * breakpoint.c (insert_bp_location, describe_other_breakpoints) | |
10778 | (mention, delete_breakpoint): Likewise. | |
10779 | * c-valprint.c (print_function_pointer_address, c_val_print): Likewise. | |
10780 | * dwarf2read.c (dump_die): Likewise. | |
10781 | * ada-valprint.c (ada_val_print_1): Likewise. | |
10782 | * f-valprint.c (f_val_print): Likewise. | |
680b56ce | 10783 | * linux-fork.c (info_forks_command): Likewise. |
ed49a04f MD |
10784 | * m32r-com.c (m32r_load_section, m32r_load) |
10785 | (m32r_upload_command): Likewise. | |
10786 | ||
10787 | * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment. | |
10788 | ||
6093d2eb MD |
10789 | 2008-01-11 Markus Deuling <deuling@de.ibm.com> |
10790 | ||
10791 | * gdbarch.sh (skip_prologue): Add gdbarch | |
10792 | as parameter. | |
10793 | * gdbarch.{c,h}: Regenerate. | |
10794 | ||
10795 | * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter. | |
10796 | * amd64-tdep.c (amd64_skip_prologue): Likewise. | |
10797 | * avr-tdep.c (avr_skip_prologue): Likewise. | |
10798 | * cris-tdep.c (cris_skip_prologue): Likewise. | |
10799 | * frv-tdep.c (frv_skip_prologue): Likewise. | |
10800 | * h8300-tdep.c (h8300_skip_prologue): Likewise. | |
10801 | * hppa-tdep.c (hppa_skip_prologue): Likewise. | |
10802 | * i386-tdep.c (i386_skip_prologue): Likewise. | |
10803 | * ia64-tdep.c (ia64_skip_prologue): Likewise. | |
10804 | * iq2000-tdep.c (iq2000_skip_prologue): Likewise. | |
10805 | * m32r-tdep.c (m32r_skip_prologue): Likewise. | |
10806 | * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise. | |
10807 | * m68k-tdep.c (m68k_skip_prologue): Likewise. | |
10808 | * m88k-tdep.c (m88k_skip_prologue): Likewise. | |
10809 | * mep-tdep.c (mep_skip_prologue): Likewise. | |
10810 | * mips-tdep.c (mips_skip_prologue): Likewise. | |
10811 | * mn10300-tdep.c (mn10300_skip_prologue): Likewise. | |
10812 | * mt-tdep.c (mt_skip_prologue): Likewise. | |
10813 | * rs6000-tdep.c (rs6000_skip_prologue): Likewise. | |
10814 | * score-tdep.c (score_skip_prologue): Likewise. | |
10815 | * sh64-tdep.c (sh64_skip_prologue): Likewise. | |
10816 | * sh-tdep.c (sh_skip_prologue): Likewise. | |
10817 | * sparc64-tdep.c (sparc64_skip_prologue): Likewise. | |
10818 | * sparc-tdep.c (sparc32_skip_prologue): Likewise. | |
10819 | * spu-tdep.c (spu_skip_prologue): Likewise. | |
10820 | * v850-tdep.c (v850_skip_prologue): Likewise. | |
10821 | * vax-tdep.c (vax_skip_prologue): Likewise. | |
10822 | * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise. | |
10823 | * xtensa-tdep.c (xtensa_skip_prologue): Likewise. | |
10824 | ||
10825 | * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace | |
10826 | current_gdbarch by gdbarch. | |
10827 | * m32c-tdep.c (m32c_skip_prologue): Likewise. | |
10828 | * s390-tdep.c (s390_skip_prologue): Likewise. | |
10829 | ||
72f5cf0e DE |
10830 | 2008-01-10 Doug Evans <dje@google.com> |
10831 | ||
10832 | * defs.h (struct continuation_arg): Fix typo in comment. | |
10833 | * target.c (target_translate_tls_address): Fix comment spelling error. | |
10834 | ||
689e4e2d TJB |
10835 | 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10836 | ||
10837 | * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string. | |
10838 | (DOUBLEST_SCAN_FORMAT): Likewise. | |
10839 | * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT. | |
10840 | * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT. | |
10841 | * c-exp.y (parse_number): Likewise. | |
10842 | * jv-exp.y (parse_number): Likewise. | |
10843 | * objc-exp.y (parse_number): Likewise. | |
10844 | * p-exp.y (parse_number): Likewise. | |
10845 | ||
ab0d6e0d JB |
10846 | 2008-01-09 Joel Brobecker <brobecker@adacore.com> |
10847 | ||
10848 | * gdbtypes.c (create_array_type): Add handling of null Ada arrays. | |
10849 | (check_typedef): Likewise. | |
10850 | ||
0aea4bf3 LM |
10851 | 2008-01-09 Luis Machado <luisgpm@br.ibm.com> |
10852 | ||
10853 | * printcmd.c (printf_command): Add seen_big_h, seen_big_d and | |
10854 | seen_double_big_d, treat the new H, D, and DD modifiers as length | |
10855 | modifiers. | |
10856 | ||
137033e9 JB |
10857 | 2008-01-08 Joel Brobecker <brobecker@adacore.com> |
10858 | ||
10859 | * dwarf2read.c (read_enumeration_type): Add comment. | |
10860 | ||
dda297ec TJB |
10861 | 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10862 | ||
10863 | * config.in: Regenerate. | |
10864 | ||
a93c0eb6 JB |
10865 | 2008-01-08 Joel Brobecker <brobecker@adacore.com> |
10866 | ||
10867 | * ada-lang.c (ada_convert_actual): Renames convert_actual. | |
10868 | Make non-static. | |
10869 | (ada_convert_actuals): Delete. | |
10870 | * ada-lang.h (ada_convert_actual): Add declaration. | |
10871 | (ada_convert_actuals): Remove declaration. | |
10872 | * infcall.c: #include "ada-lang.h". | |
10873 | (value_arg_coerce): Add new parameter sp. Update function | |
10874 | documetnation. Add handling of Ada function call parameters. | |
10875 | * Makefile.in (infcall.o): Update dependencies. | |
10876 | ||
a84a8a0d JB |
10877 | 2008-01-08 Paul Hilfinger <hilfinger@adacore.com> |
10878 | ||
10879 | * ada-lang.c (ensure_lval): Fix value lval kind. | |
10880 | (convert_actual): Add handling for arguments passed by reference. | |
10881 | ||
d7f98cce DE |
10882 | 2008-01-08 Doug Evans <dje@google.com> |
10883 | ||
10884 | * dbxread.c (read_dbx_symtab): Fix indentation. | |
10885 | ||
4ef30785 TJB |
10886 | 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10887 | ||
10888 | * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h. | |
10889 | (valarith.o): Depend on dfp.h. | |
10890 | (valops.o): Likewise. | |
10891 | * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h. | |
10892 | (set_decnumber_context): New function. | |
10893 | (decimal_check_errors): Likewise. | |
10894 | (decimal_from_number): Likewise. | |
10895 | (decimal_to_number): Likewise. | |
10896 | (decimal_from_string): Use set_decnumber_context and | |
10897 | decimal_check_errors. | |
10898 | (decimal_from_integral): New function. | |
10899 | (decimal_from_floating): Likewise. | |
10900 | (decimal_to_double): Likewise. | |
10901 | (promote_decimal): Likewise. | |
10902 | (decimal_binop): Likewise. | |
10903 | (decimal_is_zero): Likewise. | |
10904 | (decimal_compare): Likewise. | |
10905 | (decimal_convert): Likewise. | |
10906 | * dfp.h (decimal_from_integral): New prototype. | |
10907 | (decimal_from_floating): Likewise. | |
10908 | (decimal_to_double): Likewise. | |
10909 | (decimal_binop): Likewise. | |
10910 | (decimal_is_zero): Likewise. | |
10911 | (decimal_compare): Likewise. | |
10912 | (decimal_convert): Likewise. | |
10913 | * eval.c (evaluate_subexp_standard): Remove expect_type argument from | |
10914 | call to value_from_decfloat. | |
10915 | * valarith.c: Include dfp.h. | |
10916 | (value_args_as_decimal): New function. | |
10917 | (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values. | |
10918 | (value_logical_not): Likewise. | |
10919 | (value_equal): Likewise. | |
10920 | (value_less): Likewise. | |
10921 | (value_pos): Likewise. | |
10922 | (value_neg): Formatting fix. | |
10923 | * valops.c: Include dfp.h. | |
10924 | (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values. | |
10925 | * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT. | |
10926 | (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT. | |
10927 | (value_from_decfloat): Remove expect_type argument. | |
10928 | * value.h (value_from_decfloat): Update prototype. | |
10929 | ||
a7c02bc8 VP |
10930 | 2008-01-07 Vladimir Prus <vladimir@codesourcery.com> |
10931 | ||
10932 | Ignore change in name of dynamic linker during | |
10933 | execution on Solaris. This also unbreaks pending breakpoints. | |
10934 | ||
10935 | * solist.h (struct target_so_ops): New field same. | |
680b56ce AS |
10936 | * solib-svr4.c (svr4_same): New. |
10937 | (_initialize_svr4_solib): Register svr4_same. | |
10938 | * solib.c (update_solib_list): Use ops->same, if available. | |
a7c02bc8 | 10939 | |
610dd7f9 CF |
10940 | 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx> |
10941 | ||
10942 | * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings | |
10943 | when using MS-DOS paths. | |
10944 | ||
7a404eba PA |
10945 | 2008-01-05 Pedro Alves <pedro@codesourcery.com> |
10946 | ||
10947 | * NEWS: Mention --pid and --core command line behaviour changes. | |
10948 | ||
a4d9b460 PA |
10949 | 2008-01-05 Pedro Alves <pedro@codesourcery.com> |
10950 | ||
10951 | * main.c (captured_main): Remove 'count' varible and the | |
10952 | ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and | |
10953 | --pid options were issued simultaneously. If an explicit pid | |
10954 | option was passed, don't fallback to core file. Detect extra | |
10955 | arguments better in the presence of explicit pid or core | |
10956 | arguments. | |
10957 | ||
0c281816 JB |
10958 | 2008-01-05 Joel Brobecker <brobecker@adacore.com> |
10959 | ||
10960 | * ada-lang.c (ada_which_variant_applies): Correctly compute | |
10961 | the value of the discriminant when the variant record is packed. | |
10962 | ||
babe1480 JB |
10963 | 2008-01-04 Joel Brobecker <brobecker@adacore.com> |
10964 | ||
10965 | * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes | |
10966 | that are used to differentiate homonyms. | |
10967 | ||
727e3d2e JB |
10968 | 2008-01-04 Jerome Guitton <guitton@adacore.com> |
10969 | ||
10970 | * ada-lang.c (decode_packed_array_type): Avoid a seg fault | |
10971 | when the type is an anonymous pointer type. | |
10972 | (ada_check_typedef): Avoid a seg fault when the type is null. | |
10973 | * ada-typeprint.c (print_array_type): Add support for pointer | |
10974 | to packed arrays. | |
10975 | ||
bb28a9dc JB |
10976 | 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com> |
10977 | ||
680b56ce | 10978 | * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment. |
bb28a9dc | 10979 | |
6799def4 JB |
10980 | 2008-01-04 Joel Brobecker <brobecker@adacore.com> |
10981 | ||
10982 | * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in | |
10983 | EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS. | |
10984 | ||
d3353bbd JB |
10985 | 2008-01-04 Joel Brobecker <brobecker@adacore.com> |
10986 | ||
10987 | * ada-exp.y (chop_separator): New function. | |
10988 | (write_selectors): Rewrite to re-use chop_separator. | |
10989 | (ada_nget_field_index, get_symbol_field_type): New functions. | |
10990 | (write_var_or_type): Add support for "ptype TYPENAME.FIELD" | |
10991 | expressions. | |
10992 | ||
82cf6c60 TJB |
10993 | 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10994 | ||
10995 | * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead | |
10996 | of SYMBOL_VALUE when working with function symbols. | |
10997 | ||
b3dbf008 JB |
10998 | 2008-01-03 Joel Brobecker <brobecker@adacore.com> |
10999 | ||
11000 | * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER | |
11001 | expressions. These expressions do not need to be rewriten. | |
11002 | ||
02eb380e JB |
11003 | 2008-01-03 Joel Brobecker <brobecker@adacore.com> |
11004 | ||
11005 | * dwarf2read.c (read_enumeration_type): Flag type as stub if | |
11006 | the given die is a declaration. | |
11007 | ||
abb68b3e JB |
11008 | 2008-01-03 Joel Brobecker <brobecker@adacore.com> |
11009 | ||
11010 | * ada-lang.c (ada_array_bound_from_type): Make non-static. | |
11011 | Handle properly the case when the index type is an enumerated type. | |
11012 | Do not return the subtype of the bounds type, just return the | |
11013 | bounds type directly - this is not needed and is more consistent | |
11014 | with what we do for arrays when no XA parallel type exists. | |
11015 | ||
f192137b JB |
11016 | 2008-01-03 Joel Brobecker <brobecker@adacore.com> |
11017 | ||
11018 | * ada-lang.c (static_unwrap_type): Add forward declaration. | |
11019 | (template_to_static_fixed_type): Fields of dynamic types sometimes | |
11020 | also need to be unwrapped. Take this into account. | |
11021 | (ada_to_fixed_type_1): Renamed from ada_to_fixed_type. | |
11022 | (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1. | |
11023 | * ada-typeprint.c (ada_print_type): Get the typename from | |
680b56ce | 11024 | the original type, not the base type. |
f192137b | 11025 | |
1ed6ede0 JB |
11026 | 2008-01-03 Jerome Guitton <guitton@adacore.com> |
11027 | ||
11028 | * ada-lang.c (ada_value_struct_elt, to_fixed_array_type) | |
680b56ce | 11029 | (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value): |
1ed6ede0 JB |
11030 | Update calls to ada_to_fixed_type. |
11031 | (ada_template_to_fixed_record_type_1): Ditto, but without looking | |
11032 | for the tag. | |
11033 | (ada_to_fixed_type): Add check_tag parameter; do not look for | |
11034 | tag if null. When looking for a tag, use a fixed record type. | |
11035 | * ada-lang.h (ada_to_fixed_type): Add check_tag parameter. | |
11036 | * ada-valprint.c (printable_val_type, ada_value_print): Update | |
11037 | calls to ada_to_fixed_type. | |
11038 | ||
542a88d0 LM |
11039 | 2008-01-03 Luis Machado <luisgpm@br.ibm.com> |
11040 | ||
680b56ce | 11041 | * doublest.c (convert_floatformat_to_doublest): Call |
542a88d0 LM |
11042 | floatformat_to_doublest instead of floatformat_to_double and use |
11043 | DOUBLEST variables. | |
11044 | (convert_doublest_to_floatformat): Call floatformat_from_doublest | |
11045 | instead of floatformat_from_double and use DOUBLEST variables. | |
11046 | ||
dc2bbab2 NH |
11047 | 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com> |
11048 | ||
11049 | * MAINTAINERS (Write After Approval): Add self. | |
11050 | ||
8b60591b JB |
11051 | 2008-01-03 Joel Brobecker <brobecker@adacore.com> |
11052 | ||
11053 | * symfile.c (set_initial_language): Make non-static. | |
11054 | * symfile.h (set_initial_language): Add declaration. | |
11055 | * language.c: #include "symfile.h". | |
11056 | (set_language): Call set_initial_language if the frame language | |
11057 | could not be determined. | |
11058 | ||
ceef53c1 JB |
11059 | 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com> |
11060 | ||
11061 | * eval.c (evaluate_subexp_for_address): Provide frame address to | |
11062 | locate_var_value only if it will be needed. | |
11063 | ||
ef29ce1a JK |
11064 | 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
11065 | ||
11066 | * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB. | |
11067 | ||
0a07e705 JB |
11068 | 2008-01-02 Joel Brobecker <brobecker@adacore.com> |
11069 | ||
11070 | * ada-lang.c (ada_evaluate_subexp): Modify the value returned | |
11071 | when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory. | |
11072 | This is needed to make sure that any other treatment applied | |
11073 | to the resulting value does not fail for spurious reason, | |
11074 | such as trying to take the address of this value. | |
11075 | ||
f58b38bf JB |
11076 | 2008-01-02 Joel Brobecker <brobecker@adacore.com> |
11077 | ||
11078 | * ada-lang.c (ada_value_equal): Dereference reference types when | |
11079 | comparing arrays. | |
680b56ce | 11080 | |
9b254dd1 DJ |
11081 | 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com> |
11082 | ||
11083 | Updated copyright notices for most files. | |
11084 | ||
33605d39 CF |
11085 | 2008-01-01 Christopher Faylor <me+gdb@cgf.cx> |
11086 | ||
11087 | * win32-nat.c (psapi_module_handle): Remove static. | |
11088 | (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to | |
11089 | return first module found if base_address is zero. Don't initialize | |
11090 | psapi function pointers here. Convert to cygwin paths when | |
11091 | appropriate. | |
11092 | (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine | |
11093 | executable name. Use get_module_name when that fails or when | |
11094 | !__CYGWIN__. | |
11095 | (_initialize_psapi): New function. Initialize psapi stuff before it is | |
11096 | needed or issue a warning if it is not found. Move psapi_module_handle | |
11097 | here. | |
11098 | ||
29480c32 JB |
11099 | 2008-01-01 Joel Brobecker <brobecker@adacore.com> |
11100 | ||
11101 | * ada-lang.c (ada_remove_trailing_digits): New function. | |
11102 | (ada_remove_po_subprogram_suffix): New function. | |
11103 | (ada_decode): Improve. Move the description of the algorithm | |
11104 | directly inside the code, instead of in the function global | |
11105 | description. | |
11106 | ||
969a1360 JB |
11107 | 2008-01-01 Joel Brobecker <brobecker@adacore.com> |
11108 | ||
11109 | * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref | |
11110 | and always print the dereferenced value. | |
11111 | ||
b7789565 JB |
11112 | 2008-01-01 Joel Brobecker <brobecker@adacore.com> |
11113 | ||
11114 | * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling | |
11115 | of the case where the first argument is a reference. | |
11116 | (ada_evaluate_subexp, case BINOP_ADD): Likewise. | |
11117 | ||
73fb9985 JB |
11118 | 2008-01-01 Joel Brobecker <brobecker@adacore.com> |
11119 | ||
11120 | Implement support for Ada interface types. | |
11121 | ||
11122 | * ada-lang.c (ada_is_dispatch_table_ptr_type): New function. | |
11123 | (ada_is_ignored_field): Ignore fields that are a dispatch table | |
11124 | of a tagged type. | |
11125 | ||
636265b6 JB |
11126 | 2008-01-01 Joel Brobecker <brobecker@adacore.com> |
11127 | ||
11128 | * top.c (print_gdb_version): Update copyright year. | |
11129 | ||
9d200a2e | 11130 | 2008-01-01 Joel Brobecker <brobecker@adacore.com> |
b7589f7d | 11131 | |
9d200a2e JB |
11132 | * ChangeLog-2007: New ChangeLog rotation. |
11133 | * ChangeLog: Reset for 2008. | |
11134 | * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and | |
11135 | ChangeLog-2007. | |
b7589f7d | 11136 | |
9d200a2e | 11137 | For older changes see ChangeLog-2007. |
c906108c SS |
11138 | \f |
11139 | Local Variables: | |
11140 | mode: change-log | |
11141 | left-margin: 8 | |
11142 | fill-column: 74 | |
11143 | version-control: never | |
57da7796 | 11144 | coding: utf-8 |
c906108c | 11145 | End: |