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