]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* testsuite/relro_test.sh: Fail if dc is not present.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a0cb7835
JK
12011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4 (dwarf2_add_field): Fix new_field->accessibility for
5 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6
d19f7eee
UW
72011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8
9 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
10 encountering a load via a non-SP register.
11
4a2fbb50
UW
122011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
13
14 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
15 field in returned unwinder.
16
3489610d
JB
172012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18
19 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
20
8c1a34e7
JB
212012-03-21 Joel Brobecker <brobecker@adacore.com>
22
23 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
24 of xmalloc.
25
8fbca658
PA
262012-03-18 Pedro Alves <pedro@codesourcery.com>
27
28 * frame.c (frame_unwind_register): Throw an error if unwinding the
29 register failed.
30 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
31 an unwind stop reason.
32 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
33 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
34 UNWIND_UNAVAILABLE>: New.
35 * inline-frame.c (inline_frame_unwind): Install
36 default_frame_unwind_stop_reason.
37 * frame-unwind.c: Include "exceptions.h".
38 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
39 (default_frame_unwind_stop_reason): New.
40 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
41 (default_frame_unwind_stop_reason): Declare.
42 (struct frame_unwind) <stop_reason>: New function pointer.
43
44 * dummy-frame.c: Install default_frame_unwind_stop_reason.
45 * dwarf2-frame.c: Include exceptions.h.
46 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
47 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
48 computing the CFA. If such an error was thrown, set
49 unavailable_retaddr.
50 (dwarf2_frame_unwind_stop_reason): New.
51 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
52 unavailable.
53 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
54 (dwarf2_signal_frame_unwind): Ditto.
55
56 * amd64-tdep.c: Include "exceptions.h".
57 (struct amd64_frame_cache): New field "base_p".
58 (amd64_init_frame_cache): Clear it.
59 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
60 Avoid reading registers with functions that throw if the register
61 is not necessary to compute the frame base.
62 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
63 swallowing NOT_AVAILABLE_ERROR.
64 (amd64_frame_unwind_stop_reason): New.
65 (amd64_frame_this_id): Don't build a frame id if the frame base
66 was unavailable.
67 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
68 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
69 base_p if the frame base was computable.
70 (amd64_sigtramp_frame_unwind_stop_reason): New.
71 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
72 frame base was unavailable.
73 (amd64_sigtramp_frame_unwind): Install
74 amd64_sigtramp_frame_unwind_stop_reason.
75 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
76 base_p if the frame base was computable.
77 (amd64_epilogue_frame_unwind_stop_reason): New.
78 (amd64_epilogue_frame_this_id): Don't build a frame id if the
79 frame base was unavailable.
80 (amd64_epilogue_frame_unwind): Install
81 amd64_epilogue_frame_unwind_stop_reason.
82 * i386-tdep.c: Include "exceptions.h".
83 (struct i386_frame_cache): New field "base_p".
84 (i386_init_frame_cache): Clear it.
85 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
86 Avoid reading registers with functions that throw if the register
87 is not necessary to compute the frame base.
88 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
89 swallowing NOT_AVAILABLE_ERROR.
90 (i386_frame_unwind_stop_reason): New.
91 (i386_frame_this_id): Don't build a frame id if the frame base was
92 unavailable.
93 (i386_frame_prev_register): Handle unavailable SP.
94 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
95 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
96 base_p if the frame base was computable.
97 (i386_epilogue_frame_unwind_stop_reason): New.
98 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
99 base was unavailable.
100 (i386_epilogue_frame_unwind): Install
101 i386_epilogue_frame_unwind_stop_reason.
102 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
103 base_p if the frame base was computable.
104 (i386_sigtramp_frame_unwind_stop_reason): New.
105 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
106 base was unavailable.
107 (i386_sigtramp_frame_unwind): Install
108 i386_sigtramp_frame_unwind_stop_reason.
109 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
110 type's size, not the register's.
111 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
112
113 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
114 default_frame_unwind_stop_reason.
115 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
116 (alpha_heuristic_frame_unwind): Ditto.
117 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
118 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
119 * avr-tdep.c (avr_frame_unwind): Ditto.
120 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
121 Ditto.
122 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
123 * frv-tdep.c (frv_frame_unwind): Ditto.
124 * h8300-tdep.c (h8300_frame_unwind): Ditto.
125 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
126 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
127 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
128 (hppa_stub_frame_unwind): Ditto.
129 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
130 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
131 (ia64_libunwind_frame_unwind)
132 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
133 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
134 * lm32-tdep.c (lm32_frame_unwind): Ditto.
135 * m32c-tdep.c (m32c_unwind): Ditto.
136 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
137 * m32r-tdep.c (m32r_frame_unwind): Ditto.
138 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
139 * m68k-tdep.c (m68k_frame_unwind): Ditto.
140 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
141 * m88k-tdep.c (m88k_frame_unwind): Ditto.
142 * mep-tdep.c (mep_frame_unwind): Ditto.
143 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
144 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
145 (mips_stub_frame_unwind): Ditto.
146 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
147 * moxie-tdep.c (moxie_frame_unwind): Ditto.
148 * mt-tdep.c (mt_frame_unwind): Ditto.
149 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
150 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
151 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
152 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
153 (s390_sigtramp_frame_unwind): Ditto.
154 * score-tdep.c (score_prologue_unwind): Ditto.
155 * sh-tdep.c (sh_frame_unwind): Ditto.
156 * sh64-tdep.c (sh64_frame_unwind): Ditto.
157 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
158 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
159 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
160 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
161 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
162 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
163 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
164 (sparc64obsd_trapframe_unwind): Ditto.
165 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
166 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
167 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
168 * v850-tdep.c (v850_frame_unwind): Ditto.
169 * vax-tdep.c (vax_frame_unwind): Ditto.
170 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
171 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
172 * xtensa-tdep.c (xtensa_unwind): Ditto.
173
f23d1b92
PA
1742011-03-18 Pedro Alves <pedro@codesourcery.com>
175
176 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
177 there's always a frame. Use get_frame_pc_if_available instead of
178 get_frame_pc, and if there's no PC available, don't look up a
179 symtab.
180
1d4f5741
PA
1812011-03-18 Pedro Alves <pedro@codesourcery.com>
182
183 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
184 unavailable PC.
185
dba09041
PA
1862011-03-18 Pedro Alves <pedro@codesourcery.com>
187
188 * tracepoint.c (set_traceframe_context): Handle unavailable PC
189 gracefully.
190
9a26e44c
PA
1912011-03-18 Pedro Alves <pedro@codesourcery.com>
192
193 * frame.h (frame_unwind_caller_pc_if_available): Declare.
194 * frame.c (frame_unwind_caller_pc_if_available): New.
195 * stack.c (frame_info): Handle unavailable PC.
196
1972011-03-18 Pedro Alves <pedro@codesourcery.com>
198
199 * frame.c (frame_unwind_pc): Rename to ...
200 (frame_unwind_pc_if_available): ... this. New `pc' output
201 parameter. Change return type to int. Gracefully handle
202 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
203 happened, or 1 otherwise.
204 (frame_unwind_pc): Reimplement on top of
205 frame_unwind_pc_if_available.
206 (get_frame_func): Rename to ...
207 (get_frame_func_if_available): New `pc' output parameter. Change
208 return type to int. Gracefully handle the PC not being available.
209 (get_frame_func): Reimplement on top of
210 get_frame_func_if_available.
211 (select_frame): Handle the PC being unavailable.
212 (get_prev_frame): Handle the PC being unavailable.
213 (get_frame_pc_if_available): New.
214 (get_frame_address_in_block_if_available): New.
215 (find_frame_sal): Handle the frame PC not being available.
216 * frame.h (get_frame_pc_if_available): Declare.
217 (get_frame_address_in_block_if_available): Declare.
218 (get_frame_func_if_available): Declare.
219 * stack.c (print_frame_info): Handle the PC being unavailable.
220 (find_frame_funname): Ditto.
221 (print_frame): Handle the PC being unavailable.
222 (get_frame_language): Ditto.
223 * blockframe.c (get_frame_block): Ditto.
224 * macroscope.c (default_macro_scope): Ditto.
225 * tui/tui-stack.c (tui_show_frame_info): Ditto.
226
2272011-03-18 Pedro Alves <pedro@codesourcery.com>
228
229 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
230 NOT_AVAILABLE_ERROR when evaluating the location expression.
231
2322011-03-18 Pedro Alves <pedro@codesourcery.com>
233
234 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
235 returning that the register piece is unavailable/optimized out.
236 (write_pieced_value): Handle get_frame_register_bytes returning
237 that the register piece is unavailable/optimized out when doing a
238 read-modify write of a bitfield.
239 * findvar.c (value_from_register): Handle get_frame_register_bytes
240 returning that the register piece is unavailable/optimized out.
241 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
242 and `unavailablep'. Throw error on bad debug info. Use
243 frame_register instead of frame_register_read, to fill in the new
244 arguments.
245 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
246 and `unavailablep'.
247 * valops.c: (value_assign): Adjust, and handle
248 get_frame_register_bytes failing.
249 * spu-tdep.c: Include exceptions.h.
250 (spu_software_single_step): Adjust, and handle
251 get_frame_register_bytes failing.
252 (spu_get_longjmp_target): Ditto.
253 * gdbarch.sh (register_to_value): Change to return int. New
254 parameters `optimizedp' and `unavailablep'.
255 * gdbarch.h, gdbarch.c: Regenerate.
256 * i386-tdep.c (i386_register_to_value): Adjust to new
257 gdbarch_register_to_value interface.
258 * i387-tdep.c (i387_register_to_value): Ditto.
259 * i387-tdep.h (i387_register_to_value): Ditto.
260 * alpha-tdep.c (alpha_register_to_value): Ditto.
261 * ia64-tdep.c (ia64_register_to_value): Ditto.
262 * m68k-tdep.c (m68k_register_to_value): Ditto.
263 * mips-tdep.c (mips_register_to_value): Ditto.
264 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
265
0fdb4f18
PA
2662011-03-18 Pedro Alves <pedro@codesourcery.com>
267
268 * findvar.c (value_of_register): Mark the value as unavailable, if
269 the register is unavailable.
270 * frame.h (frame_register_unwind): New `unavailablep' parameter.
271 (frame_register): New `unavailablep' parameter.
272 (frame_register_read): Update comment.
273 * frame.c (frame_register_unwind): New `unavailablep' parameter.
274 Set it if the register is unavailable. If the register is
275 unavailable, clear the output buffer.
276 (frame_register): New `unavailablep' parameter. Pass it down.
277 (frame_unwind_register): Adjust.
278 (put_frame_register): Adjust.
279 (frame_register_read): Adjust. Also return false if the register
280 is not available.
281 (frame_register_unwind_location): Adjust.
282 * sentinel-frame.c (sentinel_frame_prev_register): If the register
283 is unavailable, mark the value accordingly.
284 * stack.c (frame_info): Handle unavailable registers.
285
e69aa73e
PA
2862011-03-18 Pedro Alves <pedro@codesourcery.com>
287
288 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
289 simplify, using regcache_cooked_read.
290
05d1431c
PA
2912011-03-18 Pedro Alves <pedro@codesourcery.com>
292
293 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
294 (regcache_raw_read_unsigned, regcache_raw_read_signed)
295 (regcache_raw_read_unsigned, regcache_raw_read_part)
296 (regcache_cooked_read, regcache_cooked_read_signed)
297 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
298 (regcache_cooked_read_ftype): Change return to enum
299 register_status.
300 * regcache.c: Include exceptions.h
301 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
302 (do_cooked_read): Change return to enum register_status. Always
303 forward to regcache_cooked_read.
304 (regcache_raw_read): Change return to enum register_status. If
305 the register is not REG_VALID, memset the buffer. Return the
306 register's status.
307 (regcache_raw_read_signed): Handle non-REG_VALID registers and
308 return the register's status.
309 (regcache_raw_read_unsigned): Ditto.
310 (regcache_cooked_read): Change return to enum register_status.
311 Assert that with read-only regcaches, the register's status must
312 be known. If the regcache is read-only, and the register is not
313 REG_VALID, memset the buffer. Return the register's status.
314 (regcache_cooked_read_signed): Change return to enum
315 register_status. Handle non-REG_VALID registers and return the
316 register's status.
317 (regcache_cooked_read_unsigned): Change return to enum
318 register_status. Handle non-REG_VALID registers and return the
319 register's status.
320 (regcache_xfer_part, regcache_raw_read_part)
321 (regcache_cooked_read_part): Change return to enum
322 register_status. Return the register's status.
323 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
324 unavailable.
325 (regcache_dump): Handle unavailable cooked registers.
326 * frame.c (do_frame_register_read): Adjust interface to match
327 regcache_cooked_read_ftype.
328 * gdbarch.sh (pseudo_register_read): Change return to enum
329 register_status.
330 * gdbarch.h, gdbarch.c: Regenerate.
331
332 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
333 register_status.
334 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
335 register_status. If reading a raw register indicates the raw
336 register is not valid, return the raw register's status,
337 otherwise, return REG_VALID.
338 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
339 register_status. Handle non-REG_VALID raw registers and return
340 the register's status.
341 * arm-tdep.c (arm_neon_quad_read)
342 (arm_pseudo_read): Change return to enum register_status. Handle
343 non-REG_VALID raw registers and return the register's status.
344 * avr-tdep.c (avr_pseudo_register_read): Ditto.
345 * frv-tdep.c (frv_pseudo_register_read): Ditto.
346 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
347 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
348 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
349 register_status.
350 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
351 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
352 (m32c_part_write, m32c_cat_read, m32c_cat_write)
353 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
354 (m32c_pseudo_register_read): Change return to enum
355 register_status. Adjust.
356 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
357 enum register_status. Return the register's status.
358 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
359 register_status. Return the register's status.
360 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
361 * mips-tdep.c (mips_pseudo_register_read): Ditto.
362 * mt-tdep.c (mt_pseudo_register_read): Ditto.
363 * rs6000-tdep.c (move_ev_register_func): New typedef.
364 (e500_move_ev_register): Use it. Change return to enum
365 register_status. Return the register's status.
366 (do_regcache_raw_read): New function.
367 (do_regcache_raw_write): New function.
368 (e500_pseudo_register_read): Change return to enum
369 register_status. Return the register's status. Use
370 do_regcache_raw_read.
371 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
372 (dfp_pseudo_register_read): Change return to enum register_status.
373 Return the register's status.
374 (vsx_pseudo_register_read): Ditto.
375 (efpr_pseudo_register_read): Ditto.
376 (rs6000_pseudo_register_read): Ditto.
377 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
378 register_status. Return the register's status.
379 * sh64-tdep.c (pseudo_register_read_portions): New function.
380 (sh64_pseudo_register_read): Change return to enum
381 register_status. Use pseudo_register_read_portions. Return the
382 register's status.
383 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
384 register_status. Return the register's status.
385 * sh-tdep.c (pseudo_register_read_portions): New function.
386 (sh_pseudo_register_read): Change return to enum register_status.
387 Use pseudo_register_read_portions. Return the register's status.
388 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
389 enum register_status. Return the register's status.
390 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
391 * spu-tdep.c (spu_pseudo_register_read_spu)
392 (spu_pseudo_register_read): Ditto.
393 * xtensa-tdep.c (xtensa_register_read_masked)
394 (xtensa_pseudo_register_read): Ditto.
395 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
396
e10abd8f
PM
3972011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
398
399 * python/py-value.c (valpy_getitem): Fix formatting of error function
400 call.
401
7ea6d463
PM
4022011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
403
404 ARI fixes: Add missing internationalization markups throughout
405 C source files.
406 * darwin-nat-info.c: Ditto.
407 * record.c: Ditto.
408 * remote.c: Ditto.
409 * mi/mi-main.c: Ditto.
410
001083c6
PM
4112011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
412
413 ARI fixes: Add missing internationalization markups throughout
414 yacc files.
415 * c-exp.y: Ditto.
416 * cp-name-parser.y: Ditto.
417 * f-exp.y: Ditto.
418 * m2-exp.y: Ditto.
419 * objc-exp.y: Ditto.
420 * p-exp.y: Ditto.
421
4f1cdeec
PM
4222011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
423
424 ARI fixes: Messages should have no trailing new lines.
425 * darwin-nat.c (mach_check_error): Remove trailing new line from
426 warning function call message.
427 * record.c (bfdcore_read): Idem for error call.
428
28e698f1
PM
4292011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
430
431 * common/signals.c (target_signal_from_host): Add _ markup to error
432 function call message.
433 (target_signal_to_host): Add _ markup and remove trailing new line
434 from warning call message.
435 (target_signal_from_command): Add _ markup to error function call
436 message.
437
99c3dc11
PM
4382011-03-18 Phil Muldoon <pmuldoon@redhat.com>
439
440 PR python/12149
441
442 * python/python.c (gdbpy_write): Accept a stream argument and
443 operate to the appropriate stream.
444 (gdbpy_flush): Likewise.
445 (_initialize_python): Add stream constants.
446 (finish_python_initialization): Add GdbOutputErrorFile class.
447
c20800be
KY
4482011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
449
450 * MAINTAINERS: Add myself as a write-after-approval maintainer.
451
f4a1794a
KY
4522011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
453
454 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
455 to store_signed_integer. Add debug message when relocating CALL
456 instructions. Fix formatting of debug message.
457 * i386-tdep.c (i386_relocate_instruction): Ditto.
458
d4862372
JB
4592011-03-17 Joel Brobecker <brobecker@gnat.com>
460
461 * target.h (struct target_ops): Remove to_lookup_symbol field.
462 (target_lookup_symbol): Delete macro.
463 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
464 (update_current_target, setup_target_debug): Remove handling
465 of to_lookup_symbol target_ops field.
466 * ada-tasks.c (get_known_tasks_addr): Remove use of
467 target_lookup_symbol.
468 * coffread.c (coff_symtab_read): Likewise.
469 * dbxread.c (read_dbx_symtab): Ditto.
470
d645e32e
JB
4712011-03-17 Joel Brobecker <brobecker@gnat.com>
472
473 PR gdb/12116:
474 * configure.ac: Add getthrds declaration check.
475 * configure, config.in: Regenerate.
476 * aix-thread.c (getthrds): Declare only if not already declared
477 in procinfo.h. More declaration out of get_signaled_thread to
478 global scope.
479
29703da4
PM
4802011-03-17 Phil Muldoon <pmuldoon@redhat.com>
481
482 * python/py-symtab.c: Populate symtab_object_methods,
483 sal_object_methods.
484 (stpy_is_valid): New function.
485 (salpy_is_valid): Ditto.
486 * python/py-symbol.c: Declare symbol_object_methods. Populate.
487 (sympy_is_valid): New function.
488 * python/py-objfile.c: Declare objfile_object_methods. Populate.
489 (objfpy_is_valid): New function.
490 * python/py-inferior.c: Populate inferior_object_methods.
491 (infpy_is_valid): New function.
492 * python/py-infthread.c: Populate thread_object_methods.
493 (thpy_is_valid): New function.
494 * python/py-block.c: Declare block_object_methods. Populate. Declare
495 block_iterator_object_methods. Populate.
496 (blpy_is_valid): New function.
497 (blpy_iter_is_valid): Ditto.
498
c00f8484
KS
4992011-03-16 Keith Seitz <keiths@redhat.com>
500
501 * linespec.c (find_methods): Canonicalize NAME before looking
502 up the symbol.
503 (name_end): New function.
504 (keep_name_info): New function.
505 (decode_line_1): Use keep_name_info.
506 (decode_compound): Likewise.
507 * cli/cli-utils.h (remove_trailing_whitespace): New function.
508 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
509
510 PR c++/12273
511 * linespec.c (locate_first_half): Keep overload information, too.
512 (decode_compound): Use a string to represent break characters
513 to escape the loop.
514 If P points to a break character, do not increment it.
515 For C++ and Java, keep overload information and relevant keywords.
516 If we cannot find a symbol, search the minimal symbols.
517
518 PR c++/11734
519 * linespec.c (decode_compound): Rename SAVED_ARG to
520 THE_REAL_SAVED_ARG.
521 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
522 single-quotes.
523 Pass a valid block to lookup_symbol.
524 (lookup_prefix_sym): Likewise.
525 (find_method): Construct search name based on SYM_CLASS instead
526 of SAVED_ARG.
527 * psymtab.c (lookup_partial_symbol): Add language parameter.
528 (lookup_symbol_aux_psymtabs): Likewise.
529 Don't assume that the psymtab we found was the right one. Search
530 for the desired symbol in the symtab to be certain.
531 (psymtab_search_name): New function.
532 (lookup_partial_symbol): Use psymtab_search_name.
533 Add language parameter.
534 (read_symtabs_for_function): Add language parameter and pass to
535 lookup_partial_symbol.
536 (find_symbol_file_from_partial): Likewise.
537
c91513d8
PP
5382011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
539
540 PR gdb/12528
541 * dwarf2read.c (noop_record_line): New function.
542 (dwarf_decode_lines): Ignore line tables for GCd functions.
543
b37520b6
PM
5442011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
545
546 Fix ARI warnings about new lines at the end of messages, which
547 are unneeded as there is a new line added at the end of the message
548 automatically.
549 * darwin-nat.c (darwin_stop_inferior): Ditto.
550 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
551 * dfp.c (decimal_to_number): Ditto.
552 * exec.c (print_section_info): Ditto.
553 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
554 * osdata.c (get_osdata): Ditto.
555 * record.c (bfdcore_write): Ditto.
556 * remote-mips.c (mips_readchar): Ditto.
557 * remote.c (read_ptid): Ditto.
558 * ser-mingw.c (ser_windows_raw): Ditto.
559 * tracepoint.c (add_local_symbols): Ditto.
560 * windows-nat.c (fake_create_process): Ditto.
561
b08ee6a2
TT
5622011-03-16 Tom Tromey <tromey@redhat.com>
563
564 * tracepoint.c (stop_tracing): Don't declare.
565 * event-top.c (after_char_processing_hook): Add `(void)'.
566
9a6f1302
PM
5672011-03-16 Phil Muldoon <pmuldoon@redhat.com>
568
569 * NEWS: Add Parameter sub-classing description.
570
7ceb86b1
KT
5712011-03-16 Kai Tietz <ktietz@redhat.com>
572
573 * MAINTAINERS: Update my e-mail address.
574
efeff6cf
AT
5752011-03-15 Andreas Tobler <andreast@fgznet.ch>
576
577 * MAINTAINERS: Add myself for write after approval privileges.
578
681c238c
MS
5792011-03-15 Michael Snyder <msnyder@vmware.com>
580
f3df5b08
MS
581 * frame.c (find_frame_sal): Assert sym is not null.
582
13f6513c
MS
583 * dbxread.c (process_one_symbol): Assert 'name' is not null.
584
50412521
MS
585 * objc-lang.c (selectors_info): Check strchr for null result.
586
681c238c
MS
587 * stabsread.c (define_symbol): Guard against bad stabstring input.
588
6ced1581
PM
5892011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
590
591 Remove trailing spaces and tabulations from pascal language
592 support sources.
593 p-exp.y: Ditto.
594 p-lang.c: Ditto.
595 p-lang.h: Ditto.
596 p-valprint.c: Ditto.
597
9373cf26
JK
5982011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
599
600 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
601 than LOW. Comment it.
602 (read_partial_die): Call complaint for inappropriate zero LOWPC or
603 HIGHPC not strictly higher than LOWPC.
604
9a1edae6
PM
6052011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
606
607 Fix formatting of function declarations returning a pointer in
608 previous commit.
609 * varobj.c (varobj_add_child): Ditto.
610 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
611 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
612
24e9cda0
UW
6132011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
614
615 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
616 for the "generic" vector ABI used with GCC 4.3 and later.
617 (ppc64_sysv_abi_return_value): Likewise.
618
6192011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
620
621 * infcall.c (call_function_by_hand): Function return value is
622 always a non_lval, even when using struct_return.
623
c9174737
PA
6242011-03-15 Pedro Alves <pedro@codesourcery.com>
625
626 * printcmd.c (ALL_DISPLAYS_SAFE): New.
627 (map_display_numbers): New.
628 (do_delete_display): New.
629 (undisplay_command): Use map_display_numbers.
630 (do_enable_disable_display): New.
631 (enable_disable_display_command): New function.
632 (enable_display): Delete.
633 (enable_display_command): New.
634 (disable_display_command): Reimplement.
635 (_initialize_printcmd): Adjust "enable display" command to use
636 `enable_display_command' as callback.
637
350c6c65
PM
6382011-03-14 Phil Muldoon <pmuldoon@redhat.com>
639
640 * NEWS: Add Python breakpoint 'stop' operation.
641
824446ad
PM
6422011-03-14 Phil Muldoon <pmuldoon@redhat.com>
643
644 * NEWS: Delete duplicate entry. Fix typo.
645
2021ad3a
PM
6462011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
647
648 Fix ARI warning about function names in first column.
649 Put prototype declaration on same line as return type.
650 * objc-exp.y: Ditto.
651 * p-exp.y: Ditto.
652 * python/py-stopevent.h: Ditto.
653 For long function names, split parameters to
654 allow function name on same line as return type.
655 * solib-pa64.c: Ditto.
656 * varobj.c: Ditto.
657 * varobj.h: Ditto.
658 For long function declaration, use single line.
659 * hppa-tdep.h: Ditto.
660 * inferior.h: Ditto.
661
7371cf6d
PM
6622011-03-14 Phil Muldoon <pmuldoon@redhat.com>
663
664 * python/python.h: Declare gdbpy_should_stop and
665 gdbpy_breakpoint_has_py_cond.
666 * python/python.c: Add python.h to includes. Remove python.h from
667 HAVE_PYTHON definition
668 (gdbpy_should_stop): New dummy function.
669 (gdbpy_breakpoint_has_py_cond): New dummy function.
670 * python/py-breakpoint.c (bppy_init): Rewrite to allow
671 sub-classing capabilities.
672 (gdbpy_should_stop): New function.
673 (gdbpy_breakpoint_has_py_cond): New function.
674 (local_setattro): New function.
675 * breakpoint.c (condition_command): Add check for Python 'stop'
676 operation.
677 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
678 operation function as part of stop/continue tests.
679
37b50a69
TT
6802011-03-14 Tom Tromey <tromey@redhat.com>
681
682 PR gdb/12576:
683 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
684 (needs_frame_dwarf_call): Likewise.
685
eeae04df
PM
6862011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
687
688 Fix ARI warning about functions without parameters that do not
689 use (void).
690 * breakpoint.c (all_tracepoints): Replace () by (void).
691 * f-exp.y (match_string_literal): Ditto.
692 (yylex): Ditto.
693 * m2-exp.y (yylex): Ditto.
694 * mep-tdep.c (current_me_module): Ditto.
695 (current_options): Ditto.
696 (current_cop_data_bus_width): Ditto.
697 (current_cr_names): Ditto.
698 (current_cr_is_float): Ditto.
699 (current_ccr_names): Ditto.
700 * objc-exp.y (yylex): Ditto.
701 * p-exp.y (yylex): Ditto.
702 * remote.c (send_interrupt_sequence): Ditto.
703 * tracepoint.c (current_trace_status): Ditto.
704 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
705 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
706
6dc3565d
MS
7072011-03-11 Michael Snyder <msnyder@vmware.com>
708
1427fe5e
MS
709 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
710 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
711 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
712 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
713 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
714
60bc018f
MS
715 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
716 (delete_async_event_handler): Ditto.
717
f3be5b64
MS
718 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
719
4c2d5724
MS
720 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
721
6dc3565d
MS
722 * top.c (set_verbose): Assert showcmd was found.
723
4e6ca6d5
MG
7242011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
725
726 * xtensa-tdep.c (warning_once): Correct style issues.
727
815a83e4
YQ
7282011-03-11 Yao Qi <yao@codesourcery.com>
729
730 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
731
f2eb0bc8
AS
7322011-03-11 Andreas Schwab <schwab@redhat.com>
733
734 * common/aclocal.m4: Remove.
735
b801de47
MG
7362011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
737
738 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
739 (xtensa_write_register, xtensa_read_register): Likewise.
740 (xtensa_hextochar): Removed.
741 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
742
dbab50de
MG
7432011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
744
745 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 746 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
747 (xtensa_alloc_frame_cache): Add initialization for new fields.
748 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
749 (warning_once): New function.
750 (xtensa_insn_kind): New item c0opc_and.
751 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
752 (call0_track_op): Change arguments. New local variable litbase.
753 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
754 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
755 in the prologue.
dbab50de 756 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 757 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
758 Add the variety of updates to handle extended prologues, which now can
759 conduct dynamic stack adjustments.
760 (call0_frame_cache): Likewise.
761 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
762 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
763
b2c04452
MS
7642011-03-10 Michael Snyder <msnyder@vmware.com>
765
f8f67713
MS
766 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
767 (cmd_qtframe): Ditto.
768 (cmd_qtbuffer): Ditto.
769 (cmd_bigqtbuffer): Ditto.
770
197f0a60
TT
7712011-03-10 Tom Tromey <tromey@redhat.com>
772
773 * tracepoint.c (trace_actions_command): Update.
774 * thread.c (thread_apply_command): Update.
775 * reverse.c (delete_bookmark_command): Update.
776 (bookmarks_info): Update.
777 * printcmd.c (undisplay_command): Update.
778 * memattr.c (mem_enable_command): Update.
779 (mem_disable_command): Update.
780 (mem_delete_command): Update.
781 * inferior.c (detach_inferior_command): Update.
782 (kill_inferior_command): Update.
783 (remove_inferior_command): Update.
784 * cli/cli-utils.h (struct get_number_or_range_state): New.
785 (init_number_or_range): Declare.
786 (get_number_or_range): Update.
787 * cli/cli-utils.c (init_number_or_range): New function.
788 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
789 static variables.
790 (number_is_in_list): Update.
791 * breakpoint.h (get_tracepoint_by_number): Update.
792 * breakpoint.c (map_breakpoint_numbers): Update for change to
793 get_number_or_range.
794 (find_location_by_number): Use get_number, not
795 get_number_or_range.
796 (trace_pass_set_count): New function.
797 (trace_pass_command): Update for change to get_number_or_range.
798 Rework loop logic.
799 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
800 'state' parameter.
801
ecec24e6
PM
8022011-03-10 Phil Muldoon <pmuldoon@redhat.com>
803
804 * python/py-param.c (add_setshow_generic): Add set/show callback
805 parameters. Register Python object context.
806 (get_show_value): New function.
807 (get_set_value): New function.
808 (call_doc_function): New function.
809 (get_doc_string): Move behind get_show_value/get_set_value.
810
6d6c6b1f
JK
8112011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
812
813 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
814
68d6df83
MG
8152011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
816
dbab50de 817 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
818 (xtensa_write_register): Likewise.
819 (xtensa_hextochar): Add comment and update to match coding conventions.
820 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
821 (execute_l32e, execute_s32e, execute_code): Update comments.
822 (xtensa_exception_handler_t): Update to match coding conventions.
823 (xtensa_insn_kind): Likewise.
824
85c9d6a6
MS
8252011-03-09 Michael Snyder <msnyder@vmware.com>
826
827 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
828
91495617
PA
8292011-03-09 Pedro Alves <pedro@codesourcery.com>
830
831 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
832
eb8c0621
TT
8332011-03-09 Tom Tromey <tromey@redhat.com>
834
835 * thread.c (restore_selected_frame): Handle frame_level == -1.
836 (make_cleanup_restore_current_thread): Use
837 get_selected_frame_if_set.
838 * frame.h (get_selected_frame_if_set): Declare.
839 * frame.c (get_selected_frame_if_set): New function.
840
9f37bbcc
PA
8412011-03-09 Pedro Alves <pedro@codesourcery.com>
842
843 * cli/cli-cmds.c (shell_escape): Use lbasename.
844 * coffread.c (coff_start_symtab): Constify parameter.
845 (complete_symtab): Constify `name' parameter.
846 (coff_symtab_read): Constify `filestring' local.
847 (coff_getfilename): Constify return and `result' local.
848 Use lbasename.
849 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
850 * linux-fork.c (info_checkpoints_command): Use lbasename.
851 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
852 * minsyms.c (lookup_minimal_symbol): Use lbasename.
853 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
854 * procfs.c (procfs_make_note_section): Use lbasename.
855 * tui/tui-io.c (printable_part): Constity return and parameter.
856 Use lbasename.
857 (print_filename): Constify parameters, and local `s'.
858 (tui_rl_display_match_list): Constify local `temp'.
859
f8de3c55
JK
8602011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
861
862 Revert:
863 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
864 Fix DWARF-3+ DW_AT_accessibility default assumption.
865 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
866 cu->header.version >= 3.
867
d9837b00
YQ
8682011-03-09 Yao Qi <yao@codesourcery.com>
869
870 * common/Makefile.in: Remove.
871 * common/configure: Remove.
872 * common/configure.ac: Remove.
873
e637a4f5
YQ
8742011-03-09 Yao Qi <yao@codesourcery.com>
875
876 Revert:
877 2011-02-11 Yao Qi <yao@codesourcery.com>
878
879 * common/Makefile.in: Add copyright header.
880
881 2011-02-11 Yao Qi <yao@codesourcery.com>
882
883 * Makefile.in: Remove signals.o from COMMON_OBS. Link
884 libcommon.a.
885 * configure.ac: Add common to sub dir.
886 * configure: Regenerate.
887
f976a05d
MG
8882011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
889
890 * xtensa-tdep.c (call0_ret): New function.
891 (xtensa_skip_prologue): Speed up analysis.
892
57041825
MG
8932011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
894
895 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
896 while executing MI command -data-list-changed-registers.
897
08b9c608
MG
8982011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
899
900 * xtensa-tdep.c (xtensa_read_register): New function.
901 (xtensa_write_register): New function.
902 (xtensa_find_register_by_name): New function.
903 (xtensa_windowed_frame_cache): Update comments in type description.
904 (xtensa_frame_cache): Likewise.
905 (xtensa_window_interrupt_insn): New function.
906 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
907 (xtensa_insn_kind): Add new instructions.
908 (rwx_special_register): New function.
909 (call0_classify_opcode): Add new instructions to the analysis.
910 (a0_saved, a7_saved, a11_saved): New variables.
911 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
912 (execute_l32e): New function.
913 (execute_s32e): New function.
914 (xtensa_exception_handler_t): New type.
915 (execute_code): New function.
916 (xtensa_window_interrupt_frame_cache): New function to conduct frame
917 analysis for Xtensa Window Exception handlers.
918
4d1acb11
MG
9192011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
920
98689b25
MG
921 * xtensa-tdep.c (TX_PS): New.
922 (windowing_enabled): Update to count for Call0 ABI.
923 (xtensa_hextochar): New.
924 (xtensa_init_reggroups): Make algorithm generic.
925 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
926
9272011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
928
929 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 930
d3f323f3
MS
9312011-03-08 Michael Snyder <msnyder@vmware.com>
932
3dcabaa8
MS
933 * i386-tdep.c (i386_follow_jump): Check return value of
934 target_read_memory.
935 (i386_analyze_struct_return): Ditto.
936 (i386_skip_probe): Ditto.
937 (i386_match_insn): Ditto.
938 (i386_skip_noop): Ditto.
939 (i386_analyze_frame_setup): Ditto.
940 (i386_analyze_register_saves): Ditto.
941 (i386_skip_prologue): Ditto.
942 (i386_skip_main_prologue): Ditto.
943
13b3fd9b
MS
944 * target.c (read_whatever_is_readable): Fix memory leak.
945
d3f323f3
MS
946 * i386-tdep.c (i386_process_record): Document fall through.
947
421d5c74
JK
9482011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
949
950 Fix DWARF-3+ DW_AT_accessibility default assumption.
951 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
952 cu->header.version >= 3.
953
63154eca
PA
9542011-03-08 Pedro Alves <pedro@codesourcery.com>
955
956 * remote.c (remote_check_symbols): Skip if the target has no
957 execution.
958
f1a507a1
JB
9592011-03-08 Joel Brobecker <brobecker@adacore.com>
960
961 * target.c (read_whatever_is_readable): Reformat comment,
962 with a minor typo fix. Minor reformatting of the code.
963
36073a92
YQ
9642011-03-08 Yao Qi <yao@codesourcery.com>
965
966 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
967 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
968 Use cached result instead of calling displaced_in_arm_mode again.
969 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
970 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
971 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
972 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
973 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
974 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
975 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
976 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
977 (cleanup_block_load_pc, copy_block_xfer): Likewise.
978 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
979 (arm_catch_kernel_helper_return): Likewise.
980 * gdb/arm-tdep.h : Update function declarations.
981
d3f323f3 9822011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 983
e0e40094
MS
984 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
985
0b2381f5
MS
986 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
987
0350914a
MS
988 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
989
69feea6f
MS
990 * elfread.c (elf_symtab_read): Stop memory leak.
991
e6040cbd
MS
992 * main.c (captured_main): Fix memory leak.
993
052874e8
AS
9942011-03-07 Andreas Schwab <schwab@linux-m68k.org>
995
996 * ada-lang.c (compare_names): Call is_name_suffix with string1
997 instead of string2.
998
b11896a5
TT
9992011-03-07 Tom Tromey <tromey@redhat.com>
1000
1001 * xcoffread.c (xcoff_sym_fns): Update.
1002 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
1003 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
1004 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
1005 (symbol_file_add_with_addrs_or_offsets): Likewise.
1006 (reread_symbols): Handle OBJF_PSYMTABS_READ.
1007 * somread.c (som_sym_fns): Update.
1008 * psymtab.h (require_partial_symbols): Declare.
1009 * psymtab.c (require_partial_symbols): New function.
1010 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
1011 (ALL_OBJFILE_PSYMTABS): Undef.
1012 (ALL_PSYMTABS): Move from psympriv.h.
1013 (lookup_partial_symtab, find_pc_sect_psymtab)
1014 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
1015 (find_last_source_symtab_from_partial)
1016 (forget_cached_source_info_partial)
1017 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
1018 (expand_partial_symbol_tables, read_psymtabs_with_filename)
1019 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
1020 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
1021 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
1022 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
1023 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
1024 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
1025 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
1026 psymtabs.
1027 * mipsread.c (ecoff_sym_fns): Update.
1028 * machoread.c (macho_sym_fns): Update.
1029 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
1030 (read_psyms): New function.
1031 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
1032 (elf_sym_fns_lazy_psyms): New global.
1033 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
1034 dwarf2_build_psymtabs.
1035 * dbxread.c (aout_sym_fns): Update.
1036 * coffread.c (coff_sym_fns): Update.
1037
fda326dd
TT
10382011-03-07 Tom Tromey <tromey@redhat.com>
1039
1040 * infrun.c (print_exited_reason): Include inferior id and pid in
1041 message.
1042
aeaec162
TT
10432011-03-07 Tom Tromey <tromey@redhat.com>
1044
1045 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
1046 parameter.
1047 (target_has_execution_1): Update.
1048 (target_has_execution_current): Declare.
1049 (target_has_execution): Call target_has_execution_current.
1050 (default_child_has_execution): Update.
1051 * target.c (default_child_has_execution): Add 'the_ptid'
1052 parameter.
1053 (target_has_execution_1): Likewise.
1054 (target_has_execution_current): New function.
1055 (add_target): Update.
1056 (init_dummy_target): Update.
1057 * remote-m32r-sdi.c (m32r_has_execution): New function.
1058 (init_m32r_ops): Use it.
1059 * record.c (record_core_has_execution): Now static. Add
1060 'the_ptid' parameter.
1061 * inferior.c (have_live_inferiors): Don't save current thread.
1062 Use target_has_execution_1.
1063
08e14083
YQ
10642011-03-07 Yao Qi <yao@codesourcery.com>
1065
1066 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
1067
c05d19c5
JB
10682011-03-07 Joel Brobecker <brobecker@adacore.com>
1069
1070 * elfread.c (elf_symtab_read): Minor reformatting.
1071
3e6ef9e4
JB
10722011-03-07 Joel Brobecker <brobecker@adacore.com>
1073
1074 * objc-lang.c (selectors_info): Minor reformatting.
1075
dbb8534f
JB
10762011-03-07 Joel Brobecker <brobecker@adacore.com>
1077
1078 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
1079
dd70cc93
JB
10802011-03-07 Joel Brobecker <brobecker@adacore.com>
1081 Michael Snyder <msnyder@vmware.com>
1082
1083 * ada-valprint.c (ada_val_print_array): Move the declaration of
1084 "byte_order" and "elttype" inside the block where these variables
1085 are actually used. Remove some special handling for the case
1086 where "elttype" and "eltlen" are null. Replace by a comment
1087 and a couple of assertion checks.
1088
b27cf2b3
MS
10892011-03-05 Michael Snyder <msnyder@vmware.com>
1090
1091 * source.c (add_path): Replace semicolon at end of block.
1092 * dwarf2expr.c (execute_stack_op): Ditto.
1093
5387a0c6
MF
10942011-03-05 Mike Frysinger <vapier@gentoo.org>
1095
1096 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
1097 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
1098 (bfin-*-*): Likewise.
1099
e3aa49af
MS
11002011-03-05 Michael Snyder <msnyder@vmware.com>
1101
82ae4854
MS
1102 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
1103 * mdebugread.c (parse_symbol): Ditto.
1104 * parse.c (parse_exp_in_context): Ditto.
1105 * source.c (add_path): Ditto.
1106 * utils.c (gnu_debuglink_crc32): Ditto.
1107 * varobj.c (variable_language): Ditto.
1108
e3aa49af
MS
1109 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
1110
154f592e
MS
11112011-03-04 Michael Snyder <msnyder@vmware.com>
1112
da3ecdc6
MS
1113 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
1114
9cc89665
MS
1115 * symfile.c (simple_overlay_update): Check for null return value
1116 from lookup_minimal_symbol.
1117
154f592e
MS
1118 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
1119
63ffa6ee
TJB
11202011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1121
1122 * eval.c (parse_and_eval_address_1): Remove function.
1123 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
1124 instead of parse_and_eval_address_1.
1125 * value.h (parse_and_eval_address_1): Remove prototype.
1126
a17d146e
MS
11272011-03-04 Michael Snyder <msnyder@vmware.com>
1128
1129 * remote.c (putpkt_binary): Document that case stmt falls through.
1130
1a6a67de
TJB
11312011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1132
1133 * breakpointc (print_it_typical): Move NULL check from here...
1134 (print_bp_stop_message): ... to here.
1135
488919c4
MS
11362011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1137
1138 * breakpoint.c (enable_command): Use break instead of continue,
1139 and fill in a missing break.
1140 (disable_command): Ditto.
1141
1e182ce8
UW
11422011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1143
1144 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
1145 (terminal_save_ours): Remove misleading comment.
1146 (inflow_inferior_data_cleanup): Free ttystate.
1147 (inflow_inferior_exit): Likewise.
1148 (copy_terminal_info): Copy ttystate.
1149
1150 * serial.c (serial_copy_tty_state): New function.
1151 * serial.h (serial_copy_tty_state): Add prototype.
1152 (struct serial_ops): Add copy_tty_state callback.
1153 * ser-base.c (ser_base_copy_tty_state): New function.
1154 * ser-base.h (ser_base_copy_tty_state): Add prototype.
1155 * ser-go32.c (dos_copy_tty_state): New function.
1156 (dos_ops): Install copy_tty_state callback.
1157 * ser-mingw.c (_initialize_ser_windows): Likewise.
1158 * ser-pipe.c (_initialize_ser_pipe): Likewise.
1159 * ser-unix.c (hardwire_copy_tty_state): New function.
1160 (_initialize_ser_hardwire): Install it.
1161
b2c5f112
MS
11622011-03-04 Michael Snyder <msnyder@vmware.com>
1163
2abae994
MS
1164 * breakpoint.c (create_breakpoint): Add missing break statement.
1165
7f5936f9
MS
1166 Reverting this patch:
1167 * infcall.c (call_function_by_hand): Add break statements for lint.
1168
b2c5f112
MS
1169 Reverting this patch:
1170 * cli/cli-script.c (script_from_file): Add break for lint.
1171
42b1321c
MS
11722011-03-04 Michael Snyder <msnyder@vmware.com>
1173
1174 * solib.c (reload_shared_libraries_1): Close memory leak.
1175
3e2a0cee
TT
11762011-03-03 Tom Tromey <tromey@redhat.com>
1177
1178 PR gdb/12538:
1179 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
1180 DW_STRING is NULL.
1181
58397cb7
MS
11822011-03-03 Michael Snyder <msnyder@vmware.com>
1183
2e3fd767
MS
1184 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
1185 fields of struct 'st' to zero.
1186
58397cb7
MS
1187 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
1188 sal.pspace before calling set_current_source_symtab_and_line.
1189
ced54c8f
YQ
11902011-03-03 Yao Qi <yao@codesourcery.com>
1191
1192 * Makefile.in (configure-common): Remove. Let Makefile
1193 in dir common to rebuild itself.
1194 (common/Makefile): Likewise.
1195
3351ea09
JB
11962011-03-03 Joel Brobecker <brobecker@adacore.com>
1197
1198 * utils.c (parse_escape): Add i18n markup in error message.
1199
bf9f652a
YQ
12002011-03-03 Yao Qi <yao@codesourcery.com>
1201
1202 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
1203 ARM_PC_REGNUM.
1204 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
1205 (displaced_write_reg, displaced_read_reg): Likewise.
1206 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
1207 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1208 (cleanup_branch): Replace magic number 14 and 15 with
1209 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
1210
d42de051
MS
12112011-03-02 Michael Snyder <msnyder@vmware.com>
1212
240f9570
MS
1213 * maint.c (maintenance_do_deprecate): No need to check for NULL.
1214
10dd8b54
MS
1215 * cli/cli-script.c (script_from_file): Add break for lint.
1216
b98bd911
MS
1217 * mdebugread.c (parse_partial_symbols): Fix indent.
1218
3494b66d
MS
1219 * target-descriptions.c (tdesc_gdb_type): No need to call
1220 xstrdup, callee saves a copy.
1221
daac021a
MS
1222 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
1223
c38d16a7
MS
1224 * infcall.c (call_function_by_hand): Add break statements for lint.
1225
905b671b
MS
1226 * utils.c (parse_escape): Escape the escape char.
1227
f2eb0bc8 1228 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
1229 PyList_Append fails.
1230 (gdbpy_inferiors): Error out if build_inferior_list fails.
1231
8c6a60d1
MS
1232 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
1233 a function call.
1234
d42de051
MS
1235 * record.c (record_restore): Move printf to before error return.
1236
4db71c0b
YQ
12372011-03-02 Yao Qi <yao@codesourcery.com>
1238
1239 * arm-tdep.h (struct displaced_step_closure): Add two new fields
1240 is_thumb and insn_size.
1241 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
1242 on both ARM and Thumb mode.
1243 (arm_process_displaced_insn): Set is_thumb and insn_size.
1244 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
1245 (arm_displaced_step_fixup): Likewise.
1246
a9dc8dcc
MS
12472011-03-01 Michael Snyder <msnyder@vmware.com>
1248
53624a93
MS
1249 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
1250
77766669
MS
1251 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
1252
62d5b8da
MS
1253 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
1254
5e9e105f
MS
1255 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
1256
dc19db01
MS
1257 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
1258 with xmalloc.
1259
5ce64950
MS
1260 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
1261 which shadows function parameter.
1262
a0aa2878
MS
1263 * tracepoint.c (create_tsv_from_upload): Superfluous call
1264 to xstrdup. Callee already calls xstrdup.
1265
e325fb69
MS
1266 * linespec.c (decode_line_1): Remove unnecessary null check.
1267
21cbba77
MS
1268 * tracepoint.c (scope_info): Fix mem leak, remove underused
1269 variable.
1270
63360adc
MS
1271 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
1272 superfluous null check.
1273
18ea20ac 1274 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 1275 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 1276
d014929c
MS
1277 * event-top.c (display_gdb_prompt): Remove superfluous null check.
1278
6e9130cf
MS
1279 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
1280 be null.
1281
5f01dbc0
MS
1282 * linespec.c (decode_line_1): Check for null before dereference.
1283
d684ab85
MS
1284 * reverse.c (record_restore): Move null-check to before pointer
1285 dereference.
1286
bfffb7e3
MS
1287 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
1288
a9dc8dcc
MS
1289 * objc-lang.c (selectors_info): Add explanitory comment.
1290 (classes_info): Ditto.
1291
478fd957
UW
12922011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1293
1294 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
1295 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
1296 versions of the trampoline. Handle Thumb vs. ARM addresses.
1297 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
1298 (arm_linux_init_abi): Install it.
1299 * arm-tdep.c (arm_psr_thumb_bit): Make global.
1300 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
1301
0480cefa
MS
13022011-02-28 Michael Snyder <msnyder@vmware.com>
1303
ac50ab3b
MS
1304 * ui-out.c (ui_out_field_core_addr): Make local char buffer
1305 a little bigger, to avoid possibility of an overflow.
1306
f63fbe86
MS
1307 * breakpoint.c (breakpoint_adjustment_warning): Make local char
1308 buffers a little bigger, to avoid possibility of an overflow.
1309
9e91a352
MS
1310 * coffread.c (coff_getfilename): Add check to avoid overflow.
1311
f2eb0bc8 1312 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
1313 avoid overflow.
1314 (classes_info): Error out on too long REGEXP.
1315
098ab512
MS
1316 * infrun.c (handle_inferior_event): Remove unused function call.
1317
bcbd1de9
MS
1318 * fork-child.c (fork_inferior): Remove ifdef'd code and
1319 unused variable.
1320
2e456570
MS
1321 * linux-thread-db.c (attach_thread): Discard unused value.
1322
14571dad
MS
1323 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
1324
a9cbf802
MS
1325 * remote.c (remote_get_noisy_reply): Discard unused value.
1326 (remote_vcont_resume): Ditto.
1327 (remote_stop_ns): Ditto.
1328
5715d26e
MS
1329 * linespec.c (decode_objc): Delete unused variable.
1330
4a9bca80
MS
1331 * tui/tui-regs.c (tui_register_format): Delete unused variable.
1332
f47fb265
MS
1333 * dwarf2read.c (add_partial_symbol): Discard unused values.
1334 (read_base_type): Delete unused variable.
1335
e81cff30
MS
1336 * dbxread.c (read_dbx_symtab): Discard unused value.
1337
262acaeb
MS
1338 * eval.c (evaluate_subexp_standard): Delete unused variable,
1339 and discard unused values.
1340
df983543
MS
1341 * infcmd.c (_initialize_infcmd): Discard unused values.
1342
89acf84d
MS
1343 * stabsread.c (rs6000_builtin_type): Missing break statement.
1344
ab8b8aca
MS
1345 * dbxread.c (process_one_symbol): Discard unused value.
1346
6b4511ab
MS
1347 * coffread.c (coff_end_symtab): Delete unused variable.
1348
e8e80198
MS
1349 * dwarf2read.c (dw2_get_file_names): Discard unused value.
1350 (dwarf2_add_typedef): Delete unused variable.
1351 (read_namespace): Ditto.
1352 (dwarf_decode_macros): Ditto.
1353
976aa66e
MS
1354 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
1355
5b92b49f
MS
1356 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
1357
91e8df85
MS
1358 * p-valprint.c (pascal_val_print): Discard unused value.
1359
899500d6
MS
1360 * utils.c (nquery): Call va_end before return;
1361 (yquery): Ditto.
1362 (query): Ditto.
1363
0480cefa
MS
1364 * proc-service.c (ps_plog): Call va_end before return.
1365
fb6a3ed3
TT
13662011-02-28 Tom Tromey <tromey@redhat.com>
1367
1368 * python/python.c (gdbpy_value_cst): New global.
1369 (_initialize_python): Initialize it.
1370 * python/python-internal.h (gdbpy_value_cst): Declare.
1371 * python/py-value.c (convert_value_from_python): Use
1372 gdbpy_value_cst.
1373
c05202a1
MS
13742011-02-28 Michael Snyder <msnyder@vmware.com>
1375
e463f587
MS
1376 * python/py-cmd.c (cmdpy_init): Fix memory leak.
1377
c38eea1a
MS
1378 * breakpoint.c (catch_syscall_completer): Free malloced list.
1379
3ef09ab5
MS
1380 * jv-lang.c (java_primitive_type_from_name): Add missing break.
1381
8f9a01ee
MS
1382 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
1383 (lval_func_check_synthetic_pointer): Ditto.
1384 (lval_func_free_closure): Fix use-after-free.
c05202a1 1385
477d0d57
TT
13862011-02-28 Tom Tromey <tromey@redhat.com>
1387
1388 * psymtab.c (expand_partial_symbol_tables): Use
1389 ALL_OBJFILE_PSYMTABS.
1390
20937029
JK
13912011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1392
1393 * objc-lang.c (selectors_info): Error on too long REGEXP.
1394
907b7f4f
MS
13952011-02-28 Michael Snyder <msnyder@vmware.com>
1396
92e96192
MS
1397 * python/py-param.c (set_parameter_value): Add missing
1398 break statement.
1399
907b7f4f
MS
1400 * linux-record.c (record_linux_system_call): Add missing
1401 break statement.
1402
12c5a436
UW
14032011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1404
1405 * breakpoint.c (print_one_breakpoint_location): Remove unused
1406 argument PRINT_ADDRESS_BITS. Update callers.
1407 (print_one_breakpoint): Likewise.
1408
170b53b2
UW
14092011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1410
1411 * breakpoint.c (wrap_indent_at_field): New function.
1412 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
1413 Allocate ui_stream locally instead of using STB argument.
1414 (print_one_breakpoint_location): Update call.
1415 * ui-out.c (ui_out_query_field): New function.
1416 * ui-out.h (ui_out_query_field): Add prototype.
1417
8ab1f94d
JB
14182011-02-28 Joel Brobecker <brobecker@adacore.com>
1419
1420 From Michael Snyder <msnyder@vmware.com>
1421 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
1422
7d488639
MS
14232011-02-27 Michael Snyder <msnyder@vmware.com>
1424
ae179fba
MS
1425 * objc-lang.c (selectors_info): Prevent string overrun.
1426
086dbf66
MS
1427 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
1428 error in strncpy.
1429
f2eb0bc8 1430 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
1431 outer scope.
1432
7d488639
MS
1433 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
1434 param with a local variable of the same name.
1435
3bd0f5ef
MS
14362011-02-27 Michael Snyder <msnyder@vmware.com>
1437
1438 * value.c (value_from_history_ref): New function.
1439 * value.h (value_from_history_ref): Export.
1440 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
1441 to parse value history references.
1442 * cli/cli-utils.h (get_number_trailer): Update comment.
1443
14442011-02-27 Michael Snyder <msnyder@vmware.com>
1445
1446 * inferior.c (detach_inferior_command): Use get_number_or_range.
1447 (kill_inferior_command): Ditto.
1448 (remove_inferior_command): Ditto.
1449 (initialize_inferiors): Make command names plural.
1450 Update help strings.
1451
766062f6
MS
14522011-02-27 Michael Snyder <msnyder@vmware.com>
1453
1454 * darwin-nat-info.c: Fix comment typo.
1455 * dwarf2expr.h: Ditto.
1456 * fbsd-nat.c: Ditto.
1457 * fbsd-nat.h: Ditto.
1458 * frame-unwind.h: Ditto.
1459 * frame.h: Ditto.
1460 * hppa-hpux-tdep.c: Ditto.
1461 * i386-linux-nat.c: Ditto.
1462 * linux-nat.c: Ditto.
1463 * nbsd-nat.c: Ditto.
1464 * nbsd-nat.h: Ditto.
1465 * ppc-linux-tdep.c: Ditto.
1466 * serial.c: Ditto.
1467 * ui-file.h: Ditto.
1468 * tui/tui-winsource.c: Ditto.
1469
f2c4ead5
MS
14702011-02-26 Michael Snyder <msnyder@vmware.com>
1471
86b887df
MS
1472 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
1473
66fd3b1e
MS
1474 * maint.c (maintenance_do_deprecate): Plug a memory leak.
1475
8c814cdd
MS
1476 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
1477 with a local variable of the same name.
1478
6d5e094a 1479 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 1480 param with a local variable of the same name.
6d5e094a 1481 (i387_supply_xsave): Ditto.
e5b3d7d6 1482
5eee517d
MS
1483 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
1484 that it does not shadow a function parameter.
1485
8fbf6b93
MS
1486 * i386-nat.c (i386_length_and_rw_bits): Document that case
1487 statement is meant to fall through.
1488
cb969d61
MS
1489 * expprint.c (dump_subexp_body_standard): Document that case
1490 statement is meant to fall through.
1491
f2c4ead5
MS
1492 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
1493 dead if statement. Condition can't be false.
1494
b021a221
MS
14952011-02-25 Michael Snyder <msnyder@vmware.com>
1496
1497 * arm-tdep.c: Fix typos in comments.
1498 * bsd-uthread.c: Ditto.
1499 * completer.c: Ditto.
1500 * corelow.c: Ditto.
1501 * cp-namespace.c: Ditto.
1502 * cp-support.c: Ditto.
1503 * cris-tdep.c: Ditto.
1504 * dbxread.c: Ditto.
1505 * dwarf2read.c: Ditto.
1506 * frame.h: Ditto.
1507 * gdbtypes.h: Ditto.
1508 * inferior.h: Ditto.
1509 * mdebugread.c: Ditto.
1510 * mips-tdep.c: Ditto.
1511 * ppc-linux-nat.c: Ditto.
1512 * ppc-linux-tdep.c: Ditto.
1513 * printcmd.c: Ditto.
1514 * sol-thread.c: Ditto.
1515 * solib-frv.c: Ditto.
1516 * solist.h: Ditto.
1517 * sparc64-tdep.c: Ditto.
1518 * spu-tdep.c: Ditto.
1519 * stabsread.c: Ditto.
1520 * symfile.c: Ditto.
1521 * valops.c: Ditto.
1522 * varobj.c: Ditto.
1523 * vax-nat.c: Ditto.
1524 * python/py-block.c: Ditto.
1525 * python/py-symbol.c: Ditto.
1526 * python/py-symtab.c: Ditto.
1527 * python/py-value.c: Ditto.
1528 * tui/tui-win.c: Ditto.
1529
c82c0b55
MS
15302011-02-25 Michael Snyder <msnyder@vmware.com>
1531
1532 * inferior.c (print_inferior): Accept a string instead of an int
1533 for requested_inferiors, and use get_number_or_range to parse it.
1534 (info_inferiors_command): Pass args string to print_inferior.
1535 (initialize_inferiors): Change help string for info inferiors.
1536 * inferior.h (print_inferior): Export prototype change.
1537
ee00cd23
TT
15382011-02-25 Tom Tromey <tromey@redhat.com>
1539
1540 * common/ax.def (invalid2): Set to 0x31.
1541
0502ed8c
JK
15422011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1543
1544 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
1545 L and plongest.
1546 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
1547 use L and plongest.
1548 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
1549
2c9de912
MS
15502011-02-24 Michael Snyder <msnyder@vmware.com>
1551
1552 * Makefile.in (clean): Make clean should remove generated files
1553 observer.h and observer.inc.
1554
a04b0428
JB
15552011-02-24 Joel Brobecker <brobecker@adacore.com>
1556
1557 Revert the following patch (not approved yet):
1558 2011-02-21 Hui Zhu <teawater@gmail.com>
1559 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
1560 * ax-gdb.c (gen_printf_expr_callback): New function.
1561 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
1562 * ax-general.c (ax_memcpy): New function.
1563 (ax_print): Handle "printf".
1564 (ax_reqs): Ditto.
1565 * ax.h (ax_memcpy): Forward declare.
1566 * common/ax.def (invalid2): Removed.
1567 (printf): New entry.
1568 * printcmd.c (printcmd.h): New include.
1569 (string_printf): New function.
1570 (ui_printf): Removed.
1571 (printf_command): Remove static. Call string_printf.
1572 (eval_command): Call string_printf.
1573 * printcmd.h: New file.
1574 * tracepoint.c (validate_actionline,
1575 encode_actions_1): handle printf_command.
1576
2b52013f
TT
15772011-02-23 Tom Tromey <tromey@redhat.com>
1578
1579 * ax-general.c (ax_pick): Add missing newline.
1580
e5a67952
MS
15812011-02-23 Michael Snyder <msnyder@vmware.com>
1582
1583 * breakpoint.c (breakpoint_1): Change first argument from an int
1584 to a char pointer, so that the function now accepts a list of
f2eb0bc8 1585 breakpoints rather than just one. Use new function
e5a67952
MS
1586 'number_is_in_list' to implement.
1587 (breakpoints_info): Pass char * instead of int to breakpoint_1.
1588 (watchpoints_info): Ditto.
1589 (tracepoints_info): Ditto.
1590 (maintenance_info_breakpoints): Ditto.
1591 (_initialize_breakpoint): Update help strings to reflect the fact
1592 that these functions can now take more than one argument.
1593 * cli/cli-utils.c (number_is_in_list): New function.
1594 * cli/cli-utils.h (number_is_in_list): Export.
1595
15962011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
1597
1598 * memattr.c (mem_enable_command): Use get_number_or_range.
1599 (mem_disable_command): Ditto.
1600 (mem_delete_command): Ditto.
1601 (_initialize_mem): Tweak usage message to reflect multiple
1602 arguments.
1603
6e6fbe60
DE
16042011-02-22 Doug Evans <dje@google.com>
1605
1606 Add gdb.lookup_global_symbol python function.
1607 * NEWS: Add entry.
1608 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
1609 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
1610 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
1611
79b97fa8
TT
16122011-02-22 Tom Tromey <tromey@redhat.com>
1613
1614 * language.c (language_class_name_from_physname): Rename
1615 'curr_language' argument to 'lang'; use in body.
1616
298f437a
MS
16172011-02-22 Michael Snyder <msnyder@vmware.com>
1618
1619 * cli/cli-utils.c (number_is_in_list): Check for zero return.
1620
b7ea3126
PA
16212011-02-22 Pedro Alves <pedro@codesourcery.com>
1622
1623 * frame-unwind.h: Fix comment to mention the this frame, not the
1624 next.
1625
58ee6d60
TT
16262011-02-22 Tom Tromey <tromey@redhat.com>
1627
1628 * symfile.c (auto_solib_limit): Remove.
1629 * symfile.h (auto_solib_limit): Remove.
1630
36238dbc
JB
16312011-02-22 Joel Brobecker <brobecker@adacore.com>
1632
1633 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
1634
aea5b279
MS
16352011-02-21 Michael Snyder <msnyder@vmware.com>
1636
1637 * gdbthread.h (print_thread_info): Change prototype.
1638 * thread.c (print_thread_info): Accept char* instead of int for
1639 requested_threads argument. Use new function number_is_in_list
1640 to determine which threads to list.
1641 (info_threads_command): Pass char* to print_thread_info.
1642 * cli/cli-utils.c (number_is_in_list): New function.
1643 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 1644 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
1645 print_thread_info.
1646 (print_one_inferior): Ditto.
1647 (mi_cmd_list_thread_groups): Ditto.
1648
8caa75ee
JK
16492011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1650
1651 * common/Makefile.in (CFLAGS): New.
1652 (COMPILE): Add $(CFLAGS).
1653
ea666128
TT
16542011-02-21 Tom Tromey <tromey@redhat.com>
1655
1656 * breakpoint.c (catch_syscall_command_1): Fix typo.
1657
e9cafbcc
TT
16582011-02-21 Tom Tromey <tromey@redhat.com>
1659
1660 * reverse.c: Include cli-utils.h.
1661 * printcmd.c: Include cli-utils.h.
1662 (string_printf): Use skip_spaces.
1663 * cli/cli-utils.h: New file.
1664 * cli/cli-utils.c: New file.
1665 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
1666 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
1667 * breakpoint.h (get_number, get_number_or_range): Move to
1668 cli-utils.h.
1669 * breakpoint.c: Include cli-utils.h.
1670 (get_number_trailer, get_number, get_number_or_range)
1671 (ep_skip_leading_whitespace): Move to cli-utils.c.
1672 (create_breakpoint_sal, find_condition_and_thread)
1673 (decode_static_tracepoint_spec, watch_command_1)
1674 (watch_maybe_just_location, ep_parse_optional_if_clause)
1675 (catch_fork_command_1, catch_exec_command_1)
1676 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
1677 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
1678 (SUBDIR_CLI_SRCS): Add cli-utils.c.
1679 (HFILES_NO_SRCDIR): Add cli-utils.h.
1680 (cli-utils.o): New target.
1681
f67fd822
PM
16822011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1683
1684 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
1685 before calling discard_all_inferiors.
1686
c9def01d
UW
16872011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
1688
1689 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
1690 (struct builtin_opencl_type): Remove.
1691 (builtin_opencl_type): Change return type to "struct type **".
1692 (lookup_opencl_vector_type): Update caller.
1693 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
1694 (build_opencl_types): Install plain array of "struct type *"
1695 instead of "struct builtin_opencl_type".
1696
e3039479
UW
16972011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1698 Ulrich Weigand <uweigand@de.ibm.com>
1699
1700 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
1701 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
1702 (struct arm_linux_hwbp_cap): New type.
1703 (arm_linux_get_hwbp_cap): New function.
1704 (arm_linux_get_hw_breakpoint_count): Likewise.
1705 (arm_linux_get_hw_watchpoint_count): Likewise.
1706 (arm_linux_can_use_hw_breakpoint): Likewise.
1707 (arm_hwbp_type): New type.
1708 (arm_hwbp_control_t): Likewise.
1709 (struct arm_linux_hw_breakpoint): Likewise.
1710 (struct arm_linux_thread_points): Likewise.
1711 (arm_threads): New global variable.
1712 (arm_linux_find_breakpoints_by_tid): New function.
1713 (arm_hwbp_control_initialize): Likewise.
1714 (arm_hwbp_control_is_enabled): Likewise.
1715 (arm_hwbp_control_disable): Likewise.
1716 (arm_linux_hw_breakpoint_initialize): Likewise.
1717 (arm_linux_get_hwbp_type): Likewise.
1718 (arm_linux_hw_watchpoint_initialize): Likewise.
1719 (arm_linux_hw_breakpoint_equal): Likewise.
1720 (arm_linux_insert_hw_breakpoint1): Likewise.
1721 (arm_linux_remove_hw_breakpoint1): Likewise.
1722 (arm_linux_insert_hw_breakpoint): Likewise.
1723 (arm_linux_remove_hw_breakpoint): Likewise.
1724 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
1725 (arm_linux_insert_watchpoint): Likewise.
1726 (arm_linux_remove_watchpoint): Likewise.
1727 (arm_linux_stopped_data_address): Likewise.
1728 (arm_linux_stopped_by_watchpoint): Likewise.
1729 (arm_linux_watchpoint_addr_within_range): Likewise.
1730 (arm_linux_new_thread): Likewise.
1731 (arm_linux_thread_exit): Likewise.
1732 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
1733 related target callbacks. Register arm_linux_new_thread and
1734 arm_linux_thread_exit.
1735 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
1736 * arm-tdep.c (arm_pc_is_thumb): Make global.
1737 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
1738
b5db5dfc
UW
17392011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
1740
1741 * breakpoint.c (update_watchpoint): Do not attempt to recreate
1742 per-frame locations while within a function epilogue.
1743
e25b2cfa
PM
17442011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
1745
1746 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
1747 to GNU coding standards.
1748
4af53f97
PM
17492011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
1750
1751 Allow use of mingw native on Windows 95 OS.
e25b2cfa 1752 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
1753 (ser_windows_close): Only call CancelIo if function exists.
1754 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
1755 to check for existence of CancelIo function in kernel32 DLL.
1756
d0e92d82
HZ
17572011-02-21 Hui Zhu <teawater@gmail.com>
1758
1759 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
1760 * ax-gdb.c (gen_printf_expr_callback): New function.
1761 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
1762 * ax-general.c (ax_memcpy): New function.
1763 (ax_print): Handle "printf".
1764 (ax_reqs): Ditto.
1765 * ax.h (ax_memcpy): Forward declare.
1766 * common/ax.def (invalid2): Removed.
1767 (printf): New entry.
1768 * printcmd.c (printcmd.h): New include.
1769 (string_printf): New function.
1770 (ui_printf): Removed.
1771 (printf_command): Remove static. Call string_printf.
1772 (eval_command): Call string_printf.
1773 * printcmd.h: New file.
1774 * tracepoint.c (validate_actionline,
1775 encode_actions_1): handle printf_command.
1776
7d357efd
MS
17772011-02-19 Michael Snyder <msnyder@vmware.com>
1778
1779 * reverse.c (delete_one_bookmark): Argument is now bookmark
1780 id rather than pointer to bookmark struct.
1781 (delete_bookmark_command): Use get_number_or_range.
1782 (goto_bookmark_command): Parse with get_number instead of strtoul.
1783 (bookmark_1): New function. Print info for one bookmark.
1784 (bookmarks_info): Use get_number_or_range and bookmark_1.
1785
7a45ebd7
MS
17862011-02-18 Michael Snyder <msnyder@vmware.com>
1787
f2eb0bc8 1788 * thread.c (info_threads_command): Re-implement using
7a45ebd7 1789 get_number_or_range.
65ebfb52 1790 (thread_apply_command): Ditto.
7a45ebd7 1791
94d5e490
TT
17922011-02-18 Tom Tromey <tromey@redhat.com>
1793
1794 * common/ax.def: New file.
1795 * ax.h (enum agent_op): Use ax.def.
1796 * ax-general.c (aop_map): Use ax.def.
1797
c7f96d2b
TT
17982011-02-18 Tom Tromey <tromey@redhat.com>
1799
1800 * ax-general.c (aop_map): Add pick and rot.
1801 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
1802 <DW_OP_rot>: Implement.
1803 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
1804 (ax_pick): Declare.
1805 * ax-general.c (ax_pick): New function.
1806
66694b75
TT
18072011-02-18 Tom Tromey <tromey@redhat.com>
1808
1809 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
1810
eeaafae2
JK
18112011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1812 Tom Tromey <tromey@redhat.com>
1813
1814 * cp-support.c (make_symbol_overload_list_namespace): Do not call
1815 make_symbol_overload_list_block with NULL BLOCK.
1816 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
1817
3c3fe74c
PA
18182011-02-18 Pedro Alves <pedro@codesourcery.com>
1819
1820 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
1821 * breakpoint.h (get_number_or_range): Declare.
1822 * printcmd.c (ALL_DISPLAYS): Declare.
1823 (delete_display): Reimplement taking a display pointer.
1824 (undisplay_command): Accept a range of displays to delete, using
1825 get_number_or_range.
1826
13163d80
PM
18272011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1828
1829 * c-valprint.c (c_val_print): Add embedded_offset to address
1830 for arrays of unspecified length.
1831 * p-valprint.c (pascal_val_print): Likewise.
1832
b434a28f
YQ
18332011-02-18 Yao Qi <yao@codesourcery.com>
1834
1835 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
1836 (arm_process_displaced_insn): .. here. Remove parameter INSN.
1837 (thumb_process_displaced_insn): New.
1838 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
1839 call to arm_process_displaced_insn.
1840 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
1841
9f6f94ff
TT
18422011-02-17 Tom Tromey <tromey@redhat.com>
1843
1844 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
1845 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
1846 compile_dwarf_to_ax. No longer static. Call
1847 dwarf2_compile_cfa_to_ax.
1848 (locexpr_tracepoint_var_ref): Update.
1849 (loclist_tracepoint_var_ref): Update.
1850 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
1851 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
1852 argument; add 'gdbarch' and 'pc'.
1853 (dwarf2_compile_cfa_to_ax): New function.
1854 (dwarf2_frame_cache): Update.
1855
e67ad678
JB
18562011-02-17 Joel Brobecker <brobecker@adacore.com>
1857
1858 * ada-lang.c (ada_type_of_array): Fix the size of the array
1859 in the case of an unconstrained packed array.
1860
946ebb0d
YQ
18612011-02-17 Yao Qi <yao@codesourcery.com>
1862
1863 * common/Makefile.in: Add more targets for make.
1864
1ba1b353
TT
18652011-02-16 Tom Tromey <tromey@redhat.com>
1866
1867 * dwarf2loc.c (unimplemented): Fix typo.
1868
b1bfef65
TT
18692011-02-16 Tom Tromey <tromey@redhat.com>
1870
1871 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
1872 (compile_dwarf_to_ax) <default>: Use unimplemented.
1873 <DW_OP_deref>: Update.
1874 (disassemble_dwarf_expression): Update.
1875 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
1876 (decode_locdesc): Update.
1877 * dwarf2expr.h (dwarf_stack_op_name): Update.
1878
5f1e6f19
TT
18792011-02-16 Tom Tromey <tromey@redhat.com>
1880
1881 * ax.h (struct aop_map) <name>: Now const.
1882
a0c78a73
PA
18832011-02-16 Tom Tromey <tromey@redhat.com>
1884
1885 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
1886 than axs_rvalue.
1887
946ebb0d 18882011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
1889
1890 * infrun.c (get_displaced_step_closure_by_addr): New.
1891 * inferior.h: Declare it.
1892 * arm-tdep.c: (arm_pc_is_thumb): Call
1893 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
1894 returns non-NULL.
1895
08807d5a
PA
18962011-02-16 Pedro Alves <pedro@codesourcery.com>
1897 Jan Kratochvil <jan.kratochvil@redhat.com>
1898
1899 gdb/
1900 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
1901
29976f3f
PA
19022011-02-16 Pedro Alves <pedro@codesourcery.com>
1903 Jan Kratochvil <jan.kratochvil@redhat.com>
1904
1905 * value.c (value_contents_copy_raw): Extend describing comment.
1906 Assert that the destination contents we're overwriting are wholly
1907 available.
fb68ae73 1908 (value_contents_copy): Extend describing comment.
29976f3f 1909
cd24cfaa
PA
19102011-02-16 Pedro Alves <pedro@codesourcery.com>
1911 Jan Kratochvil <jan.kratochvil@redhat.com>
1912
1913 * value.c (value_available_contents_eq): Remove redundant local
1914 variables. Fix available contents comparision.
1915 * value.h (value_available_contents_eq): Extend describing
1916 comment.
1917
60bbf338
YQ
19182011-02-16 Yao Qi <yao@codesourcery.com>
1919
1920 * thread.c (info_threads_command): Add missing i18n markup and remove
1921 trailing newline.
1922
17450429
PP
19232011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
1924
1925 * breakpoint.c (longjmp_names): New variable.
1926 (struct breakpoint_objfile_data): New type.
1927 (breakpoint_objfile_key): New variable.
1928 (msym_not_found): New variable.
1929 (msym_not_found_p): New predicate.
1930 (get_breakpoint_objfile_data): New function.
1931 (create_overlay_event_breakpoint): Check per-objfile cache for
1932 symbols first.
1933 (create_longjmp_master_breakpoint): Likewise.
1934 (create_std_terminate_master_breakpoint): Likewise.
1935 (create_exception_master_breakpoint): Likewise.
1936 (_initialize_breakpoint): Register per-objfile data key.
1937
af02033e
PP
19382011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
1939
1940 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
1941 parameter value.
1942 (create_longjmp_master_breakpoint): Loop over longjmp names.
1943 (create_std_terminate_master_breakpoint): Const-propagate parameter
1944 value.
1945 (update_breakpoints_after_exec): Adjust.
1946 (breakpoint_re_set): Adjust.
1947
60f98dde
MS
19482011-02-15 Michael Snyder <msnyder@vmware.com>
1949
cdf99611
MS
1950 * thread.c (info_threads_command): Process arg as thread id,
1951 or list of thread ids.
1952 (thread_find_command): New command.
1953 (_initialize_thread): Document argument for info threads.
1954 Document 'thread find' command.
1955 * NEWS: Document new command "thread find".
60f98dde 1956
0feedb2c
JK
19572011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1958
1959 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
1960 * aclocal.m4: Regenerated with aclocal-1.11.1.
1961 * common/configure: Regenerate with autoconf-2.64.
1962
648cd113
KW
19632011-02-15 Ken Werner <ken.werner@de.ibm.com>
1964
1965 * opencl-lang.c (build_opencl_types): Set the size of the built-in
1966 bool data type to a size of one byte.
1967
5657161f
PA
19682011-02-15 Pedro Alves <pedro@codesourcery.com>
1969 Jan Kratochvil <jan.kratochvil@redhat.com>
1970
1971 * target.c (memory_xfer_live_readonly_partial): Document where to
1972 look for interface description.
1973
494e194e
YQ
19742011-02-15 Yao Qi <yao@codesourcery.com>
1975
1976 PR tdep/12352
1977 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
1978 order to store PC value on stack instead of text section.
1979
d9492458
TJB
19802011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1981
1982 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
1983 the EFP register set size.
1984 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
1985 data from the VMX register.
1986 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
1987 and write data from/to the VMX register.
1988
cdf99611
MS
19892011-02-14 Michael Snyder <msnyder@vmware.com>
1990
1991 * command.h (enum command_class): New class 'no_set_class', for
1992 "show" commands without a corresponding "set" command.
1993 * value.c (_initialize_values): Use 'no_set_class' for "show values".
1994 * copying.c (_initialize_copying): Ditto for "show copying" and
1995 "show warranty".
1996 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
1997 "show version".
1998 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
1999 which there is no corresponding "set" command (eg. "show copying").
2000
424447ee
PA
20012011-02-14 Pedro Alves <pedro@codesourcery.com>
2002 Jan Kratochvil <jan.kratochvil@redhat.com>
2003
2004 * exec.c (section_table_available_memory): Change `len' parameter
2005 type to ULONGEST.
2006 * exec.h (section_table_available_memory): Ditto.
2007 * value.h (read_value_memory): Rename the `offset' parameter to
2008 `embedded_offset'.
2009
c0f61f9c 20102011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 2011 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
2012
2013 * memrange.c (compare_mem_ranges): Mention sort order in
2014 describing comment.
2015 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
2016 * tracepoint.c (traceframe_available_memory): Extend comment to
2017 mention what happens to RESULT when the target does not support
2018 the query.
2019
6bfc80c7
PA
20202011-02-14 Pedro Alves <pedro@codesourcery.com>
2021 Jan Kratochvil <jan.kratochvil@redhat.com>
2022
2023 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
2024 range.
2025
e7303042
PA
20262011-02-14 Pedro Alves <pedro@codesourcery.com>
2027
2028 * value.c (value_bits_valid, value_bits_synthetic_pointer):
2029 No longer handle NULL values.
2030
8af8e3bc
PA
20312011-02-14 Pedro Alves <pedro@codesourcery.com>
2032
2033 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
2034 * value.c: Include "exceptions.h".
2035 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
2036 generic error.
2037 * cp-abi.c: Include gdb_assert.h.
2038 (baseclass_offset): Add `embedded_offset' and `val' parameters.
2039 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
2040 errors.
2041 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
2042 parameters. No longer returns -1 on error.
2043 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
2044 `val' parameters.
2045 * cp-valprint.c: Include exceptions.h.
2046 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
2047 the baseclass_offset. Handle unavailable base classes. Use
2048 val_print_invalid_address.
2049 * p-valprint.c: Include exceptions.h.
2050 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
2051 when fetching the baseclass_offset. No longer expect
2052 baseclass_offset returning -1. Handle unavailable base classes.
2053 Use val_print_invalid_address.
2054 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
2055 `valaddr' parameter, and change its type to gdb_byte pointer. Add
2056 `embedded_offset' and `val' parameters. Adjust.
2057 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
2058 parameter, and change its type to gdb_byte pointer. Add
2059 `embedded_offset' and `val' parameters. Adjust. No longer expect
2060 baseclass_offset returning -1.
2061 (value_dynamic_cast): Use value_contents_for_printing rather than
2062 value_contents. Adjust.
2063 (search_struct_field): No longer expect baseclass_offset returning
2064 -1.
2065 (search_struct_method): If reading memory from the target is
2066 necessary, wrap it in a new value to pass to baseclass_offset. No
2067 longer expect baseclass_offset returning -1.
2068 (find_method_list): No longer expect baseclass_offset returning
2069 -1. Use value_contents_for_printing rather than value_contents.
2070 * valprint.c (val_print_invalid_address): New function.
2071 * valprint.h (val_print_invalid_address): Declare.
2072 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
2073 and `val' parameters. No longer expect baseclass_offset returning
2074 -1. Adjust.
2075 * gnu-v2-abi.c: Include "exceptions.h".
2076 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
2077 parameters. Handle unavailable memory. Recurse through
2078 gnuv2_baseclass_offset directly, rather than through
2079 baseclass_offset. No longer returns -1 on not found, instead
2080 throw an error.
2081 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
2082 `val' parameters. Adjust.
2083
1b28d0b3
PA
20842011-02-14 Pedro Alves <pedro@codesourcery.com>
2085
2086 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
2087 almost but not quite adjacent.
2088
ec0a52e1
PA
20892011-02-14 Pedro Alves <pedro@codesourcery.com>
2090
2091 * value.h (value_entirely_available): Declare.
2092 * value.c (value_entirely_available): New function.
2093 * c-valprint.c (c_value_print): Don't try fetching the pointer's
2094 real type if the pointer is unavailable.
2095
24e6bcee
PA
20962011-02-14 Pedro Alves <pedro@codesourcery.com>
2097
2098 * valops.c (value_repeat): Use read_value_memory instead of
2099 read_memory.
2100
39d37385
PA
21012011-02-14 Pedro Alves <pedro@codesourcery.com>
2102
2103 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
2104 * value.c (value_contents_copy_raw, value_contents_copy): New
2105 functions.
2106 (value_primitive_field): Use value_contents_copy_raw instead of
2107 memcpy.
2108 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
2109 memcpy.
2110 (value_array, value_slice): Ditto.
2111 * valarith.c (value_subscripted_rvalue): Use
2112 value_contents_copy_raw instead of memcpy.
2113
a3d34bf4
PA
21142011-02-14 Pedro Alves <pedro@codesourcery.com>
2115
2116 <unavailable> references.
2117
2118 * valops.c (get_value_at): Use value_from_contents_and_address,
2119 avoiding read_memory.
2120
9fc6d940
PA
21212011-02-14 Pedro Alves <pedro@codesourcery.com>
2122
2123 * c-valprint.c (c_val_print): Print a string with unavailable
2124 contents as an array.
2125
5467c6c8
PA
21262011-02-14 Pedro Alves <pedro@codesourcery.com>
2127
2128 * value.h (unpack_bits_as_long): Delete declaration.
2129 (unpack_value_bits_as_long): Declare.
2130 (unpack_value_field_as_long): Declare.
2131 (value_field_bitfield): Declare.
2132 * value.c (unpack_bits_as_long): Rename to...
2133 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
2134 value parameters. Return the extracted result in a new output
2135 parameter. If the value contents are unavailable, return false,
2136 otherwise return true.
2137 (unpack_value_bits_as_long): New.
2138 (unpack_field_as_long): Rename to...
2139 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
2140 Add embedded_offset and value parameters. Return the extracted
2141 result in a new output parameter. If the value contents are
2142 unavailable, return false, otherwise return true.
2143 (unpack_value_field_as_long): New.
2144 (unpack_field_as_long_1): New.
2145 (unpack_field_as_long): Reimplement as wrapper around
2146 unpack_value_field_as_long_1.
2147 (value_field_bitfield): New function.
2148 * valops.c (value_fetch_lazy): When fetching a bitfield, use
2149 unpack_value_bits_as_long. Mark the value as unavailable, if it
2150 is unavailable.
2151 * jv-valprint.c (java_print_value_fields): Use
2152 value_field_bitfield.
2153 * p-valprint.c (pascal_object_print_value_fields): Use
2154 value_field_bitfield.
2155 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
2156
3158c6ed
PA
21572011-02-14 Pedro Alves <pedro@codesourcery.com>
2158
2159 * value.c (get_internalvar_integer): Also return the int value of
2160 TYPE_CODE_INT INTERNALVAR_VALUE values.
2161 (set_internalvar): Don't special case TYPE_CODE_INT.
2162
9fbdca0d
PA
21632011-02-14 Pedro Alves <pedro@codesourcery.com>
2164
2165 * value.c (struct internalvar) <enum internalvar_kind>: Remove
2166 INTERNALVAR_POINTER.
2167 <pointer>: Delete.
2168 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
2169 (set_internalvar): Remove special TYPE_CODE_PTR handling.
2170 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
2171
c8c1c22f
PA
21722011-02-14 Pedro Alves <pedro@codesourcery.com>
2173
2174 * value.h (value_available_contents_eq): Declare.
2175 * value.c (find_first_range_overlap): New function.
2176 (value_available_contents_eq): New function.
2177 * valprint.c (val_print_array_elements): Use
2178 value_available_contents_eq.
2179 * ada-valprint.c (val_print_packed_array_elements): Use
2180 value_available_contents_eq.
2181 * jv-valprint.c (java_value_print): Use
2182 value_available_contents_eq.
2183
e6e4e701
PA
21842011-02-14 Pedro Alves <pedro@codesourcery.com>
2185
2186 * target.c (target_read_live_memory): New function.
2187 (memory_xfer_live_readonly_partial): New.
2188 (memory_xfer_partial): If reading from a traceframe, fallback to
2189 reading unavailable read-only memory from read-only regions of
2190 live target memory.
2191 * tracepoint.c (disconnect_tracing): Adjust.
2192 (set_current_traceframe): New, factored out from
2193 set_traceframe_number.
2194 (set_traceframe_number): Reimplement to only change the traceframe
2195 number on the GDB side.
2196 (do_restore_current_traceframe_cleanup): Adjust.
2197 (make_cleanup_restore_traceframe_number): New.
2198 (cur_traceframe_number): New global.
2199 (tfile_open): Set cur_traceframe_number to no traceframe.
2200 (set_tfile_traceframe): New function.
2201 (tfile_trace_find): If looking up a traceframe using any method
2202 other than by number, make sure the current tfile traceframe
2203 matches gdb's current traceframe. Update the current tfile
2204 traceframe if the lookup succeeded.
2205 (tfile_fetch_registers, tfile_xfer_partial)
2206 (tfile_get_trace_state_variable_value): Make sure the remote
2207 traceframe matches gdb's current traceframe.
2208 * remote.c (remote_traceframe_number): New global.
2209 (remote_open_1): Set it to -1.
2210 (set_remote_traceframe): New function.
2211 (remote_fetch_registers, remote_store_registers)
2212 (remote_xfer_memory, remote_xfer_partial)
2213 (remote_get_trace_state_variable_value): Make sure the remote
2214 traceframe matches gdb's current traceframe.
2215 (remote_trace_find): If looking up a traceframe using any method
2216 other than by number, make sure the current remote traceframe
2217 matches gdb's current traceframe. Update the current remote
2218 traceframe if the lookup succeeded.
2219 * infrun.c (fetch_inferior_event): Adjust.
2220 * tracepoint.h (set_current_traceframe): Declare.
2221 (get_traceframe_number, set_traceframe_number): Add describing
2222 comments.
2223
e6ca34fc
PA
22242011-02-14 Pedro Alves <pedro@codesourcery.com>
2225
2226 Mark pieces of values as unavailable if the corresponding memory
2227 is unavailable.
2228
2229 * valops.c: Include tracepoint.h.
2230 (value_fetch_lazy): Use read_value_memory.
2231 (read_value_memory): New.
2232 * value.h (read_value_memory): Declare.
2233 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
2234 * exec.c (section_table_available_memory): New function.
2235 * exec.h (section_table_available_memory): Declare.
2236
2a7498d8
PA
22372011-02-14 Pedro Alves <pedro@codesourcery.com>
2238
2239 * Makefile.in (SFILES): Add memrange.c.
2240 (HFILES_NO_SRCDIR): Add memrange.h.
2241 (COMMON_OBS): Add memrange.o.
2242 * memrange.c: New file.
2243 * memrange.h: New file.
2244 * tracepoint.c: Include memrange.h.
2245 (struct mem_range): Delete.
2246 (mem_range_s): Delete.
2247 (traceframe_available_memory): New function.
2248 * tracepoint.h (traceframe_available_memory): Declare.
2249
b3b9301e
PA
22502011-02-14 Pedro Alves <pedro@codesourcery.com>
2251
2252 * target.h (struct traceframe_info): Forward declare.
2253 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
2254 (struct target_ops) <to_traceframe_info>: New field.
2255 (target_traceframe_info): New.
2256 * target.c (update_current_target): Inherit and default
2257 to_traceframe_info.
2258 * remote.c (PACKET_qXfer_traceframe_info): New.
2259 (remote_protocol_features): Register qXfer:traceframe-info:read.
2260 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
2261 (remote_traceframe_info): New.
2262 (init_remote_ops): Install it.
2263 (_initialize_remote): Install "set/show remote traceframe-info"
2264 commands.
2265 * tracepoint.h (parse_traceframe_info): Declare.
2266 * tracepoint.c (struct mem_range): New.
2267 (mem_range_s): New typedef.
2268 (struct traceframe_info): New.
2269 (traceframe_info): New global.
2270 (free_traceframe_info): New function.
2271 (clear_traceframe_info): New function.
2272 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
2273 info.
2274 (build_traceframe_info): New function.
2275 (tfile_traceframe_info): New function.
2276 (init_tfile_ops): Install tfile_traceframe_info.
2277 (traceframe_info_start_memory, free_result): New functions.
2278 (memory_attributes, traceframe_info_elements): New globals.
2279 (parse_traceframe_info, get_traceframe_info): New functions.
2280 * features/traceframe-info.dtd: New file.
2281 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
2282
4e07d55f
PA
22832011-02-14 Pedro Alves <pedro@codesourcery.com>
2284
2285 Base support for <unavailable> value contents.
2286
4e07d55f
PA
2287 * value.h (value_bytes_available): Declare.
2288 (mark_value_bytes_unavailable): Declare.
2289 * value.c (struct range): New struct.
2290 (range_s): New typedef.
2291 (ranges_overlap): New function.
2292 (range_lessthan): New function.
2293 (ranges_contain_p): New function.
2294 (struct value) <unavailable>: New field.
2295 (value_bytes_available): New function.
2296 (mark_value_bytes_unavailable): New function.
2297 (require_not_optimized_out): Constify parameter.
2298 (require_available): New function.
2299 (value_contents_all, value_contents): Require all bytes be
2300 available.
2301 (value_free): Free `unavailable'.
2302 (value_copy): Copy `unavailable'.
2303 * valprint.h (val_print_unavailable): Declare.
2304 * valprint.c (valprint_check_validity): Rename `offset' parameter
2305 to `embedded_offset'. If printing a scalar, check whether the
2306 value chunk is available.
2307 (val_print_unavailable): New.
2308 (val_print_scalar_formatted): Check whether the value is
2309 available.
2310 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
2311 pretty-printing unavailable values.
2312
bc9a5551
JK
23132011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2314
2315 Fix const/volatile qualifiers of C++ types, PR c++/12328.
2316 * c-typeprint.c (c_type_print_args): Update the function comment. New
2317 variable param_type, initialize it. Remove const/volatile qualifiers
2318 for language_cplus and !show_artificial. Use param_type.
2319
93b55aa1
JK
23202011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2321
2322 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
2323 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
2324 * symtab.h (struct symtab) <next>: Comment extension.
2325
181d9476
YQ
23262011-02-12 Yao Qi <yao@codesourcery.com>
2327
2328 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
2329
b708a5c7
JK
23302011-02-11 Yao Qi <yao@codesourcery.com>
2331
2332 * common/Makefile.in: Add copyright header.
2333
c5187ac6
PA
23342011-02-11 Pedro Alves <pedro@codesourcery.com>
2335
2336 * infrun.c (proceed): Move switching out and in of tfind mode from
2337 here ...
2338 (fetch_inferior_event): ... to here.
2339
4f3e6fb7
YQ
23402011-02-11 Yao Qi <yao@codesourcery.com>
2341
2342 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2343 libcommon.a.
2344 * configure.ac: Add common to sub dir.
2345 * configure: Regenerate.
2346
b708a5c7
JK
23472011-02-11 Yao Qi <yao@codesourcery.com>
2348
2349 Build libcommon.a.
2350
2351 * common/Makefile.in: New.
2352 * common/configure.ac: New.
2353 * common/aclocal.m4: New.
2354 * common/configure: Generate.
2355
2287cc7e
PA
23562011-02-10 Pedro Alves <pedro@codesourcery.com>
2357
2358 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
2359 side of the parenthesis.
2360
2361 Merge from GCC:
2362 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 2363 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 2364
fd62cb89
MS
23652011-02-08 Michael Snyder <msnyder@vmware.com>
2366
2367 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
2368
56d2815c
JK
23692011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2370
2371 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
2372 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
2373 psubd and paddd.
2374
4f7d61a8
JK
23752011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2376
2377 PR 12361.
2378 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
2379 phsubsw.
2380 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
2381 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
2382
54fcddd0
UW
23832011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2384
2385 * dwarf2read.c (read_subroutine_type): Set special calling
2386 convention flag for functions compiled by IBM XL C for OpenCL.
2387 * ppc-sysv-tdep.c: Include "dwarf2.h"
2388 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
2389 calling convention.
2390 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
2391 IBM OpenCL vector types calling convention.
2392 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
2393 (ppc_sysv_abi_broken_return_value): Likewise.
2394 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
2395 types calling convention.
2396 (ppc64_sysv_abi_return_value): Likewise.
2397 * spu-tdep.c: Include "dwarf2.h"
2398 (spu_return_value): Implement IBM OpenCL vector types calling
2399 convention.
2400
d6dafb7c
UW
24012011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2402
2403 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
2404 correct ABI for AltiVec vector arguments.
2405
32b72a42
PA
24062011-02-07 Pedro Alves <pedro@codesourcery.com>
2407
2408 * valprint.c (val_print): Extend comment.
2409 * ada-valprint.c (ada_valprint): Rewrite comment deferring
2410 interface explanation to val_print.
2411 (ada_val_print_array): Adjust comment to current interface.
2412 (print_field_values): Adjust comment to current interface.
2413 * c-valprint.c (c_val_print): Rewrite comment deferring interface
2414 explanation to val_print.
2415 * f-valprint.c (f_val_print): Ditto.
2416 * jv-valprint.c (java_val_print): Ditto.
2417 * m2-valprint.c (m2_val_print): Ditto.
2418 * p-valprint.c (pascal_val_print): Ditto.
2419
9998af43
TJB
24202011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
2421
2422 * breakpoint.c (parse_breakpoint_sals): Fix description.
2423
505500db 24242011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 2425 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
2426
2427 * python/py-inferior.c (python_on_normal_stop): New function.
2428 (python_on_resume): New function.
2429 (python_inferior_exit): New function.
2430 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
2431 inferior_exit observers.
2432 * python/py-evtregistry.c: New file.
2433 * python/py-threadevent.c : New file.
2434 * python/py-event.c: New file.
2435 * python/py-evts.c: New file.
2436 * python/py-continueevent.c: New file.
2437 * python/py-bpevent.c: New file.
2438 * python/py-signalevent.c: New file.
2439 * python/py-exetiedevent.c: New file.
2440 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
2441 Move struct breakpoint_object from here...
2442 * python/python-internal.h: ... to here.
2443 * python/py-event.h: New file.
2444 * python/py-events.h: New file.
2445 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
2446 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
2447 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
2448 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
2449 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
2450 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
2451 Add build rules for all the above.
2452
9e0ac564
TT
24532011-02-04 Tom Tromey <tromey@redhat.com>
2454
2455 * dwarf2read.c (dwarf2_section_empty_p): New function.
2456 (dwarf2_read_section): Use dwarf2_section_empty_p.
2457 (dwarf2_section_size): New function.
2458 (dwarf2_get_section_info): Unconditionally read section.
2459 (dwarf2_read_index): Use dwarf2_section_empty_p.
2460 (partial_read_comp_unit_head): Use dwarf2_section_size.
2461 (dwarf2_symbol_mark_computed): Likewise.
2462
eee5b35e
DD
24632011-02-04 David Daney <ddaney@caviumnetworks.com>
2464
2465 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
2466
385203ed
DD
24672011-02-04 David Daney <ddaney@caviumnetworks.com>
2468
2469 * mips-linux-tdep.c: Include xml-syscall.h.
2470 (mips_linux_get_syscall_number): New function.
2471 (mips_linux_init_abi): Add calls to
2472 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
2473 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2474 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
2475 * syscalls/mips-n32-linux.xml: New file.
2476 * syscalls/mips-n64-linux.xml: New file.
2477 * syscalls/mips-o32-linux.xml: New file.
2478
9277c30c
UW
24792011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2480
2481 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
2482 Complain about inverted range entries.
2483 (dwarf2_record_block_ranges): Likewise.
2484
a3be7890
TJB
24852011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2486
2487 Fix some typos.
2488 * breakpoint.c (update_watchpoint): Fix name of the
2489 update_global_location_list function.
2490 (print_one_breakpoint): Fix typo.
2491 (_initialize_breakpoint): Remove extra space in hbreak help
2492 string.
2493 * breakpoint.h (struct bp_location) <length>: Fix field
2494 description.
2495
041274d8
PA
24962011-02-04 Pedro Alves <pedro@codesourcery.com>
2497
2498 * regcache.c (registers_changed_ptid): Don't explictly always
2499 clear `current_regcache'. Only clear current_thread_ptid and
2500 current_thread_arch when PTID matches. Only reinit the frame
2501 cache if PTID matches the current inferior_ptid. Move alloca(0)
2502 call to ...
2503 (registers_changed): ... here.
2504
c1c2ab58
UW
25052011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
2506
2507 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
2508 starts with __stack_chk_guard as stack guard symbol.
2509
9011945e
AB
25102011-02-03 Andrew Burgess <aburgess@broadcom.com>
2511
2512 * disasm.c (compare_lines): Handle the end of sequence markers
2513 within the line table to better support disassembling over
2514 compilation unit boundaries.
2515
e0634ccf
UW
25162011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2517
2518 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
2519 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
2520 implementation even if no symbols are available.
2521 (thumb_analyze_prologue): Update call to skip_prologue_function.
2522 (arm_analyze_prologue): Likewise.
2523
0e9e9abd
UW
25242011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2525
2526 * arm-tdep.c: Include "observer.h".
2527 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
2528 (arm_exidx_data_key): New static variable.
2529 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
2530 (struct arm_exidx_data): Likewise.
2531 (arm_exidx_data_free): New function.
2532 (arm_compare_exidx_entries): Likewise.
2533 (arm_obj_section_from_vma): Likewise.
2534 (arm_exidx_new_objfile): Likewise.
2535 (arm_find_exidx_entry): Likewise.
2536 (arm_exidx_fill_cache): Likewise.
2537 (arm_exidx_unwind_sniffer): Likewise.
2538 (arm_exidx_unwind): New global variable.
2539 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
2540 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
2541 observer. Register arm_exidx_data_key as objfile data.
2542
2e9e421f
UW
25432011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2544
2545 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
2546 due to accessing uninitialized variable. Fix indentation.
2547
580688f3
PA
25482011-02-02 Pedro Alves <pedro@codesourcery.com>
2549
2550 * c-valprint.c (c_value_print): When doing virtual base pointer
2551 adjustment, create a new value with adjusted contents rather than
2552 changing the contents of the value being printed (and getting it
2553 wrong).
2554
3d2c1d41
PA
25552011-02-02 Pedro Alves <pedro@codesourcery.com>
2556
2557 * xml-support.c (xml_find_attribute): New.
2558 (xinclude_start_include): Use it.
2559 * xml-support.h (xml_find_attribute): Declare.
2560 * memory-map.c (memory_map_start_memory)
2561 (memory_map_start_property): Use xml_find_attribute.
2562 * osdata.c (osdata_start_osdata, osdata_start_column): Use
2563 xml_find_attribute.
2564 * remote.c (start_thread): Use xml_find_attribute.
2565 * solib-target.c (library_list_start_segment)
2566 (library_list_start_section, library_list_start_library)
2567 (library_list_start_list): Use xml_find_attribute.
2568 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
2569 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
2570 (tdesc_start_field): Use xml_find_attribute.
2571
0af3e2db
UW
25722011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
2573
2574 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
2575 (BUILD_OCL_VTYPES): Update.
2576
c1039e3c
JB
25772011-02-02 Joel Brobecker <brobecker@adacore.com>
2578
2579 * configure.ac: Work around non-GNU sed limitation when computing
2580 python version number.
2581 * configure: Regenerate.
2582
600ea1be
JK
25832011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2584
2585 Fix debug printing of TYPE_INSTANCE.
2586 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
2587 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
2588
56c12414
JK
25892011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2590
2591 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
2592 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
2593 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
2594 * ada-operator.inc: Rename the file to ...
2595 * ada-operator.def: ... here, wrap all the entries by macro OP.
2596 * expprint.c (op_name_standard): Remove all the entries. Include
2597 "std-operator.def" instead.
2598 * expression.h (enum exp_opcode): Include "std-operator.def" and
2599 "ada-operator.def". Move all the entries ...
2600 * std-operator.def: ... here, wrap all the entries by macro OP.
2601
c52b559d
PP
26022011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2603
2604 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
2605 * breakpoint.c (remove_jit_event_breakpoints): New function.
2606 * jit.c (jit_descriptor_addr): Delete.
2607 (registering_code): Delete.
2608 (clear_int): Delete.
2609 (jit_inferior_data): New variable.
2610 (struct jit_inferior_data): New type.
2611 (get_jit_inferior_data): New function.
2612 (jit_inferior_data_cleanup): New function.
2613 (jit_read_descriptor): Adjust.
2614 (jit_register_code): Adjust.
2615 (jit_breakpoint_re_set_internal): New function; move code here ...
2616 (jit_inferior_init): ... from here.
2617 (jit_breakpoint_re_set): Adjust.
2618 (jit_reset_inferior_data_and_breakpoints): New function.
2619 (jit_inferior_created_observer): Adjust.
2620 (jit_inferior_exit_hook): Adjust.
2621 (jit_executable_changed_observer): New function.
2622 (jit_event_handler): Adjust.
2623 (_initialize_jit): Adjust.
2624
e839132d
MS
26252011-01-31 Michael Snyder <msnyder@vmware.com>
2626
2627 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
2628 line.
2629
47a80e90
TT
26302011-01-31 Tom Tromey <tromey@redhat.com>
2631
2632 PR python/12216:
2633 * python/python.c (execute_gdb_command): Call
2634 prevent_dont_repeat.
2635 * top.c (suppress_dont_repeat): New global.
2636 (dont_repeat): Use it.
2637 (prevent_dont_repeat): New function.
2638 * command.h (prevent_dont_repeat): Declare.
2639
45a43567
TT
26402011-01-31 Tom Tromey <tromey@redhat.com>
2641
2642 * infcmd.c (finish_backward): Use breakpoint_set_silent.
2643 * python/py-breakpoint.c (bppy_set_silent): Use
2644 breakpoint_set_silent.
2645 (bppy_set_thread): Use breakpoint_set_thread.
2646 (bppy_set_task): Use breakpoint_set_task.
2647 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
2648 (breakpoint_set_task): Declare.
2649 (make_breakpoint_silent): Remove.
2650 * breakpoint.c (breakpoint_set_silent): New function.
2651 (breakpoint_set_thread): Likewise.
2652 (breakpoint_set_task): Likewise.
2653 (make_breakpoint_silent): Remove.
2654
09d682a4
TT
26552011-01-31 Tom Tromey <tromey@redhat.com>
2656
2657 * breakpoint.h (user_breakpoint_p): Declare.
2658 * breakpoint.c (user_breakpoint_p): New function.
2659 (breakpoint_1): Use it.
2660 (save_breakpoints): Likewise.
2661
9c4ea6c5
JB
26622011-01-31 Joel Brobecker <brobecker@adacore.com>
2663
2664 * configure.ac: Add handling of Python distribution on Windows.
2665 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
2666 sysconfig variables are not defined, then do not use them.
2667 On Windows, if LIBPL is not defined, then use prefix + '/libs'
2668 instead. On Windows, return all paths using forward-slashes
2669 rather than backslashes.
2670
ac534cba
JB
26712011-01-31 Joel Brobecker <brobecker@adacore.com>
2672
2673 * configure.ac: Remove fallback behavior for building
2674 against Python. Remove tweaking of Python include path.
2675 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
2676 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
2677 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
2678 Always restore CPPFLAGS and LIBS after linking test.
2679 * configure: Regenerated.
2680 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
2681 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
2682 * python/python-internal.h: Adjust includes of Python .h files.
2683
c2f0d045
JB
26842011-01-31 Joel Brobecker <brobecker@adacore.com>
2685
2686 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
2687 in error message.
2688
6b0c4c1f
JB
26892011-01-31 Joel Brobecker <brobecker@adacore.com>
2690
2691 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
2692 value test.
2693
672c9795
YQ
26942011-01-31 Yao Qi <yao@codesourcery.com>
2695
2696 * arm-linux-nat.c: Update calls to regcache_register_status
2697 instead of regcache_valid_p.
2698 * aix-thread.c: Likewise.
2699 * i386gnu-nat.c: Likewise.
2700
80b23b6a
JK
27012011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2702
2703 Fix crash.
2704 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
2705 touching TYPE_FIELD_ARTIFICIAL.
2706
4cd712bd
RE
27072011-01-28 Richard Earnshaw <rearnsha@arm.com>
2708
2709 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
2710 Committers.
2711
ffd5ec24
PA
27122011-01-28 Pedro Alves <pedro@codesourcery.com>
2713
2714 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
2715 selected, don't try iterating over the traceframe's blocks.
2716 (tfile_has_stack): If there's no traceframe selected, then there's
2717 no stack.
2718 (tfile_has_registers): If there's no traceframe selected, then
2719 there's no registers.
2720
e8c9e0a1
PA
27212011-01-28 Pedro Alves <pedro@codesourcery.com>
2722
2723 * target.c (memory_xfer_partial): No need to restore shadows if we
2724 haven't read anything.
2725
de15c4ab
PA
27262011-01-28 Pedro Alves <pedro@codesourcery.com>
2727
2728 * mips-tdep.c (mips_print_register): Use get_frame_register_value
2729 and val_print_scalar_formatted.
2730
9f41c731
PA
27312011-01-27 Pedro Alves <pedro@codesourcery.com>
2732
2733 * tracepoint.c (tfile_read): New.
2734 (tfile_open): Use it.
2735 (tfile_get_traceframe_address): Use it.
2736 (tfile_trace_find): Use it.
2737 (walk_blocks_callback_func): New typedef.
2738 (match_blocktype): New function.
2739 (traceframe_walk_blocks): New function.
2740 (traceframe_find_block_type): New function.
2741 (tfile_fetch_registers, tfile_xfer_partial)
2742 (tfile_get_trace_state_variable_value): Use
2743 traceframe_find_block_type and tfile_read.
2744
cdefc55d
KB
27452011-01-26 Kevin Buettner <kevinb@redhat.com>
2746
2747 * remote-mips.c: Add internationalization mark ups. Remove
2748 trailing \n from already marked up strings.
2749
a81766d8
TT
27502011-01-26 Tom Tromey <tromey@redhat.com>
2751
2752 * python/py-prettyprint.c (print_string_repr): Clear
2753 'addressprint' option when calling val_print_string.
2754 (print_children): Handle Val_pretty_default. Clear 'addressprint'
2755 option when calling val_print_string.
2756
74aedc46
TT
27572011-01-26 Tom Tromey <tromey@redhat.com>
2758
2759 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
2760 GDB_PY_LL_ARG.
2761 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
2762 macros.
2763 (gdb_py_longest, gdb_py_ulongest): New typedefs.
2764 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
2765 (gdb_py_long_as_ulongest): New defines.
2766 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
2767 (gdb_py_int_as_long): Declare.
2768 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
2769 GDB_PY_LL_ARG, gdb_py_object_from_longest.
2770 (valpy_long): Add comment.
2771 * python/py-utils.c (get_addr_from_python): Use
2772 gdb_py_long_as_ulongest. Handle overflow properly.
2773 (gdb_py_object_from_longest): New function.
2774 (gdb_py_object_from_ulongest): Likewise.
2775 (gdb_py_int_as_long): Likewise.
2776 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
2777 * python/py-symtab.c (salpy_get_pc): Use
2778 gdb_py_long_from_ulongest.
2779 (salpy_get_line): Use PyInt_FromLong.
2780 * python/py-param.c (set_parameter_value): Use
2781 gdb_py_int_as_long.
2782 * python/py-lazy-string.c (stpy_get_address): Use
2783 gdb_py_long_from_ulongest.
2784 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
2785 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
2786 * python/py-breakpoint.c (bppy_set_thread): Use
2787 gdb_py_int_as_long.
2788 (bppy_set_task): Likewise.
2789 (bppy_set_ignore_count): Likewise.
2790 (bppy_set_hit_count): Likewise.
2791 * python/py-block.c (blpy_get_start): Use
2792 gdb_py_object_from_ulongest.
2793 (blpy_get_end): Likewise.
2794 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
2795
e4f6d2ec
TJB
27962011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
2797
2798 PR/symtab 11766:
2799 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
2800 * gdb/solib.c (solib_read_symbols): Check for addr_low in
2801 equality test for objfile, initialize addr_low if needed.
2802
b30aa278
PA
28032011-01-25 Pedro Alves <pedro@codesourcery.com>
2804
2805 * tui/tui-regs.c (tui_register_format): Remove dead code.
2806
ab2188aa
PA
28072011-01-25 Pedro Alves <pedro@codesourcery.com>
2808
2809 * printcmd.c (print_formatted): Use val_print_scalar_formatted
2810 instead of print_scalar_formatted.
2811 (print_scalar_formatted): Don't handle 's' format strings here,
2812 and add an assertion that we never see such format here.
2813 * valprint.h (val_print_scalar_formatted): Declare.
2814 * valprint.c (val_print_scalar_formatted): New.
2815 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
2816 instead of print_scalar_formatted.
2817 * jv-valprint.c (java_val_print): Ditto.
2818 * p-valprint.c (pascal_val_print): Ditto.
2819 * ada-valprint.c (ada_val_print_1): Ditto.
2820 * f-valprint.c (f_val_print): Ditto.
2821 * infcmd.c (registers_info): Ditto.
2822 * m2-valprint.c (m2_val_print): Ditto.
2823
66d61a4c
PA
28242011-01-25 Pedro Alves <pedro@codesourcery.com>
2825
2826 * m2-valprint.c (print_unbounded_array): Pass
2827 value_contents_for_printing rather than value_contents, to
2828 m2_print_array_contents. Also pass in the value.
2829
831adc1f
JK
28302011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2831
2832 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
2833 (save_gdb_index_command): Switch to .gdb_index version 4.
2834
20622269
PA
28352011-01-25 Pedro Alves <pedro@codesourcery.com>
2836
2837 * mi/mi-main.c (get_register): Use get_frame_register_value rather
2838 than frame_register, and always pass a valid value to val_print.
2839
585fdaa1
PA
28402011-01-25 Pedro Alves <pedro@codesourcery.com>
2841
2842 Centralize printing "<optimized out>".
2843
2844 * valprint.h (val_print_optimized_out): Declare.
2845 * cp-valprint.c (cp_print_value_fields): Use
2846 val_print_optimized_out.
2847 * jv-valprint.c (java_print_value_fields): Ditto.
2848 * p-valprint.c (pascal_object_print_value_fields): Ditto.
2849 * printcmd.c (print_formatted): Ditto.
2850 * valprint.c (valprint_check_validity): Ditto.
2851 (value_check_printable): Ditto.
2852 (val_print_optimized_out): New.
2853
29ec5263
PA
28542011-01-25 Pedro Alves <pedro@codesourcery.com>
2855
2856 * infcmd.c (default_print_registers_info): Allocate values so to
2857 never pass a NULL value to val_print.
2858
de4127a3
PA
28592011-01-25 Pedro Alves <pedro@codesourcery.com>
2860
2861 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
2862 boolean. Make sure to always pass a value that matches the
2863 contents buffer to callees. Preserve `address' for following
2864 iterations.
2865 * value.c (value_contents_for_printing_const): New.
2866 (value_address): Constify value argument.
2867 * value.h (value_contents_for_printing_const): Declare.
2868 (value_address): Constify value argument.
2869
ee99023e
PA
28702011-01-25 Pedro Alves <pedro@codesourcery.com>
2871
2872 * regcache.c (struct regcache_descr): Rename
2873 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
2874 and sizeof_cooked_register_valid_p to
2875 sizeof_cooked_register_status.
2876 (init_regcache_descr): Adjust.
2877 (struct regcache): Rename register_valid_p field to
2878 register_status.
2879 (regcache_xmalloc_1, regcache_xfree, regcache_save)
2880 (do_cooked_read): Adjust.
2881 (regcache_valid_p): Rename to ...
2882 (regcache_register_status): ... this. Adjust.
2883 (regcache_invalidate): Adjust.
2884 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
2885 Adjust.
2886 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
2887 as unavailable, not valid.
2888 (regcache_dump): Adjust.
2889 * regcache.h (enum register_status): New.
2890 (regcache_register_status): Declare.
2891 (regcache_invalidate): Delete declaration.
2892 * corelow.c (get_core_registers): Adjust.
2893 * tracepoint.c (tfile_fetch_registers): Adjust.
2894 * trad-frame.c (REG_VALUE): Rename to ...
2895 (TF_REG_VALUE): ... this.
2896 (REG_UNKNOWN): Rename to ...
2897 (TF_REG_UNKNOWN): ... this.
2898 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
2899 * mi/mi-main.c (register_changed_p): Adjust.
2900
99e42fd8
PA
29012011-01-25 Pedro Alves <pedro@codesourcery.com>
2902
2903 * regcache.c (struct regcache_descr): Remove outdated comment.
2904 (init_regcache_descr): Remove sizeof_raw_register_valid_p
2905 overallocate hack.
2906 (regcache_xmalloc): Rename to ...
2907 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
2908 Allocate the regcache type accordingly.
2909 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
2910 (regcache_xfree): Asser the source is also readonly. Copy sizeof
2911 cooked registers, not raw.
2912 (regcache_dup_no_passthrough): Delete.
2913 (get_thread_arch_regcache): Use regcache_xmalloc_1.
2914 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
2915 mention obsolete write_register_bytes.
2916 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
2917
f7605bc2
PA
29182011-01-25 Pedro Alves <pedro@codesourcery.com>
2919
2920 Stop remote_read_bytes from handling partial reads itself.
2921
2922 * remote-fileio.c: Include target.h.
2923 (remote_fileio_write_bytes): Delete.
2924 (remote_fileio_func_open, remote_fileio_func_write)
2925 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
2926 target_read_memory.
2927 (remote_fileio_func_stat): Use target_read_memory and
2928 target_write_memory.
2929 (remote_fileio_func_gettimeofday): Use target_write_memory.
2930 (remote_fileio_func_system): Use target_read_memory.
2931 * remote.c (remote_write_bytes): Make it static.
2932 (remote_read_bytes): Don't handle partial reads here.
2933 * remote.h (remote_read_bytes): Delete declaration.
2934
efc0eabd
PA
29352011-01-25 Pedro Alves <pedro@codesourcery.com>
2936
2937 Simplify XML parsing a bit.
2938
2939 * xml-support.h (gdb_xml_parse_quick): Declare.
2940 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
2941 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
2942 parameter.
2943 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
2944 gdb_xml_create_parser_and_cleanup_1.
2945 (gdb_xml_parse_quick): New.
2946 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
2947 * osdata.c (osdata_parse): Ditto.
2948 * remote.c (remote_threads_info): Ditto.
2949 * solib-target.c (solib_target_parse_libraries): Ditto.
2950 * xml-syscall.c (syscall_parse_xml): Ditto.
2951 * xml-tdesc.c (tdesc_parse_xml): Ditto.
2952
314d366a
KB
29532011-01-24 Kevin Buettner <kevinb@redhat.com>
2954
2955 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
2956 with remote-mips.o added to gdb_target_obs.
2957 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
2958
a491d753
PA
29592011-01-24 Pedro Alves <pedro@codesourcery.com>
2960
2961 * ada-valprint.c (val_print_packed_array_elements): Pass the
2962 correct struct value to val_print.
2963 (ada_val_print_1): Ditto.
2964
490f124f
PA
29652011-01-24 Pedro Alves <pedro@codesourcery.com>
2966
2967 Don't lose embedded_offset in printing routines throughout.
2968
2969 * valprint.h (val_print_array_elements): Change prototype.
2970 * valprint.c (val_print_array_elements): Add `embedded_offset'
2971 parameter, and adjust to pass it down to val_print, while passing
2972 `valaddr' or `address' unmodified. Take embedded_offset into
2973 account when checking repetitions.
2974 * c-valprint.c (c_val_print): Pass embedded_offset to
2975 val_print_array_elements instead of adjusting `valaddr' and
2976 `address'.
2977 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
2978 embedded_offset to val_print_array_elements instead of adjusting
2979 `valaddr'.
2980 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
2981 * p-valprint.c (pascal_val_print): Pass embedded_offset to
2982 val_print_array_elements and pascal_object_print_value_fields
2983 instead of adjusting `valaddr'.
2984 (pascal_object_print_value_fields): Add `offset' parameter, and
2985 adjust to use it.
2986 (pascal_object_print_value): Add `offset' parameter, and adjust to
2987 use it.
2988 (pascal_object_print_static_field): Use
2989 value_contents_for_printing/value_embedded_offset, rather than
2990 value_contents.
2991 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
2992 parameter, and adjust to use it. Use
2993 value_contents_for_printing/value_embedded_offset, rather than
2994 value_contents.
2995 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
2996 (ada_val_print_array): Add `offset' parameter, and adjust to use
2997 it.
2998 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
2999 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
3000 Instead work with offsets. Use
3001 value_contents_for_printing/value_embedded_offset, rather than
3002 value_contents. Change `defer_val_int' local type to CORE_ADDR,
3003 and use value_from_pointer to extract a target pointer, rather
3004 than value_from_longest.
3005 (print_variant_part): Add `offset' parameter. Replace
3006 `outer_valaddr' parameter by a new `outer_offset' parameter.
3007 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3008 (ada_value_print): Use
3009 value_contents_for_printing/value_embedded_offset, rather than
3010 value_contents.
3011 (print_record): Add `offset' parameter, and adjust to pass it
3012 down.
3013 (print_field_values): Add `offset' parameter. Replace
3014 `outer_valaddr' parameter by a new `outer_offset' parameter.
3015 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3016 Use value_contents_for_printing/value_embedded_offset, rather than
3017 value_contents.
3018 * d-valprint.c (dynamic_array_type): Use
3019 value_contents_for_printing/value_embedded_offset, rather than
3020 value_contents.
3021 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
3022 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3023 (java_print_value_fields): Take `offset' into account. Don't
3024 re-adjust `valaddr'. Instead pass down adjusted offsets.
3025 (java_val_print): Take `embedded_offset' into account. Pass it to
3026 java_print_value_fields.
3027 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
3028 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
3029 down adjusted offsets.
3030 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
3031 (f_val_print): Take `embedded_offset' into account.
3032
7bfc9434
JB
30332011-01-21 Joel Brobecker <brobecker@adacore.com>
3034
3035 * inflow.c: Include "gdbcmd.h".
3036 (interactive_mode): New static global, moved here from top.c.
3037 (show_interactive_mode): New function, moved here from top.c.
3038 use gdb_has_a_terminal instead of input_from_terminal_p to
3039 determine the current mode.
3040 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
3041 setting.
3042 (_initialize_inflow): Add the "set/show interactive-mode"
3043 commands. Moved here from top.c, after having adjusted slightly
3044 the help text.
3045 * top.c (interactive_mode, show_interactive_mode): Delete, moved
3046 to inflow.c.
3047 (input_from_terminal_p): Remove handling of "interactive-mode"
3048 setting, moved to infow.c.
3049 (init_main): Remove creation of the "set/show interactive-mode"
3050 commands, moved to inflow.c.
3051
44603653
JB
30522011-01-19 Joel Brobecker <brobecker@adacore.com>
3053
3054 * NEWS: Add entry for native ia64-hpux support.
3055
4694da01
TT
30562011-01-19 Tom Tromey <tromey@redhat.com>
3057
3058 PR mi/8618:
3059 * thread.c (free_thread): Free 'name'.
3060 (print_thread_info): Emit thread name. Change CLI output.
3061 (thread_name_command): New function.
3062 (do_captured_thread_select): Emit newline.
3063 (_initialize_thread): Register 'thread name' command.
3064 * target.h (struct target_ops) <to_thread_name>: New field.
3065 (target_thread_name): New macro.
3066 * target.c (update_current_target): Handle to_thread_name.
3067 * python/py-infthread.c (thpy_get_name): New function.
3068 (thpy_set_name): Likewise.
3069 (thread_object_getset): Add "name".
3070 * linux-nat.c (linux_nat_thread_name): New function.
3071 (linux_nat_add_target): Set to_thread_name.
3072 * gdbthread.h (struct thread_info) <name>: New field.
3073
10d44370
JB
30742011-01-18 Joel Brobecker <brobecker@adacore.com>
3075
3076 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
3077 (ada_val_print_1): Likewise.
3078
e3acb115
JB
30792011-01-18 Joel Brobecker <brobecker@adacore.com>
3080
3081 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
3082 upper limit address is not greater than the function end address
3083 when the upper limit could not be computed using the debugging
3084 info.
3085
dc92e161
TT
30862011-01-17 Tom Tromey <tromey@redhat.com>
3087
3088 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
3089 get_regcomp_error.
3090 * utils.c: Include gdb_regex.h.
3091 (do_regfree_cleanup): New function.
3092 (make_regfree_cleanup): Likewise.
3093 (get_regcomp_error): Likewise.
3094 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
3095
f55af66d
TT
30962011-01-17 Tom Tromey <tromey@redhat.com>
3097
3098 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
3099 re_compile_fastmap.
3100
a5a44b53
PM
31012011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3102
3103 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
3104 for internal variables.
3105 (last_was_structop): New static variable.
3106 (COMPLETE): New token.
3107 (field_exp): New rule to group all '.' suffix handling.
3108 Add mark_struct_expression calls when approriate to be able
3109 to correctly find fields for completion.
3110 (yylex): Adapt to handle field completion and set INTVAR when
3111 required.
3112
2c291032
YQ
31132011-01-14 Yao Qi <yao@codesourcery.com>
3114
3115 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
3116 save_reggroup, restore_reggroup and all_reggroup.
3117
447b483c
JB
31182011-01-14 Joel Brobecker <brobecker@adacore.com>
3119
3120 * ada-valprint. (ada_printchar): Use the correct type length
3121 in call to ada_emit_char.
3122 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
3123
7b64a93b
PM
31242011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3125
3126 * solib-som.h (hpux_major_release): Declare variable here.
3127 * solib-som.c: Remove <sys/utsname.h> header.
3128 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
3129 (hpux_major_release): Make global, change default value to
3130 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 3131 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
3132 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
3133 Add "solib-som.h" header.
3134 (set_hpux_major_release): New function.
3135 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
3136
4e18c053
MF
31372011-01-14 Mike Frysinger <vapier@gentoo.org>
3138
3139 * configure.tgt (*-*-uclinux*): Match more Linux os targets
3140
a9df6b22
JB
31412011-01-14 Joel Brobecker <brobecker@adacore.com>
3142
3143 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
3144 new-line at end of warning message.
3145 (ia64_hpux_store_register): Remove trailing new-line at end of
3146 error message.
3147 * ia64-hpux-tdep.c: Rephrase comment.
3148 * solib-ia64-hpux.c (struct dld_info): Change type of field
3149 dld_flags from "long long" to ULONGEST.
3150
ecb956dd
PA
31512011-01-14 Pedro Alves <pedro@codesourcery.com>
3152
3153 * target.h (deprecated_child_ops): Delete declaration.
3154 * target.c (deprecated_child_ops): Delete definition.
3155
76adfcae
PA
31562011-01-14 Pedro Alves <pedro@codesourcery.com>
3157
3158 * Makefile.in (hpux-thread.o): Delete rule.
3159 * configure.ac: Don't check for HPUX DCE threads support.
3160 * configure, config.in: Regenerate.
3161 * hppa-hpux-nat.c (child_suppress_run): Delete.
3162 (hppa_hpux_child_can_run): Delete.
3163 (_initialize_hppa_hpux_nat): Don't override to_can_run.
3164 * hpux-thread.c: Delete.
3165
042e866e
JB
31662011-01-13 Joel Brobecker <brobecker@adacore.com>
3167
3168 * hpux-thread.c (hpux_pid_to_str): Delete.
3169
4ffa5a33
JB
31702011-01-13 Joel Brobecker <brobecker@adacore.com>
3171
3172 * ada-valprint.c (ada_emit_char): Remove strange code.
3173 Check that c is <= UCHAR_MAX before passing it to isascii.
3174 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
3175
de8fa76c
JB
31762011-01-13 Joel Brobecker <brobecker@adacore.com>
3177
3178 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
3179 to the case where instream is stdin.
3180
c4de7027
JB
31812011-01-13 Joel Brobecker <brobecker@adacore.com>
3182
3183 * ia64-tdep.h (struct regcache): Forward declare.
3184 (struct ia64_infcall_ops): New struct type.
3185 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
3186 and "infcall_ops".
3187 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
3188 Renames ia64_find_global_pointer.
3189 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
3190 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
3191 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
3192 methods.
3193 (ia64_infcall_ops): New static global constant.
3194 (ia64_gdbarch_init): Set tdep->infcall_ops.
3195 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
3196 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
3197 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
3198 (ia64_hpux_dummy_code): New static global constant.
3199 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
3200 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
3201 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
3202 New function.
3203 (ia64_hpux_infcall_ops): New static global constant.
3204 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
3205 for inferior function calls to work properly on ia64-hpux.
3206
77ca787b
JB
32072011-01-13 Joel Brobecker <brobecker@adacore.com>
3208
3209 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
3210 * ia64-tdep.h (struct frame_info): forward declaration.
3211 (struct gdbarch_tdep): Add field size_of_register_frame.
3212 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
3213 to determine the size of the register frame.
3214 (ia64_size_of_register_frame): New function.
3215 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
3216 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
3217 (IA64_HPUX_UREG_REASON): New macro.
3218 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
3219 New functions.
3220 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
3221 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
3222 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
3223 objects.
3224
92c9a463
JB
32252011-01-13 Joel Brobecker <brobecker@adacore.com>
3226
3227 Add support for ia64-hpux.
3228 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
3229 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
3230
3231 * configure.host: Add handling for ia64-hpux hosts. Add associated
3232 floatformats.
3233 * configure.tgt: Add handling for ia64-hpux targets.
3234 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
3235 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
3236 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
3237
f688d93f
JB
32382011-01-13 Joel Brobecker <brobecker@adacore.com>
3239
3240 [ttrace] Compute thread list immediately after attach.
3241 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
3242 New subprogram.
3243 (inf_ttrace_attach): Use it.
3244
1b89e62f
JB
32452011-01-13 Joel Brobecker <brobecker@adacore.com>
3246
3247 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
3248 if we could not determine the frame's function address. Instead,
3249 use the frame's PC, and then continue.
3250
3e5e6e2a
JB
32512011-01-13 Joel Brobecker <brobecker@adacore.com>
3252
3253 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
3254 not already defined.
3255
825d6d8a
JB
32562011-01-13 Joel Brobecker <brobecker@adacore.com>
3257
3258 * ia64-tdep.c (ia64_struct_type_p): New function.
3259 (ia64_extract_return_value): Handle integral values that are
3260 less than 8 bytes long.
3261 (ia64_push_dummy_call): Likewise.
3262
7458e667
JB
32632011-01-13 Joel Brobecker <brobecker@adacore.com>
3264
3265 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
3266 floatformat_ia64_ext.
3267 (floatformat_ia64_ext_big): New static const.
3268 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
3269
1b05df00
TT
32702011-01-12 Tom Tromey <tromey@redhat.com>
3271
3272 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
3273 messages.
3274 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
3275 (mi_cmd_thread_list_ids): Likewise.
3276 (mi_cmd_data_list_changed_registers): Likewise.
3277 (mi_cmd_data_list_register_values): Likewise.
3278 (mi_cmd_data_write_register_values): Likewise.
3279 (mi_cmd_data_evaluate_expression): Likewise.
3280 (mi_cmd_data_read_memory): Likewise.
3281 (mi_cmd_data_read_memory_bytes): Likewise.
3282 (mi_cmd_data_write_memory): Likewise.
3283 (mi_cmd_enable_timings): Likewise.
3284 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
3285 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
3286 (mi_cmd_var_delete): Likewise.
3287 (mi_cmd_var_set_format): Likewise.
3288 (mi_cmd_var_show_format): Likewise.
3289 (mi_cmd_var_info_num_children): Likewise.
3290 (mi_cmd_var_list_children): Likewise.
3291 (mi_cmd_var_info_type): Likewise.
3292 (mi_cmd_var_info_expression): Likewise.
3293 (mi_cmd_var_show_attributes): Likewise.
3294 (mi_cmd_var_assign): Likewise.
3295 (mi_cmd_var_update): Likewise.
3296 (mi_cmd_enable_pretty_printing): Likewise.
3297 (mi_cmd_var_set_update_range): Likewise.
3298 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
3299 messages.
3300 (mi_cmd_target_file_put): Likewise.
3301 (mi_cmd_target_file_delete): Likewise.
3302 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
3303 messages.
3304 (mi_cmd_stack_info_depth): Likewise.
3305 (mi_cmd_stack_list_locals): Likewise.
3306 (mi_cmd_stack_list_args): Likewise.
3307 (mi_cmd_stack_select_frame): Likewise.
3308 (mi_cmd_stack_select_frame): Likewise.
3309 (mi_cmd_stack_info_frame): Likewise.
3310 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
3311 messages.
3312 (mi_cmd_file_list_exec_source_files): Likewise.
3313 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
3314 (mi_cmd_env_cd): Likewise.
3315 (mi_cmd_env_path): Likewise.
3316 (mi_cmd_env_dir): Likewise.
3317 (mi_cmd_inferior_tty_show): Likewise.
3318 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
3319 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
3320 (mi_cmd_break_watch): Likewise.
3321
ad422571
TJB
33222011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
3323
3324 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
3325 (ppc_linux_insert_hw_breakpoint): Likewise.
3326 (ppc_linux_remove_hw_breakpoint): Likewise.
3327 (ppc_linux_insert_watchpoint): Likewise.
3328
c2ff108b
JK
33292011-01-12 Andrew Burgess <aburgess@broadcom.com>
3330 Jan Kratochvil <jan.kratochvil@redhat.com>
3331
3332 PR fortran/11104 and DWARF unbound arrays detection.
3333 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
3334 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
3335 unspecified upper bound.
3336 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
3337 variables array_size_array, tmp_type and offset_item. New variable
3338 array. Remove call to f77_get_upperbound. New variables array_type
3339 and index. Call value_subscripted_rvalue for each dimenasion. Remove
3340 the final call to deprecated_set_value_type.
3341
41e8491f
JK
33422011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3343
3344 Make value allocations more lazy.
3345 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
3346 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 3347 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
3348 instead of allocate_value and set_value_lazy.
3349 * findvar.c (value_of_register_lazy): Likewise.
3350 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 3351 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
3352 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
3353 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
3354 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
3355 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
3356 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
3357 the end, remove set_value_lazy there.
3358 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
3359 instead of allocate_value and set_value_lazy when possible.
3360 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
3361 * value.c (allocate_computed_value): Use allocate_value_lazy instead
3362 of allocate_value and set_value_lazy.
3363 (value_from_contents_and_address): Use allocate_value_lazy instead of
3364 allocate_value and set_value_lazy when possible.
3365
b716877b
AB
33662011-01-12 Andrew Burgess <aburgess@broadcom.com>
3367
3368 * disasm.c (dump_insns): Support dumping opcodes for MI.
3369 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
3370 dumping of instruction opcodes.
3371
d5ae309f
JB
33722011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
3373
3374 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
3375 appropiately.
3376
98871305
TT
33772011-01-11 Tom Tromey <tromey@redhat.com>
3378
3379 * thread.c (do_captured_thread_select): Emit newline before
3380 printing frame.
3381
c378eb4e
MS
33822011-01-11 Michael Snyder <msnyder@vmware.com>
3383
3384 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
3385 * score-tdep.c: Ditto.
3386 * score-tdep.h: Ditto.
3387 * ser-base.c: Ditto.
3388 * ser-go32.c: Ditto.
3389 * serial.c: Ditto.
3390 * serial.h: Ditto.
3391 * ser-mingw.c: Ditto.
3392 * ser-pipe.c: Ditto.
3393 * ser-tcp.c: Ditto.
3394 * ser-unix.c: Ditto.
3395 * sh64-tdep.c: Ditto.
3396 * shnbsd-nat.c: Ditto.
3397 * sh-tdep.c: Ditto.
3398 * sh-tdep.h: Ditto.
3399 * solib.c: Ditto.
3400 * solib-darwin.c: Ditto.
3401 * solib-frv.c: Ditto.
3402 * solib.h: Ditto.
3403 * solib-irix.c: Ditto.
3404 * solib-osf.c: Ditto.
3405 * solib-pa64.c: Ditto.
3406 * solib-som.c: Ditto.
3407 * solib-spu.c: Ditto.
3408 * solib-sunos.c: Ditto.
3409 * solib-svr4.c: Ditto.
3410 * solist.h: Ditto.
3411 * sol-thread.c: Ditto.
3412 * somread.c: Ditto.
3413 * source.c: Ditto.
3414 * source.h: Ditto.
3415 * sparc64-linux-tdep.c: Ditto.
3416 * sparc64-tdep.c: Ditto.
3417 * sparc-linux-nat.c: Ditto.
3418 * sparc-linux-tdep.c: Ditto.
3419 * sparc-sol2-nat.c: Ditto.
3420 * sparc-sol2-tdep.c: Ditto.
3421 * sparc-tdep.c: Ditto.
3422 * sparc-tdep.h: Ditto.
3423 * spu-tdep.c: Ditto.
3424 * stabsread.c: Ditto.
3425 * stabsread.h: Ditto.
3426 * stack.c: Ditto.
3427 * symfile.c: Ditto.
3428 * symfile.h: Ditto.
3429 * symmisc.c: Ditto.
3430 * symtab.c: Ditto.
3431 * symtab.h: Ditto.
3432 * target.c: Ditto.
3433 * target-descriptions.c: Ditto.
3434 * target-descriptions.h: Ditto.
3435 * target.h: Ditto.
3436 * target-memory.c: Ditto.
3437 * terminal.h: Ditto.
3438 * thread.c: Ditto.
3439 * top.c: Ditto.
3440 * tracepoint.c: Ditto.
3441 * tracepoint.h: Ditto.
3442 * trad-frame.h: Ditto.
3443 * typeprint.c: Ditto.
3444
581e13c1
MS
34452011-01-11 Michael Snyder <msnyder@vmware.com>
3446
3447 * ui-file.c: Comment cleanup, mostly periods and spaces.
3448 * ui-file.h: Ditto.
3449 * ui-out.c: Ditto.
3450 * ui-out.h: Ditto.
3451 * utils.c: Ditto.
3452 * v850-tdep.c: Ditto.
3453 * valarith.c: Ditto.
3454 * valops.c: Ditto.
3455 * valprint.c: Ditto.
3456 * valprint.h: Ditto.
3457 * value.c: Ditto.
3458 * value.h: Ditto.
3459 * varobj.c: Ditto.
3460 * varobj.h: Ditto.
3461 * vax-tdep.c: Ditto.
3462 * vec.c: Ditto.
3463 * vec.h: Ditto.
3464 * version.h: Ditto.
3465 * windows-nat.c: Ditto.
3466 * windows-tdep.c: Ditto.
3467 * xcoffread.c: Ditto.
3468 * xcoffsolib.c: Ditto.
3469 * xml-support.c: Ditto.
3470 * xstormy16-tdep.c: Ditto.
3471 * xtensa-tdep.c: Ditto.
3472 * xtensa-tdep.h: Ditto.
3473
90e4670f
TJB
34742011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3475
3476 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
3477 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
3478
e09342b5
TJB
34792011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3480 Thiago Jung Bauermann <bauerman@br.ibm.com>
3481
3482 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 3483 * breakpoint.h
e09342b5
TJB
3484 (struct breakpoint_ops) <resources_needed>: New method.
3485 Initialize to NULL in all existing breakpoint_ops instances.
3486 (struct breakpoint) <exact>: New field.
3487 (target_exact_watchpoints): Declare external global.
3488 * breakpoint.c (target_exact_watchpoints): New global flag.
3489 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
3490 b->enable_state to bp_enabled before calling
3491 hw_watchpoint_used_count.
3492 (hw_watchpoint_used_count): Iterate over all bp_locations in a
3493 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
3494 if available.
3495 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
3496 if the watchpoint is exact.
3497 (resources_needed_watchpoint): New function.
3498 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
3499 (watch_command_1): Set b->exact if the user asked for an exact
3500 watchpoint and one can be set.
3501 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
3502 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
3503 the user asks for an exact watchpoint and one can be set. Return
3504 number of needed debug registers to watch the expression.
3505 * gdbtypes.c (is_scalar_type): New function, based on
3506 valprint.c:scalar_type_p.
3507 (is_scalar_type_recursive): New function.
3508 * gdbtypes.h (is_scalar_type_recursive): Declare.
3509 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
3510 handle regions when ranged watchpoints are available.
3511 (create_watchpoint_request): New function.
3512 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3513 create_watchpoint_request.
3514 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
3515 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
3516 `set powerpc' and `show powerpc' commands.
3517 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3518 Mention documentation comment in the target macro.
3519 (target_region_ok_for_hw_watchpoint): Document return value.
3520
9fa40276
TJB
35212011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3522
3523 * breakpoint.c (update_watchpoint): Decide on using a software or
3524 hardware watchpoint after the bp_locations are created.
3525
77b06cd7
TJB
35262010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3527
3528 Convert hardware watchpoints to use breakpoint_ops.
3529 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
3530 <insert_location>: ... this. Return int instead of void.
3531 Accept pointer to struct bp_location instead of pointer to
3532 struct breakpoint. Adapt all implementations.
f2eb0bc8 3533 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
3534 <remove_location>: ... this. Accept pointer to struct bp_location
3535 instead of pointer to struct breakpoint. Adapt all implementations.
3536 * breakpoint.c (insert_catchpoint): Delete function.
3537 (insert_bp_location): Call the watchpoint or catchpoint's
3538 breakpoint_ops.insert method.
3539 (remove_breakpoint_1): Call the watchpoint or catchpoint's
3540 breakpoint_ops.remove method.
3541 (insert_watchpoint, remove_watchpoint): New functions.
3542 (watchpoint_breakpoint_ops): New structure.
3543 (watch_command_1): Initialize the OPS field.
3544 * inf-child.c (inf_child_insert_fork_catchpoint)
3545 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
3546 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
3547 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
3548 Delete functions.
3549 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
3550 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
3551 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
3552 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
3553 * target.c (update_current_target): Change default implementation of
3554 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
3555 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
3556 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
3557 to_set_syscall_catchpoint to return_one.
3558 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
3559 (debug_to_insert_exec_catchpoint): Report return value.
3560 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
3561 (to_insert_exec_catchpoint): Change declaration to return int instead
3562 of void.
3563
9b20d036
MS
35642011-01-11 Michael Snyder <msnyder@vmware.com>
3565
3566 * arm-tdep.c: Internationalization.
3567 * c-lang.c: Ditto.
3568 * charset.c: Ditto.
3569 * fork-child.c: Ditto.
3570 * nto-procfs.c: Ditto.
3571 * ppc-sysv-tdep.c: Ditto.
3572 * procfs.c: Ditto.
3573 * remote-mips.c: Ditto.
3574 * remote.c: Ditto.
3575 * rs6000-nat.c: Ditto.
3576 * rs6000-tdep.c: Ditto.
3577 * target.c: Ditto.
3578 * valops.c: Ditto.
3579 * value.c: Ditto.
3580 * xml-support.c: Ditto.
3581 * mi/mi-cmd-break.c: Ditto.
3582 * mi/mi-cmd-var.c: Ditto.
3583 * mi/mi-interp.c: Ditto.
3584 * mi/mi-main.c: Ditto.
3585
dae477fe
AB
35862011-01-11 Andrew Burgess <aburgess@broadcom.com>
3587
3588 * remote-sim.c (gdbsim_store_register): Update API to
3589 sim_store_register to check more error conditions.
3590
0df8b418
MS
35912011-01-10 Michael Snyder <msnyder@vmware.com>
3592
3593 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
3594 * nto-tdep.c: Ditto.
3595 * nto-tdep.h: Ditto.
3596 * objc-exp.y: Ditto.
3597 * objc-lang.c: Ditto.
3598 * objfiles.c: Ditto.
3599 * objfiles.h: Ditto.
3600 * observer.c: Ditto.
3601 * opencl-lang.c: Ditto.
3602 * osabi.c: Ditto.
3603 * parse.c: Ditto.
3604 * parser-defs.h: Ditto.
3605 * p-exp.y: Ditto.
3606 * p-lang.c: Ditto.
3607 * posix-hdep.c: Ditto.
3608 * ppcbug-rom.c: Ditto.
3609 * ppc-linux-nat.c: Ditto.
3610 * ppc-linux-tdep.c: Ditto.
3611 * ppc-linux-tdep.h: Ditto.
3612 * ppcnbsd-tdep.c: Ditto.
3613 * ppcobsd-tdep.c: Ditto.
3614 * ppcobsd-tdep.h: Ditto.
3615 * ppc-sysv-tdep.c: Ditto.
3616 * ppc-tdep.h: Ditto.
3617 * printcmd.c: Ditto.
3618 * proc-abi.c: Ditto.
3619 * proc-flags.c: Ditto.
3620 * procfs.c: Ditto.
3621 * proc-utils.h: Ditto.
3622 * progspace.h: Ditto.
3623 * prologue-value.c: Ditto.
3624 * prologue-value.h: Ditto.
3625 * psympriv.h: Ditto.
3626 * psymtab.c: Ditto.
3627 * p-typeprint.c: Ditto.
3628 * p-valprint.c: Ditto.
3629 * ravenscar-sparc-thread.c: Ditto.
3630 * ravenscar-thread.c: Ditto.
3631 * ravenscar-thread.h: Ditto.
3632 * record.c: Ditto.
3633 * regcache.c: Ditto.
3634 * regcache.h: Ditto.
3635 * remote.c: Ditto.
3636 * remote-fileio.c: Ditto.
3637 * remote-fileio.h: Ditto.
3638 * remote.h: Ditto.
3639 * remote-m32r-sdi.c: Ditto.
3640 * remote-mips.c: Ditto.
3641 * remote-sim.c: Ditto.
3642 * rs6000-aix-tdep.c: Ditto.
3643 * rs6000-nat.c: Ditto.
3644 * rs6000-tdep.c: Ditto.
3645
0d7a18f7
MS
36462011-01-10 Michael Snyder <msnyder@vmware.com>
3647
3648 * charset.c (validate): Internationalization.
3649 * coffread.c (read_one_sym): Ditto.
3650 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
3651 * h8300-tdep.c (H8300_extract_return_value): Ditto.
3652 * inflow.c (new_tty): Ditto.
3653 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
3654 * m32c-tdep.c (m32c_return_value): Ditto.
3655 * mep-tdep.c (mep_store_return_value): Ditto.
3656 * score-tdep.c (score7_fetch_insn): Ditto.
3657 * ser-mingw.c (pipe_windows_open): Ditto.
3658 * sh64-tdep.c (sh64_extract_return_value): Ditto.
3659 * spu-tdep.c (spu_register_type): Ditto.
3660 * tracepoint.c (trace_find_command): Ditto.
3661 * valarith.c (value_pos): Ditto.
3662
9a153e0b
JB
36632011-01-10 Joel Brobecker <brobecker@adacore.com>
3664
3665 * ada-valprint.c (printstr): Minor comment reformatting.
3666
35ecd2d6
MS
36672011-01-08 Michael Snyder <msnyder@vmware.com>
3668
3669 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
3670 markup.
3671
1777feb0
MS
36722011-01-08 Michael Snyder <msnyder@vmware.com>
3673
3674 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
3675 * hppa-hpux-tdep.c: Ditto.
3676 * hppa-linux-nat.c: Ditto.
3677 * hppa-linux-tdep.c: Ditto.
3678 * hppanbsd-tdep.c: Ditto.
3679 * hppa-tdep.c: Ditto.
3680 * hppa-tdep.h: Ditto.
3681 * hpux-thread.c: Ditto.
3682 * i386-cygwin-tdep.c: Ditto.
3683 * i386-darwin-nat.c: Ditto.
3684 * i386gnu-nat.c: Ditto.
3685 * i386-linux-nat.c: Ditto.
3686 * i386-linux-tdep.c: Ditto.
3687 * i386-nat.c: Ditto.
3688 * i386-nat.h: Ditto.
3689 * i386nbsd-tdep.c: Ditto.
3690 * i386-sol2-nat.c: Ditto.
3691 * i386-stub.c: Ditto.
3692 * i386-tdep.c: Ditto.
3693 * i386-tdep.h: Ditto.
3694 * i387-tdep.c: Ditto.
3695 * ia64-linux-nat.c: Ditto.
3696 * ia64-linux-tdep.c: Ditto.
3697 * ia64-tdep.c: Ditto.
3698 * infcall.c: Ditto.
3699 * infcall.h: Ditto.
3700 * infcmd.c: Ditto.
3701 * inferior.c: Ditto.
3702 * inferior.h: Ditto.
3703 * infloop.c: Ditto.
3704 * inflow.c: Ditto.
3705 * infrun.c: Ditto.
3706 * interps.c: Ditto.
3707 * interps.h: Ditto.
3708 * iq2000-tdep.c: Ditto.
3709 * irix5-nat.c: Ditto.
3710 * jit.c: Ditto.
3711 * jit.h: Ditto.
3712 * jv-exp.y: Ditto.
3713 * jv-lang.c: Ditto.
3714 * jv-lang.h: Ditto.
3715 * jv-typeprint.c: Ditto.
3716 * jv-valprint.c: Ditto.
3717 * language.c: Ditto.
3718 * language.h: Ditto.
3719 * linespec.c: Ditto.
3720 * linux-fork.c: Ditto.
3721 * linux-nat.c: Ditto.
3722 * linux-thread-db.c: Ditto.
3723 * lm32-tdep.c: Ditto.
3724
025bb325
MS
37252011-01-08 Michael Snyder <msnyder@vmware.com>
3726
3727 * m2-exp.y: Comment cleanup, mostly periods and spaces.
3728 * m2-lang.c: Ditto.
3729 * m2-typeprint.c: Ditto.
3730 * m2-valprint.c: Ditto.
3731 * m32c-tdep.c: Ditto.
3732 * m32r-linux-nat.c: Ditto.
3733 * m32r-rom.c: Ditto.
3734 * m32r-tdep.c: Ditto.
3735 * m32r-tdep.h: Ditto.
3736 * m68hc11-tdep.c: Ditto.
3737 * m58klinux-nat.c: Ditto.
3738 * m68k-tdep.c: Ditto.
3739 * m88k-tdep.c: Ditto.
3740 * m88k-tdep.h: Ditto.
3741 * machoread.c: Ditto.
3742 * macrocmd.c: Ditto.
3743 * macroexp.c: Ditto.
3744 * macrotab.c: Ditto.
3745 * main.c: Ditto.
3746 * maint.c: Ditto.
3747 * mdebugread.c: Ditto.
3748 * mdebugread.h: Ditto.
3749 * memattr.c: Ditto.
3750 * memattr.h: Ditto.
3751 * memory-map.h: Ditto.
3752 * mep-tdep.c: Ditto.
3753 * microblaze-rom.c: Ditto.
3754 * microblaze-tdep.c: Ditto.
3755 * minsyms.c: Ditto.
3756 * mips-irix-tdep.c: Ditto.
3757 * mips-linux-nat.c: Ditto.
3758 * mips-linux-tdep.c: Ditto.
3759 * mips-linux-tdep.h: Ditto.
3760 * mipsnbsd-nat.c: Ditto.
3761 * mipsnbsd-tdep.c: Ditto.
3762 * mipsread.c: Ditto.
3763 * mips-tdep.c: Ditto.
3764 * mips-tdep.h: Ditto.
3765 * mn10300-linux-tdep.c: Ditto.
3766 * mn10300-tdep.c: Ditto.
3767 * mn10300-tdep.h: Ditto.
3768 * monitor.c: Ditto.
3769 * monitor.h: Ditto.
3770 * moxie-tdep.c: Ditto.
3771 * moxie-tdep.h: Ditto.
3772 * mt-tdep.c: Ditto.
3773
1642781b
MF
37742011-01-08 Mike Frysinger <vapier@gentoo.org>
3775
3776 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
3777
394b0adb
JB
37782011-01-08 Robert Millan <rmh@gnu.org>
3779
3780 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
3781
b670013c
MS
37822011-01-07 Michael Snyder <msnyder@vmware.com>
3783
3784 * charset.c (_initialize_charset): Fix typo in string.
3785
a743e542
MS
37862011-01-07 Michael Snyder <msnyder@vmware.com>
3787
3788 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
3789 for i18n.
f2eb0bc8 3790 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
3791 Split line so that operator goes to beginning of line.
3792 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
3793 assignment out of if statement.
3794
0963b4bd
MS
37952011-01-07 Michael Snyder <msnyder@vmware.com>
3796
3797 * ada-lang.c: Comment cleanup, mostly periods and spaces.
3798 * ada-lang.h: Ditto.
3799 * ada-tasks.c: Ditto.
3800 * ada-valprint.c: Ditto.
3801 * aix-threads.c: Ditto.
3802 * alpha-linux-nat.c: Ditto.
3803 * alpha-linux-tdep.c: Ditto.
3804 * alpha-mdebug-tdep.c: Ditto.
3805 * alpha-nat.c: Ditto.
3806 * alpha-osf1-tdep.c: Ditto.
3807 * alpha-tdep.c: Ditto.
3808 * alphabsd-nat.c: Ditto.
3809 * alphabsd-tdep.c: Ditto.
3810 * amd64-darwin-tdep.c: Ditto.
3811 * amd64-linux-nat.c: Ditto.
3812 * amd64-linux-tdep.c: Ditto.
3813 * amd64-sol2-tdep.c: Ditto.
3814 * amd64-tdep.c: Ditto.
3815 * amd64-fbsd-tdep.c: Ditto.
3816 * amd64-nbsd-tdep.c: Ditto.
3817 * amd64-obsd-tdep.c: Ditto.
3818 * amd64-linux-nat.c: Ditto.
3819 * amd64-linux-tdep.c: Ditto.
3820 * arm-tdep.c: Ditto.
3821 * arm-tdep.h: Ditto.
3822 * armnbsd-nat.c: Ditto.
3823 * avr-tdep.c: Ditto.
3824 * bfin-tdep.c: Ditto.
3825 * bsd-kvm.c: Ditto.
3826 * c-typeprintc: Ditto.
3827 * c-valprint.c: Ditto.
3828 * coff-pe-read.h: Ditto.
3829 * coffreead.c: Ditto.
3830 * cris-tdep.c: Ditto.
3831 * d-lang.c: Ditto.
3832 * darwin-nat-info.c: Ditto.
3833 * darwin-nat.c: Ditto.
3834 * dbug-rom.c: Ditto.
3835 * dbxread.c: Ditto.
3836 * dcache.c: Ditto.
3837 * dcache.h: Ditto.
3838 * dec-thread.c: Ditto.
3839 * defs.h: Ditto.
3840 * demangle.c: Ditto.
3841 * dicos-tdep.c: Ditto.
3842 * dictionary.c: Ditto.
3843 * dictionary.h: Ditto.
3844 * dink32-rom.c: Ditto.
3845 * disasm.c: Ditto.
3846 * doublest.c: Ditto.
3847 * dsrec.c: Ditto.
3848 * dummy-frame.c: Ditto.
3849 * dwarf2-frame.c: Ditto.
3850 * dwarf2expr.c: Ditto.
3851 * dwarf2loc.c: Ditto.
3852 * dwarf2read.c: Ditto.
3853 * elfread.c: Ditto.
3854 * environ.c: Ditto.
3855 * eval.c: Ditto.
3856 * event-top.h: Ditto.
3857 * exceptions.c: Ditto.
3858 * exceptions.h: Ditto.
3859 * exec.c: Ditto.
3860 * expprint.c: Ditto.
3861 * expression.h: Ditto.
3862 * f-exp.y: Ditto.
3863 * f-lang.c: Ditto.
3864 * f-lang.h: Ditto.
3865 * f-typeprint.c: Ditto.
3866 * f-valprint.c: Ditto.
3867 * fbsd-nat.c: Ditto.
3868 * findvar.c: Ditto.
3869 * fork-child.c: Ditto.
3870 * frame.c: Ditto.
3871 * frame.h: Ditto.
3872 * frv-linux-tdep.c: Ditto.
3873 * frv-tdep.c: Ditto.
3874 * gcore.c: Ditto.
3875 * gdb-stabs.h: Ditto.
3876 * gdb_assert.h: Ditto.
3877 * gdb_string.h: Ditto.
3878 * gdb_thread_db.h: Ditto.
3879 * gdb_wait.h: Ditto.
3880 * gdbarch.sh: Ditto.
3881 * gdbcore.h: Ditto.
3882 * gdbthread.h: Ditto.
3883 * gdbtypes.c: Ditto.
3884 * gdbtypes.h: Ditto.
3885 * gnu-nat.c: Ditto.
3886 * gnu-nat.h: Ditto.
3887 * gnu-v2-abi.c: Ditto.
3888 * gnu-v3-abi.c: Ditto.
3889 * go32-nat.c: Ditto.
3890 * gdbarch.c: Regenerate.
3891 * gdbarch.h: Regenerate.
3892
ac74f770
MS
38932011-01-07 Michael Snyder <msnyder@vmware.com>
3894
3895 * ax-gdb.c: Adjust some long output strings.
3896 * breakpoint.c: Ditto.
3897 * charset.c: Ditto.
3898 * cp-abi.c: Ditto.
3899 * infcall.c: Ditto.
3900 * infrun.c: Ditto.
3901 * linux-nat.c: Ditto.
3902 * solib-pa64.c: Ditto.
3903 * solib-som.c: Ditto.
3904
d8e22779
TT
39052011-01-06 Tom Tromey <tromey@redhat.com>
3906
3907 PR python/12367:
3908 * NEWS: Add item.
3909 * python/python.c (GdbMethods): Add "newest_frame" method.
3910 * python/python-internal.h (gdbpy_newest_frame): Declare.
3911 * python/py-frame.c (gdbpy_newest_frame): New function.
3912
a255712f
PP
39132010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3914
3915 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
3916 * jit.c (jit_debug): New variable.
3917 (show_jit_debug): New function.
3918 (struct target_buffer): Use ULONGEST.
3919 (bfd_open_from_target_memory): Likewise.
3920 (jit_register_code, jit_inferior_init): Add debug output.
3921 (_initialize_jit): Register "debug jit" command.
3922
ccfc3d6e
TT
39232011-01-06 Tom Tromey <tromey@redhat.com>
3924
3925 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
3926 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
3927 and ARCH_FRAME.
3928
57126e4a
TT
39292011-01-06 Tom Tromey <tromey@redhat.com>
3930
3931 * python/py-frame.c (frapy_block): Use get_frame_block.
3932
16dfc9ce
JB
39332011-01-06 Joel Brobecker <brobecker@adacore.com>
3934
3935 Do not stop on SIGPRIO signals by default
3936 * infrun.c (_initialize_infrun): Unset signal_stop and
3937 signal_print for TARGET_SIGNAL_PRIO.
3938
b1ce2347
JB
39392011-01-06 Joel Brobecker <brobecker@adacore.com>
3940
3941 * ada-tasks.c: Fix style violation in comment.
3942
8f7e195f
JB
39432011-01-06 Joel Brobecker <brobecker@adacore.com>
3944
3945 * linespec.c (decode_compound, find_method): Remove trailing \n
3946 at end of error string.
3947 * solib-irix.c (irix_current_sos): Likewise.
3948 * varobj.c (uninstall_variable): Likewise.
3949
e9bdf92c
JB
39502011-01-06 Joel Brobecker <brobecker@adacore.com>
3951
3952 * copyright.py: New script.
3953 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
3954 Launch emacs without exec'ing. Call copyright.py afterwards.
3955
3e43a32a
MS
39562011-01-05 Michael Snyder <msnyder@vmware.com>
3957
3958 * addrmap.c: Shorten lines of >= 80 columns.
3959 * arch-utils.c: Ditto.
3960 * arch-utils.h: Ditto.
3961 * ax-gdb.c: Ditto.
3962 * ax-general.c: Ditto.
3963 * bcache.c: Ditto.
3964 * blockframe.c: Ditto.
3965 * breakpoint.c: Ditto.
3966 * buildsym.c: Ditto.
3967 * c-lang.c: Ditto.
3968 * c-typeprint.c: Ditto.
3969 * charset.c: Ditto.
3970 * coffread.c: Ditto.
3971 * command.h: Ditto.
3972 * corelow.c: Ditto.
3973 * cp-abi.c: Ditto.
3974 * cp-namespace.c: Ditto.
3975 * cp-support.c: Ditto.
3976 * dbug-rom.c: Ditto.
3977 * dbxread.c: Ditto.
3978 * defs.h: Ditto.
3979 * dfp.c: Ditto.
3980 * dfp.h: Ditto.
3981 * dictionary.c: Ditto.
3982 * disasm.c: Ditto.
3983 * doublest.c: Ditto.
3984 * dwarf2-frame.c: Ditto.
3985 * dwarf2expr.c: Ditto.
3986 * dwarf2loc.c: Ditto.
3987 * dwarf2read.c: Ditto.
3988 * elfread.c: Ditto.
3989 * eval.c: Ditto.
3990 * event-loop.c: Ditto.
3991 * event-loop.h: Ditto.
3992 * exceptions.h: Ditto.
3993 * exec.c: Ditto.
3994 * expprint.c: Ditto.
3995 * expression.h: Ditto.
3996 * f-lang.c: Ditto.
3997 * f-valprint.c: Ditto.
3998 * findcmd.c: Ditto.
3999 * frame-base.c: Ditto.
4000 * frame-unwind.c: Ditto.
4001 * frame-unwind.h: Ditto.
4002 * frame.c: Ditto.
4003 * frame.h: Ditto.
4004 * gcore.c: Ditto.
4005 * gdb-stabs.h: Ditto.
4006 * gdb_assert.h: Ditto.
4007 * gdb_dirent.h: Ditto.
4008 * gdb_obstack.h: Ditto.
4009 * gdbcore.h: Ditto.
4010 * gdbtypes.c: Ditto.
4011 * gdbtypes.h: Ditto.
4012 * inf-ttrace.c: Ditto.
4013 * infcall.c: Ditto.
4014 * infcmd.c: Ditto.
4015 * inflow.c: Ditto.
4016 * infrun.c: Ditto.
4017 * inline-frame.h: Ditto.
4018 * language.c: Ditto.
4019 * language.h: Ditto.
4020 * libunwind-frame.c: Ditto.
4021 * libunwind-frame.h: Ditto.
4022 * linespec.c: Ditto.
4023 * linux-nat.c: Ditto.
4024 * linux-nat.h: Ditto.
4025 * linux-thread-db.c: Ditto.
4026 * machoread.c: Ditto.
4027 * macroexp.c: Ditto.
4028 * macrotab.c: Ditto.
4029 * main.c: Ditto.
4030 * maint.c: Ditto.
4031 * mdebugread.c: Ditto.
4032 * memattr.c: Ditto.
4033 * minsyms.c: Ditto.
4034 * monitor.c: Ditto.
4035 * monitor.h: Ditto.
4036 * objfiles.c: Ditto.
4037 * objfiles.h: Ditto.
4038 * osabi.c: Ditto.
4039 * p-typeprint.c: Ditto.
4040 * p-valprint.c: Ditto.
4041 * parse.c: Ditto.
4042 * printcmd.c: Ditto.
4043 * proc-events.c: Ditto.
4044 * procfs.c: Ditto.
4045 * progspace.c: Ditto.
4046 * progspace.h: Ditto.
4047 * psympriv.h: Ditto.
4048 * psymtab.c: Ditto.
4049 * record.c: Ditto.
4050 * regcache.c: Ditto.
4051 * regcache.h: Ditto.
4052 * remote-fileio.c: Ditto.
4053 * remote.c: Ditto.
4054 * ser-mingw.c: Ditto.
4055 * ser-tcp.c: Ditto.
4056 * ser-unix.c: Ditto.
4057 * serial.c: Ditto.
4058 * serial.h: Ditto.
4059 * solib-frv.c: Ditto.
4060 * solib-irix.c: Ditto.
4061 * solib-osf.c: Ditto.
4062 * solib-pa64.c: Ditto.
4063 * solib-som.c: Ditto.
4064 * solib-sunos.c: Ditto.
4065 * solib-svr4.c: Ditto.
4066 * solib-target.c: Ditto.
4067 * solib.c: Ditto.
4068 * somread.c: Ditto.
4069 * source.c: Ditto.
4070 * stabsread.c: Ditto.
4071 * stabsread.c: Ditto.
4072 * stack.c: Ditto.
4073 * stack.h: Ditto.
4074 * symfile-mem.c: Ditto.
4075 * symfile.c: Ditto.
4076 * symfile.h: Ditto.
4077 * symmisc.c: Ditto.
4078 * symtab.c: Ditto.
4079 * symtab.h: Ditto.
4080 * target-descriptions.c: Ditto.
4081 * target-memory.c: Ditto.
4082 * target.c: Ditto.
4083 * target.h: Ditto.
4084 * terminal.h: Ditto.
4085 * thread.c: Ditto.
4086 * top.c: Ditto.
4087 * tracepoint.c: Ditto.
4088 * tracepoint.h: Ditto.
4089 * ui-file.c: Ditto.
4090 * ui-file.h: Ditto.
4091 * ui-out.h: Ditto.
4092 * user-regs.c: Ditto.
4093 * user-regs.h: Ditto.
4094 * utils.c: Ditto.
4095 * valarith.c: Ditto.
4096 * valops.c: Ditto.
4097 * valprint.c: Ditto.
4098 * valprint.h: Ditto.
4099 * value.c: Ditto.
4100 * varobj.c: Ditto.
4101 * varobj.h: Ditto.
4102 * vec.h: Ditto.
4103 * xcoffread.c: Ditto.
4104 * xcoffsolib.c: Ditto.
4105 * xcoffsolib.h: Ditto.
4106 * xml-syscall.c: Ditto.
4107 * xml-tdesc.c: Ditto.
4108
9a2b4c1b
MS
41092011-01-05 Michael Snyder <msnyder@vmware.com>
4110
4111 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
4112 * cli/cli-decode.c: Ditto.
4113 * cli/cli-dump.c: Ditto.
4114 * cli/cli-logging.c: Ditto.
4115 * cli/cli-script.c: Ditto.
4116 * cli/cli-setshow.c: Ditto.
4117 * common/signals.c: Ditto.
4118 * mi/mi-cmd-break.c: Ditto.
4119 * mi/mi-cmd-disas.c: Ditto.
4120 * mi/mi-cmd-stack.c: Ditto.
4121 * mi/mi-cmd-var.c: Ditto.
4122 * mi/mi-cmds.c: Ditto.
4123 * mi/mi-common.h: Ditto.
4124 * mi/mi-console.c: Ditto.
4125 * mi/mi-interp.c: Ditto.
4126 * mi/mi-main.c: Ditto.
4127 * osf-share/cma_attr.c: Ditto.
4128 * osf-share/cma_deb_core.h: Ditto.
4129 * osf-share/cma_debug_client.h: Ditto.
4130 * osf-share/cma_handle.h: Ditto.
4131 * osf-share/cma_mutex.h: Ditto.
4132 * osf-share/cma_stack_int.h: Ditto.
4133 * osf-share/cma_tcb_defs.h: Ditto.
4134 * python/py-auto-load.c: Ditto.
4135 * python/py-breakpoint.c: Ditto.
4136 * python/py-cmd.c: Ditto.
4137 * python/py-frame.c: Ditto.
4138 * python/py-objfile.c: Ditto.
4139 * python/py-param.c: Ditto.
4140 * python/py-progspace.c: Ditto.
4141 * python/py-symbol.c: Ditto.
4142 * python/py-value.c: Ditto.
4143 * python/python-internal.h: Ditto.
4144 * python/python.c: Ditto.
4145 * tui/tui-data.c: Ditto.
4146 * tui/tui-disasm.c: Ditto.
4147 * tui/tui-hooks.c: Ditto.
4148 * tui/tui-io.c: Ditto.
4149 * tui/tui-layout.c: Ditto.
4150 * tui/tui-regs.c: Ditto.
4151 * tui/tui-source.c: Ditto.
4152 * tui/tui-stack.c: Ditto.
4153 * tui/tui-win.c: Ditto.
4154 * tui/tui-windata.c: Ditto.
4155 * tui/tui-winsource.c: Ditto.
4156
44944448
JB
41572011-01-05 Joel Brobecker <brobecker@adacore.com>
4158
4159 * configure.ac, gdb.1: Copyright year update.
4160
ebedcab5
JK
41612011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4162
4163 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
4164 this_pc_in_block, morestack_msym and morestack_name. Check for
4165 "__morestack" minimal symbol there.
4166
e5cc9f32
JB
41672011-01-03 Joel Brobecker <brobecker@adacore.com>
4168
4169 * symfile.c (find_sym_fns): Add call to dont_repeat.
4170
7b6bb8da
JB
41712011-01-01 Joel Brobecker <brobecker@adacore.com>
4172
4173 Copyright year update in most files (performed by copyright.sh).
4174
71ce852c
JB
41752011-01-01 Joel Brobecker <brobecker@adacore.com>
4176
4177 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 4178
c3c1ebe8 4179For older changes see ChangeLog-2010.
c906108c
SS
4180\f
4181Local Variables:
4182mode: change-log
4183left-margin: 8
4184fill-column: 74
4185version-control: never
57da7796 4186coding: utf-8
c906108c 4187End: