* c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1c5b7826
TT
12012-09-21 Tom Tromey <tromey@redhat.com>
2
3 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
4 TYPE_CODE_UNION>: Unify, removing a goto.
5
62a49610
TT
62012-09-21 Tom Tromey <tromey@redhat.com>
7
8 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
9
2603f7ee
AB
102012-09-21 Andrew Burgess <aburgess@broadcom.com>
11
12 * findvar.c (read_frame_register_value): Mark the result value as
13 optimized out if any of the input registers have been optimized out.
14
810849a3
AS
152012-09-21 Andreas Schwab <schwab@linux-m68k.org>
16
17 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
18
0953dec1
SP
192012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
20
21 * eval.c (evaluate_subexp_standard): Eliminate single-use
22 variable LOWER.
23
82a90ccf
YQ
242012-09-21 Yao Qi <yao@codesourcery.com>
25
26 * mi/mi-interp.c: Declare mi_record_changed.
27 (mi_interpreter_init): Call observer_attach_record_changed.
28 (mi_record_changed): New.
29 * record.c (record_open): Call observer_notify_record_changed.
30 (cmd_record_stop): Call observer_notify_record_changed.
31 * NEWS: Mention it.
32
d7de8e3c
TT
332012-09-20 Tom Tromey <tromey@redhat.com>
34
35 * NEWS: Update.
36 * python/python.c (finalize_python): New function.
37 (_initialize_python): Make a final cleanup.
38
43c7c83d
DE
392012-09-19 Doug Evans <dje@google.com>
40
41 * buildsym.h (param_symbols): Delete, unused.
42 (context_stack): Delete member "params", unused.
43 * buildsym.c (push_context): Update.
44 * dwarf2read.c (read_func_scope): Update.
45
aa9259cc
TS
462012-09-19 Thomas Schwinge <thomas@codesourcery.com>
47
a6521d9a
TS
48 * sh-tdep.c (sh_register_convert_to_virtual)
49 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
50 all callers. Just do a memcpy if not the little-endian case.
51
f92589cb
TS
52 * h8300-tdep.c (h8300_gdbarch_init): Invoke
53 set_gdbarch_double_format and set_gdbarch_long_double_format.
54 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
55 set_gdbarch_double_format.
56 * sh-tdep.c (sh_gdbarch_init): Likewise.
57
aa9259cc
TS
58 * NEWS: Document the removal of SH's 'regs' command.
59 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
60 command.
61
c1d780c2
SDJ
622012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
63
64 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
65 `jump'.
66
4ae24af0
JB
672012-09-18 Joel Brobecker <brobecker@adacore.com>
68
69 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
70 language when iterating over symbols.
71
bb25a15c
YQ
722012-09-18 Yao Qi <yao@codesourcery.com>
73
74 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
75 (mi_interpreter_init): Call observer_attach_tsv_created and
76 observer_attach_tsv_deleted.
77 (mi_tsv_created, mi_tsv_deleted): New.
78 * tracepoint.c (delete_trace_state_variable): Call
79 observer_notify_tsv_deleted.
80 (trace_variable_command): Call observer_notify_tsv_created.
81 (delete_trace_variable_command): Call
82 observer_notify_tsv_deleted.
83 (create_tsv_from_upload): Call observer_notify_tsv_created.
84 * NEWS: Mention it.
85
201b4506
YQ
862012-09-18 Yao Qi <yao@codesourcery.com>
87
88 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
89 if traceframe changed.
90 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
91 "trace-find".
92 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
93 (mi_interpreter_init): Hook mi_traceframe_changed to observer
94 'traceframe_changed'.
95 (mi_traceframe_changed): New.
96 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
97 New field.
98 * NEWS: Mention the new MI notification.
99
eaeb12db
MW
1002012-09-17 Mike Wrighton <wrighton@codesourcery.com>
101
102 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
103
6e3c039e
JK
1042012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
105
106 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
107 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
108 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
109 Extend code also for PaX support. Convert all gdb_assert to warning
110 calls.
111
9a950c7c
JK
1122012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
113
114 Implement auto-load user conveniences suggested by Doug Evans.
115 * auto-load.c: Include top.h.
116 (file_is_auto_load_safe): New variable advice_printed. Print advice.
117 (_initialize_auto_load): New variable scripts_directory_help. Mention
118 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
119 scripts-directory. Document in online help one can use also files for
120 set auto-load safe-path.
121 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
122 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
123
deec9a9d
SP
1242012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
125
126 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
127 of LEN.
128
354ecfd5
SP
1292012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
130
131 * m2-valprint.c (m2_print_array_contents): Eliminate variable
132 ELTLEN and use TYPE_LENGTH directly.
133 (m2_val_print): Likewise.
134 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
135 variable LEN and use TYPE_LENGTH directly.
136 (m68k_svr4_store_return_value): Likewise.
137 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
138 ARGLEN and use TYPE_LENGTH directly.
139 (mips_o64_push_dummy_call): Likewise.
140 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
141 variable LENGTH and use TYPE_LENGTH directly.
142 (s390_function_arg_float): Likewise.
143 (s390_function_arg_integer): Likewise.
144 (s390_push_dummy_call): Likewise.
145 (s390_return_value_convention): Likewise.
146 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
147 TYPE_LENGTH directly.
148
6fc1c773
YQ
1492012-09-17 Yao Qi <yao@codesourcery.com>
150
151 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
152 Update comment to add_setshow_integer_cmd.
153 * cli/cli-setshow.c (do_set_command): Handle case
154 'var_zuinteger_unlimited'.
155 (do_show_command): Likewise.
156 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
157 for command 'remotetimeout'.
158 * command.h (enum var_types): New zuinteger_unlimited. Update comment
159 to var_integer.
160 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
161 for command 'set listsize'.
162
6acef6cd
SP
1632012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
164
165 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
166 variable LEN.
167
1ab3b62c
JK
1682012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
169
170 PR 14119
171 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
172 (frame_pop): Drop also TAILCALL_FRAME frames.
173 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
174
acf9414f
JK
1752012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
176 Pedro Alves <palves@redhat.com>
177
178 PR 14548
179 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
180 function start if we are already at function start. Both for
181 reverse-next and for reverse-step into function without line number
182 info.
183
193facb3
JK
1842012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
185
186 Code cleanup - rename 'inline' depth to 'artificial' depth.
187 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
188 frame_id_artificial_p, extend the comment.
189 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
190 * frame.c (fprint_frame_id): Rename at a user, change debug output
191 text to "artificial=".
192 (skip_inlined_frames): Rename to ...
193 (skip_artificial_frames): ... here. Extend the comment.
194 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
195 (frame_id_inlined_p): Rename to ...
196 (frame_id_artificial_p): ... here. Rename at a user.
197 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
198 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
199 at a user.
200 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
201 Extend the comment.
202 (frame_id_inlined_p): Rename to ...
203 (frame_id_artificial_p): ... here.
204 * inline-frame.c (inline_frame_this_id): Rename at a user.
205
42056501
AB
2062012-09-14 Andrew Burgess <aburgess@broadcom.com>
207
208 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
209 vector variables using vector_size syntax rather than array
210 syntax.
211
84c47588
SP
2122012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
213
214 * valarith.c (value_concat): Replace unsafe ALLOCA with
215 XMALLOC/XFREE.
216
f4045bcb
PA
2172012-09-14 Pedro Alves <palves@redhat.com>
218
219 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
220
63b46266
YPK
2212012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
222
223 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
224 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
225 data-directory as appropriate.
226
ddd7a8e7
SP
2272012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
228
229 * printcmd.c (ui_printf): Eliminate single-use variable
230 PARAM_LEN.
231
d649a38e
YQ
2322012-09-14 Yao Qi <yao@codesourcery.com>
233 Pedro Alves <palves@redhat.com>
234
235 * valops.c (value_assign): Move observer_notify_target_changed
236 below to replace reinit_frame_cache.
237
b9516fa1
YPK
2382012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
239
240 Refactor Python "gdb" module into a proper Python package, by
241 introducing a new "_gdb" module for code implemented in C, and
242 using reload/__import__ instead of exec.
243 * python/lib/gdb/__init__.py: Import * from _gdb.
244 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
245 prompt_hook, sys.argv): Moved from finish_python_initialization.
246 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
247 (packages, auto_load_packages): New list and function replacing
248 module_dict and auto-loading code, using __file__ instead of
249 gdb.PYTHONDIR and reload/__import__ instead of exec.
250 (GdbSetPythonDirectory): Replacing function of the same name
251 from finish_python_initialization, using reload/__import__ instead
252 of exec, as well as call auto_load_packages.
253 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
254 gdb_python_module and not gdb_module.
255 * python/python-internal.h (gdb_python_module): Declare.
256 * python/python.c (gdb_python_module): New global.
257 (before_prompt_hook): Check gdb_python_module and not gdb_module.
258 (_initialize_python): Rename gdb module to _gdb.
259 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
260 (finish_python_initialization): Move Python code to
261 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
262 __main__.
263
aa0fbdd8
PA
2642012-09-13 Pedro Alves <palves@redhat.com>
265
266 * Makefile.in (COMMON_OBS): Add registry.o.
267 * registry.c: New file.
268 * registry.h (struct registry_container): Declare.
269 (registry_data_callback): New typedef.
270 (struct registry_data, struct registry_data_registration, struct
271 registry_data_registry): New type.
272 (register_data_with_cleanup, registry_alloc_data)
273 (registry_callback_adaptor, registry_clear_data)
274 (registry_container_free_data, registry_set_data, registry_data):
275 Declare.
276 (DEFINE_REGISTRY): Refactor structures and functions as shims over
277 the new common structures and functions.
278 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
279 callback typedefs.
280
42b5c53d
MW
2812012-09-12 Mike Wrighton <wrighton@codesourcery.com>
282
283 * remote.c (remote_insert_hw_breakpoint): Throw exception if
284 there is an error inserting hardware breakpoints and use the
285 error message from the target.
286
287 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
288 Catch this exception and print the error message contained within. Do not
289 print the default hardware error breakpoint message in this case.
290
a1b64ce1
DE
2912012-09-12 Doug Evans <dje@google.com>
292
293 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
294 cu == NULL.
295
83a788b8
DE
2962012-09-11 Doug Evans <dje@google.com>
297
298 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
299 .gdb_index symbol attributes if there are none.
300
d9eaeb59
JB
3012012-09-11 Joel Brobecker <brobecker@adacore.com>
302
303 * symtab.h (struct minimal_symbol) [has_size]: New field.
304 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
305 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
306 * printcmd.c (build_address_symbolic): Only filter out zero-sized
307 minimal symbols if the symbol's size is actually known.
308 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
309 of msymbol's size field. Add comment.
310 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
311 SET_MSYMBOL_SIZE to set the minimal symbol size.
312
a83e9154
JB
3132012-09-11 Joel Brobecker <brobecker@adacore.com>
314
315 * minsyms.c (install_minimal_symbols): Use memset to fill entire
316 minimal_symbol struct object, rather than setting some of its
317 fields one by one.
318
350b1b26
AB
3192012-09-11 Andrew Burgess <aburgess@broadcom.com>
320
321 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
322 passed_a_ptr flag when displaying typedef types.
323
2fa15f23
JB
3242012-09-10 Joel Brobecker <brobecker@adacore.com>
325
326 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
327 the optimized_out flag is preserved.
328
5152ff90
AG
3292012-09-10 Anthony Green <green@moxielogic.com>
330
331 * moxie-tdep.c (moxie_analyze_prologue): Update for function
332 prologue changes in GCC.
333
5b4f6e25
KS
3342012-09-10 Keith Seitz <keiths@redhat.com>
335
336 PR gdb/13483
337 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
338 (BOOL_CONVERSION_BADNESS): ... this.
339 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
340 (rank_one_type): Allow all boolean conversions
341 permitted by the standard.
342
f1070426
TT
3432012-09-06 Tom Tromey <tromey@redhat.com>
344
345 * python/py-newobjfileevent.c (create_new_objfile_event_object):
346 Don't decref py_objfile.
347
a8db4212
YPK
3482012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
349
350 Do not enable -lmcheck by default when Python is enabled with
351 threading support.
352 * configure.ac: (python_has_threads) New variable, by testing
353 if WITH_THREAD is defined in Python.h.
354 Move --enable-lmcheck after --with-python.
355 Do not enable -lmcheck by default if python_has_threads=yes.
356 Warn if --enable-lmcheck and python_has_threads=yes.
357 * configure: Regenerate.
358
648beb2b
YQ
3592012-08-31 Yao Qi <yao@codesourcery.com>
360
361 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
362 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
363 Update some commands.
364 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
365 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
366 to 1.
367
ef07a9f7
YQ
3682012-08-31 Yao Qi <yao@codesourcery.com>
369
370 * mi/mi-cmds.c (mi_cmds): Add 'static'.
371
fda395cf
YPK
3722012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
373
374 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
375
8efd8e78
DE
3762012-08-29 Doug Evans <dje@google.com>
377
378 * main.c (print_gdb_help): Remove reference to
379 --use-deprecated-index-sections.
380
883b9c6c
YQ
3812012-08-28 Yao Qi <yao@codesourcery.com>
382
383 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
384 (init_cmds): Call add_setshow_uinteger_cmd for command
385 'max-user-call-depth'.
386 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
387 declaration of 'max_user_call_depth'.
388 * frame.c (backtrace_limit): Add 'unsigned'.
389 (_initialize_frame): Call add_setshow_uinteger_cmd for command
390 'limit'.
391 * remote.c (remoteaddresssize): Add 'unsigned'.
392 (remote_address_masked): Change local var 'address_size' to
393 'unsigned'.
394 (_initialize_remote): Call add_setshow_uinteger_cmd for
395 'remoteaddresssize'.
396 * top.c (history_size): Add 'unsigned'.
397 (show_commands): Change local variables to 'unsigned'.
398 (set_history_size_command): Don't check history_size is negative.
399 Adjust the condition to call unstifle_history and set history_size
400 to UNIT_MAX.
401
1292279a
PA
4022012-08-28 Pedro Alves <palves@redhat.com>
403
404 PR gdb/14428
405
406 * infcmd.c (default_print_one_register_info): New, factored out
407 from default_print_registers_info.
408 (default_print_registers_info): Use it. Mark value unavailable if
409 necessary.
410 (registers_info): Print user registers with
411 default_print_one_register_info.
412
f629cd75
L
4132010-08-27 H.J. Lu <hongjiu.lu@intel.com>
414
415 PR tui/14486
416 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
417 is not NULL before referencing it.
418
1c8cdcb1
JK
4192012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
420
421 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
422 variable pc. Call find_pc_line instead of find_pc_overlay, restore
423 original PC for it.
424
e9687799
JK
4252012-08-27 Eli Zaretskii <eliz@gnu.org>
426 Jan Kratochvil <jan.kratochvil@redhat.com>
427
428 * auto-load.c (auto_load_objfile_script): Rename to ...
429 (auto_load_objfile_script_1): ... here, change variable realname to
430 parameter realname, document it, add return value, add variable retval.
431 (auto_load_objfile_script): New function.
432
7afa1642
JK
4332012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
434
435 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
436 followed by a whitespace.
437
dc7650b8
JK
4382012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
439
28e66c70 440 PR gdb/14494.
dc7650b8
JK
441 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
442 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
443 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
444 here.
445
1591a1e8
PA
4462012-08-27 Wei-cheng Wang <cole945@gmail.com>
447
448 * memattr.c (create_mem_region): Fix memory region overlapping
449 checking.
450
ecfb0d68
SP
4512012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
452
453 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
454 with xmalloc/cleanup.
455 * mt-tdep.c (mt_push_dummy_call): Likewise.
456 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
457 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
458
8c56c1b9
YQ
4592012-08-24 Yao Qi <yao@codesourcery.com>
460
461 * jv-exp.y (push_expression_name): Add "." at the end of error
462 message.
463
e3480f4a
YPK
4642012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
465
466 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
467 * python/python.c (_initialize_python): Update documentation.
468
dfbd5e7b
PA
4692012-08-23 Pedro Alves <palves@redhat.com>
470
471 * infrun.c (_initialize_infrun) <handle command help text>:
472 Mention that multiple signals are supported.
473
2edda2ff
PA
4742012-08-23 Pedro Alves <palves@redhat.com>
475
476 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
477 string.
478
8d735b87
YQ
4792012-08-23 Yao Qi <yao@codesourcery.com>
480
481 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
482 (tfind_1): Don't call registers_changed, set_traceframe_num,
483 and clear_traceframe_info.
484 Call set_current_traceframe.
485 (set_current_traceframe): call set_traceframe_num.
486
c5d9b215
SDJ
4872012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
488
489 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
490 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
491
037bbc8e
YPK
4922012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
493
494 Enable readline in Python in a GDB-specific way and block the
495 standard Python readline module to prevent conflicts with GDB.
496 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
497 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
498 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
499 * python/py-gdb-readline.c: New file.
500 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
501 prototype.
502 * python/python.c (_initialize_python): Call
503 gdbpy_initialize_gdb_readline.
504
406b1477
KS
5052012-08-22 Keith Seitz <keiths@redhat.com>
506
507 * defs.h: Include build-gnulib/config.h
508
6ca1b147
JM
5092012-08-22 Joseph Myers <joseph@codesourcery.com>
510
511 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
512 and blx pc.
513
8315665e
YPK
5142012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
515
516 Add a new "python-interactive" command that starts a standard
517 Python interactive prompt with "pi" as alias, and add "py" as
518 an alias to "python".
519 * NEWS: Mention the new commands.
8315665e
YPK
520 * python/python.c (eval_python_command): New function.
521 (python_interactive_command): For "python-interactive" with
522 arguments, call eval_python_command. For "python-interactive"
523 without arguments, call PyRun_InteractiveLoop.
524 (_initialize_python): Add "python-interactive" command with
525 "pi" as alias, and add "py" as an alias to "python".
526
522002f9
TT
5272012-08-22 Tom Tromey <tromey@redhat.com>
528
529 * defs.h (quit_flag): Don't declare.
530 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
531 (QUIT): Use new functions.
532 * event-top.c (command_handler): Use clear_quit_flag.
533 (handle_sigint): Use set_quit_flag.
534 (async_request_quit): Use check_quit_flag. Don't check
535 immediate_quit.
536 * exceptions.c (throw_exception): Use clear_quit_flag.
537 * main.c (captured_main): Use clear_quit_flag.
538 * python/python.c (clear_quit_flag, set_quit_flag)
539 (check_quit_flag): New functions.
540 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
541 clear_quit_flag.
542 * remote.c (remote_wait_as): Use check_quit_flag,
543 clear_quit_flag.
544 (remote_start_remote): Call QUIT.
545 * symfile.c (load_progress): Use check_quit_flag.
546 * top.c (command_loop): Use clear_quit_flag.
547 (command_line_input): Call QUIT.
548 * utils.c (quit_flag): Conditionally define.
549 (clear_quit_flag, check_quit_flag, set_quit_flag): New
550 functions.
551 (prompt_for_continue): Call QUIT. Use quit, not
552 async_request_quit.
553 * remote-mips.c (mips_expect_timeout): Call QUIT.
554 * monitor.c (monitor_expect): Call QUIT.
555
b583003e
TT
5562012-08-22 Tom Tromey <tromey@redhat.com>
557
558 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
559 (async_init_signals): Update.
560 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
561 (SIGWINCH_HANDLER_BODY): Remove.
562
e1507e95
TT
5632012-08-22 Tom Tromey <tromey@redhat.com>
564
565 * jit.c (jit_object_close_impl): Don't malloc the objfile
566 name.
567 * objfiles.c (allocate_objfile): Don't malloc the objfile
568 name.
569 (free_objfile): Don't free the objfile name.
570 * objfiles.h (struct objfile) <name>: Update comment.
571 * symfile.c (reread_symbols): Fix reference counting. Don't
572 malloc objfile name.
573
1c00ec6b
TT
5742012-08-22 Tom Tromey <tromey@redhat.com>
575
576 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
577 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
578 (symfile_bfd_open): Likewise.
579 (generic_load): Likewise.
580 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
581 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
582 gdb_bfd_open.
583 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
584 Use gdb_bfd_open.
585 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
586 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
587 (pmon_load_fast): Likewise.
588 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
589 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
590 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
591 (macho_check_dsym): Likewise.
592 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
593 (m32r_upload_command): Likewise.
594 * gdb_bfd.h (gdb_bfd_cache): Declare.
595 * gdb_bfd.c (struct gdb_bfd_data): New.
596 (gdb_bfd_cache): New global.
597 (struct gdb_bfd_cache_search): New.
598 (hash_bfd): New function.
599 (eq_bfd): Likewise.
600 (gdb_bfd_open): Likewise.
601 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
602 (gdb_bfd_unref): Remove closed BFD from cache. Update for
603 gdb_bfd_data.
604 * exec.c (exec_file_attach): Use gdb_bfd_open.
605 * dsrec.c (load_srec): Use gdb_bfd_open.
606
6532ff36
TT
6072012-08-22 Tom Tromey <tromey@redhat.com>
608
609 * dwarf2read.c (macro_start_file): Update.
610 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
611 (free_objfile_per_bfd_storage): Destroy macro_cache.
612 (allocate_objfile, free_objfile): Update.
613 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
614 New field.
615 (struct objfile) <macro_cache>: Remove.
616 * symfile.c (reread_symbols): Update.
617 * symmisc.c (print_symbol_bcache_statistics): Update.
618 (print_objfile_statistics): Update.
619
706e3705
TT
6202012-08-22 Tom Tromey <tromey@redhat.com>
621
622 * elfread.c (elf_symtab_read): Update.
623 * objfiles.c (objfiles_bfd_data): New global.
624 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
625 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
626 (allocate_objfile, free_objfile): Update.
627 (_initialize_objfiles): Initialize objfiles_bfd_data.
628 * objfiles.h (struct objfile_per_bfd_storage): New.
629 (struct objfile) <per_bfd>: New field.
630 <filename_cache>: Remove.
631 (set_objfile_per_bfd): Declare.
632 * symfile.c (reread_symbols): Update. Call
633 set_objfile_per_bfd.
634 (allocate_symtab): Update.
635 * symmisc.c (print_symbol_bcache_statistics): Update.
636 (print_objfile_statistics): Print the size of the BFD obstack.
637
e992eda4
TT
6382012-08-22 Tom Tromey <tromey@redhat.com>
639
640 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
641 * gdb_bfd.c: Use DEFINE_REGISTRY.
642 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
643 (gdb_bfd_ref): Call bfd_alloc_data.
644 (gdb_bfd_unref): Call bfd_free_data.
645
6b81941e
TT
6462012-08-22 Tom Tromey <tromey@redhat.com>
647
648 * registry.h (struct registry_fields): New.
649 (REGISTRY_FIELDS): Redefine.
650 (REGISTRY_ACCESS_FIELD): New macro.
651 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
652 functions.
653
8e260fc0
TT
6542012-08-22 Tom Tromey <tromey@redhat.com>
655
656 * auto-load.c (_initialize_auto_load): Update.
657 * solib-svr4.c (_initialize_svr4_solib): Update
658 * solib-dsbt.c (_initialize_dsbt_solib): Update.
659 * solib-darwin.c (_initialize_darwin_solib): Update.
660 * registry.h: New file.
661 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
662 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
663 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
664 (register_program_space_data_with_cleanup)
665 (register_program_space_data, program_space_alloc_data)
666 (clear_program_space_data, set_program_space_data)
667 (program_space_data): Don't declare.
668 * progspace.c: Use DEFINE_REGISTRY.
669 (struct program_space_data, struct
670 program_space_data_registration, struct
671 program_space_data_registry, program_space_data_registry)
672 (register_program_space_data_with_cleanup)
673 (register_program_space_data, program_space_alloc_data)
674 (program_space_free_data, clear_program_space_data)
675 (set_program_space_data, program_space_data): Remove.
676 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
677 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
678 (register_objfile_data_with_cleanup, register_objfile_data)
679 (clear_objfile_data, set_objfile_data, objfile_data): Don't
680 declare.
681 * objfiles.c: Use DEFINE_REGISTRY.
682 (struct objfile_data, struct objfile_data_registration, struct
683 objfile_data_registry, objfile_data_registry)
684 (register_objfile_data_with_cleanup, register_objfile_data)
685 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
686 (set_objfile_data, objfile_data): Remove.
687 (_initialize_objfiles): Update.
688 * jit.c (_initialize_jit): Update.
689 * inflow.c (_initialize_inflow): Update.
690 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
691 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
692 (register_inferior_data_with_cleanup, register_inferior_data)
693 (clear_inferior_data, set_inferior_data, inferior_data): Don't
694 declare.
695 * inferior.c: Use DEFINE_REGISTRY.
696 (struct inferior_data, struct inferior_data_registration, struct
697 inferior_data_registry, inferior_data_registry)
698 (register_inferior_data_with_cleanup, register_inferior_data)
699 (inferior_alloc_data, inferior_free_data clear_inferior_data)
700 (set_inferior_data, inferior_data): Remove.
701 * auxv.c (_initialize_auxv): Update.
702 * ada-lang.c (_initialize_ada_language): Update.
703 * breakpoint.c (_initialize_breakpoint): Update.
704 * i386-nat.c (i386_use_watchpoints): Update.
705
ed9eebaf
TT
7062012-08-22 Tom Tromey <tromey@redhat.com>
707
708 * exec.c (exec_close, exec_file_attach): Update.
709 (add_to_section_table): Initialize 'key' field.
710 (add_target_sections, remove_target_sections): Add 'key' argument.
711 * exec.h (add_target_sections, remove_target_sections): Add
712 'key' argument.
713 * solib.c (solib_map_sections, update_solib_list, clear_solib)
714 (reload_shared_libraries_1): Update.
715 * target.h (struct target_section) <key>: New field.
716
2f2e97fa
TT
7172012-08-22 Tom Tromey <tromey@redhat.com>
718
719 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
720
b3dbbd6f
PM
7212012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
722
723 * symfile.c (allocate_symtab): Use host_address_to_string
724 function instead of cast of pointer to long which is not
725 compatible with x86_64-w64-mingw32 build.
726
f94363d7
AP
7272012-08-19 Andrew Pinski <apinski@cavium.com>
728
729 * mips-tdep.c (is_octeon): New function.
730 (is_octeon_bbit_op): New function.
731 (mips32_next_pc): Handle Octeon's bbit instructions.
732 (mips32_instruction_has_delay_slot): Likewise.
733
78a59c2f
AP
7342012-08-19 Andrew Pinski <apinski@cavium.com>
735
736 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
737 before the function.
738
4f5bcb50
AP
7392012-08-19 Andrew Pinski <apinski@cavium.com>
740
741 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
742
e5afdbd7
KS
7432012-08-19 Keith Seitz <keiths@redhat.com>
744
745 PR c++/14365
746 * c-typeprint.c (c_type_print_varspec_prefix): Pass
747 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
748
13c9750e
EZ
7492012-08-18 Eli Zaretskii <eliz@gnu.org>
750
751 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
752 The typo broke "make TAGS".
753
db761810 7542012-08-17 Joel Brobecker <brobecker@adacore.com>
755
756 GDB 7.5 released.
757
a451cb65
KS
7582012-08-17 Keith Seitz <keiths@redhat.com>
759
760 PR c++/13356
761 * gdbtypes.c (strict_type_checking): New variable.
762 (show_strict_type_checking): New function.
763 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
764 if strict type checking is disabled.
765 (_initialize_gdbtypes): Add "check type" subcommand.
766 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
767
7682012-08-17 Keith Seitz <keiths@redhat.com>
769
770 * language.h (type_mode): Remove.
771 (type_check): Remove.
772 (struct language_defn): Remove la_type_check.
773 (STRICT_TYPE): Remove unused macro.
774 (type_error): Remove.
775 * language.c (set_type_range_case): Renamed to ...
776 (set_range_case): ... this. Update all callers.
777 Remove type_mode/type_check.
778 (type_mode): Remove.
779 (type_check): Remove.
780 (show_type_command): Remove.
781 (set_type_command): Remove.
782 (language_info): Remove type checking output.
783 (type_error): Remove unused function.
784 (range_error): Update comment.
785 (unknown_language_defn): Remove la_type_check.
786 (auto_language_defn): Likewise.
787 (local_language_defn): Likewise.
788 (_initialize_language): Remove "check type" subcommand.
789 * ada-lang.c (ada_language_defn): Remove la_type_check.
790 * c-lang.c (c_language_defn): Likewise.
791 (cplus_language_defn): Likewise.
792 (asm_language_defn): Likewise.
793 (minimal_language_defn): Likewise.
794 * d-lang.c (d_language_defn): Likewise.
795 * f-lang.c (f_language_defn): Likewise.
796 * go-lang.c (go_language_defn): Likewise.
797 * jv-lang.c (java_language_defn): Likewise.
798 * m2-lang.c (m2_language_defn): Likewise.
799 * objc-lang.c (objc_language_defn): Likewise.
800 * opencl-lang.c (opencl_language_defn): Likewise.
801 * p-lang.c (pascal_language_defn): Likewise.
802
dbf6a605
MF
8032012-08-16 Mike Frysinger <vapier@gentoo.org>
804
805 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
806
973e3cf7
JB
8072012-08-16 Joel Brobecker <brobecker@adacore.com>
808
809 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
810 New function.
811 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
812 using the regache. Use ia64_hpux_get_register_from_save_state_t
813 to access the bsp and bspstore registers if not.
814
d80ee84f
JB
8152012-08-16 Joel Brobecker <brobecker@adacore.com>
816
817 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
818 * breakpoint.c (detach_breakpoints): Change pid parameter into
819 a ptid. Adjust code accordingly.
820 * infrun.c (handle_inferior_event): Delete variable child_pid.
821 Update call to detach_breakpoints to pass the child ptid for
822 fork events.
823 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
824 assert that inferior_ptid's lwp is zero.
825 (linux_handle_extended_wait): Update call to detach_breakpoints.
826 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
827 detach_breakpoints.
828
2dcc6086
JB
8292012-08-16 Joel Brobecker <brobecker@adacore.com>
830
831 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
832 parent, only call detach_breakpoints if tts.tts_event ==
833 TTEVT_VFORK.
834
0c92d8c1
JB
8352012-08-16 Joel Brobecker <brobecker@adacore.com>
836
837 * dwarf2-frame.c (dwarf2_frame_cache): Use
838 get_frame_address_in_block instead of get_frame_pc as
839 the bound for executing the frame's FDE.
840
6b1755ce
YQ
8412012-08-16 Yao Qi <yao@codesourcery.com>
842
843 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
844 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
845 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
846 (c_type_print_varspec_suffix): Likewise.
847 * eval.c (evaluate_subexp_standard): Likewise.
848 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
849 (f_type_print_varspec_suffix): Likewise.
850 * gdbtypes.c (is_scalar_type): Likewise.
851 (recursive_dump_type): Likewise.
852 * infcall.c (value_arg_coerce): Likewise.
853 * m2-valprint.c (m2_val_print): Likewise.
854 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
855 (pascal_type_print_varspec_suffix): Likewise.
856 (pascal_type_print_base): Likewise.
857 * p-valprint.c (pascal_val_print): Likewise.
858 (pascal_val_print): Likewise.
859 * valops.c (value_slice): Likewise.
860 * valprint.c (scalar_type_p): Likewise.
861 * valarith.c (value_bitstring_subscript): Remove.
862 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
863 Remove comment on TYPE_CODE_BITSTRING.
864
865 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
866 TYPE_CODE_BITSTRING.
867
868 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
869 slot 0.
870
8acc4065
YQ
8712012-08-16 Yao Qi <yao@codesourcery.com>
872
873 * tracepoint.c (trace_find_none_command): Remove.
874 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
875
8128fd8e
YQ
8762012-08-16 Yao Qi <yao@codesourcery.com>
877
878 * remote.c (handle_notification): Remove parameter 'length'.
879 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
880
2873700e
KS
8812012-08-15 Keith Seitz <keiths@redhat.com>
882
883 * gdbtypes.c (opaque_type_resolution): Make static.
884 Add missing comment.
885 (overload_debug): Add missing comment.
886 (show_opaque_type_resolution): Likewise.
887 (show_overload_debug): Likewise.
888 (print_bit_vector): Remove unnecessary forward declaration.
889 (print_arg_types): Likewise.
890 (dump_fn_fieldlists): Likewise.
891 (print_cplus_stuff): Likewise.
892
b82d08cd
TT
8932012-08-15 Tom Tromey <tromey@redhat.com>
894
895 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
896 (gdb_bfd_ref): Initialize new field.
897 (gdb_bfd_unref): Unref the archive BFD.
898 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
899 parent archive.
900
db6573d6
TT
9012012-08-15 Tom Tromey <tromey@redhat.com>
902
903 PR python/14387:
904 * python/py-bpevent.c (create_breakpoint_event_object): Update
905 comment.
906 * python/py-event.c (evpy_add_attribute): Update comment.
907 * python/py-exitedevent.c (create_exited_event_object): Fix
908 reference counting and error handling.
909 * python/py-newobjfileevent.c (create_new_objfile_event_object):
910 Fix reference counting.
911 * python/py-signalevent.c (create_signal_event_object): Fix
912 reference counting and error handling.
913 * python/py-stopevent.c (emit_stop_event): Fix reference
914 counting.
915 * python/py-threadevent.c (get_event_thread): Return a
916 borrowed reference.
917 * python/py-type.c (convert_field): Fix reference counting.
918
a036ba48
TT
9192012-08-15 Tom Tromey <tromey@redhat.com>
920
921 * dwarf2read.c (dwarf_decode_macro_bytes)
922 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
923 as hash key.
924
486c7739
MF
9252012-08-14 Mike Frysinger <vapier@gentoo.org>
926
927 * infcmd.c (_initialize_infcmd): Update help text for the signal,
928 stepi, nexti, finish, next, step, jump, and continue commands.
929 * infrun.c (_initialize_infrun): Update help text for the handle
930 command.
931
4cf93a03
DE
9322012-08-14 Doug Evans <dje@google.com>
933
70b099cf
DE
934 * gdbtypes.c (struct extra): Delete, unused.
935
5212577a
DE
936 * gdbtypes.c: Whitespace cleanup.
937 (address_space_name_to_int): Remove "extern" from definition.
938 (_initialize_gdbtypes): Declare with initialize_file_ftype.
939
4cf93a03
DE
940 * gdbtypes.c (make_pointer_type): Remove redundant setting of
941 TYPE_POINTER_TYPE (type).
942
3756ef7e
GB
9432012-08-14 Gary Benson <gbenson@redhat.com>
944
945 * solib-svr4.c (svr4_free_library_list): Use free_so.
946
40d72643
MF
9472012-08-13 Mike Frysinger <vapier@gentoo.org>
948
949 * .gitignore: Add go-exp.c.
950
f47f77df
DE
9512012-08-13 Doug Evans <dje@google.com>
952
953 * value.c (show_convenience): Tweak comment.
954 (_initialize_values): Mention convenience functions in the help text
955 for "show convenience".
956
7507c54a
YQ
9572012-08-13 Yao Qi <yao@codesourcery.com>
958
959 * std-operator.def: Remove TERNOP_SLICE_COUNT.
960 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
961 TERNOP_SLICE_COUNT.
962 * eval.c (evaluate_subexp_standard): Likewise.
963 * expprint.c (print_subexp_standard): Likewise.
964 (dump_subexp_body_standard): Likewise.
965 * parse.c (operator_length_standard): Likewise.
966
5cad9736
YQ
9672012-08-13 Yao Qi <yao@codesourcery.com>
968
969 * std-operator.def: Remove OP_BITSTRING.
970 * breakpoint.c (watchpoint_exp_is_const): Update.
971 * eval.c (evaluate_subexp_standard): Remove handling to
972 OP_BITSTRING.
973 * expprint.c (print_subexp_standard): Likewise.
974 (dump_subexp_body_standard): Likewise.
975 * parse.c (operator_length_standard): Likewise.
976 * valops.c (value_bitstring): Remove.
977 * value.h: Remove the declaration of 'value_bitstring'.
978
bad7670a
SDJ
9792012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
980
981 * linespec.c (find_methods): Remove unused variables `i1' and
982 `name_len'.
983 (decode_line_full): Likewise for `arg_start'.
984
d9dce7fa
SDJ
9852012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
986
987 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
988 (zlib_decompress_section): Likewise for `section_data'.
989 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
990
a72c3253
DE
9912012-08-10 Doug Evans <dje@google.com>
992
993 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
994 * NEWS: Document them.
995 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
996 function/strfns.py.
997 * python/py-type.c (typy_array_1): New function.
998 (typy_array): Call it.
999 (typy_vector): New function.
1000 (type_object_methods): Add "vector".
1001 * python/lib/gdb/function/__init__.py: New file.
1002 * python/lib/gdb/function/strfns.py: New file.
1003
200bc880
SP
10042012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1005
1006 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1007 for TYPE_FIELD_BITPOS.
1008 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1009
de0bea00
MF
10102012-08-10 Mike Frysinger <vapier@gentoo.org>
1011
1012 PR cli/10436:
1013 * common/vec.h (VEC_merge): Define.
1014 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1015 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1016 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1017 * completer.c: Include gdb_signals.h.
1018 (signal_completer): Define.
1019 * completer.h (signal_completer): Add prototype.
1020 * infcmd.c (_initialize_infcmd): Assign the command
1021 completer for "signal" to handle_completer.
1022 * infrun.c: Include completer.h.
1023 (handle_completer): Define.
1024 (_initialize_infrun): Declare a new local variable c. Store the
1025 result of add_com("handle") to it. Assign the command
1026 completer for "handle" to handle_completer.
1027
5b9afe8a
YQ
10282012-08-09 Yao Qi <yao@codesourcery.com>
1029
1030 * cli/cli-decode.c (set_cmd_prefix): New.
1031 (lookup_cmd_for_prefixlist): New.
1032 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1033 of each cmd_list_element in *prefixlist.
1034 (add_setshow_cmd_full): set_cmd_prefix.
1035 (add_alias_cmd): Likewise.
1036 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1037 Declare 'auto_boolean_enums'.
1038 * cli/cli-setshow.c: Include "observer.h".
1039 (notify_command_param_changed_p): New.
1040 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1041 Remove 'static'.
1042 (do_setshow_command): Split it to ...
1043 (do_set_command, do_show_command): ... them. New.
1044 (do_set_command): Call observer_notify_command_param_changed if
1045 notify_command_param_changed_p returns true.
1046 (cmd_show_list): Caller update.
1047 * auto-load.c (set_auto_load_cmd): Likewise.
1048 * remote.c (show_remote_cmd): Likewise.
1049 * cli/cli-setshow.h: Update declarations.
1050 * top.c (execute_command): Call do_set_command and do_show_command.
1051
1052 * NEWS: Mention new MI notification.
1053 * mi/mi-interp.c: Declare mi_command_param_changed.
1054 (mi_interpreter_init): Attach mi_command_param_changed to
1055 observer command_param_changed.
1056 (mi_command_param_changed): New.
1057 Remove mi_suppress_breakpoint_notifications.
1058 Define global variable mi_suppress_notification.
1059 (mi_breakpoint_created): Update.
1060 (mi_breakpoint_deleted): Likewise.
1061 (mi_breakpoint_modified): Likewise.
1062 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1063 'gdb-set' and set mi_suppress_notification.
1064 * mi/mi-main.h: (mi_suppress_notification): New struct.
1065
1969df89
JK
10662012-08-09 Andreas Tobler <andreast@fgznet.ch>
1067 Jan Kratochvil <jan.kratochvil@redhat.com>
1068
1069 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1070
8bfd80db
YQ
10712012-08-09 Yao Qi <yao@codesourcery.com>
1072
1073 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1074 (skiplist): Move it to skip.c.
1075 (init_cmd_lists): Remove code setting enablebreaklist and
1076 skiplist to NULL.
1077 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1078 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1079 skiplist.
1080 * gdbcmd.h: Likewise.
1081 * skip.c (_initialize_step_skip): Move 'skiplist' from
1082 cli/cli-cmds.c.
1083
28578e6b
YQ
10842012-08-09 Yao Qi <yao@codesourcery.com>
1085
1086 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1087 * gnu-nat.c, symfile.c: Likewise.
1088
260c0b2a
DE
10892012-08-08 Aaron Gamble <agamble@google.com>
1090
1091 * utils.c (prompt_for_continue_wait_time): New static global.
1092 (make_command_stats_cleanup): Initialize it.
1093 (report_command_stats): Subtract time waiting for user.
1094 (prompt_for_continue): Track time waiting for user.
1095 (defaulted_query): Track time waiting for user.
1096
4f485ebc
DE
10972012-08-08 Doug Evans <dje@google.com>
1098
1099 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1100 UNOP_MEMVAL_TYPE.
1101 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1102 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1103 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1104 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1105 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1106 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1107 elt.
1108 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1109 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1110 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1111 (dump_prefix_expression): Handle OP_TYPE.
1112
2acf2b39
KS
11132012-08-08 Keith Seitz <keiths@redhat.com>
1114
1115 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1116 addr_start.
1117
e6712ff1
DE
11182012-08-08 Doug Evans <dje@google.com>
1119
1120 * linux-thread-db.c: #include "gdb_vecs.h".
1121 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1122 updated.
1123 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1124 (thread_db_load_search): Use a vector to iterate over path elements.
1125 Handle text appearing after "$pdir".
1126
1127 * gdb_string.h: Moved to ...
1128 * common/gdb_string.h: ... here.
1129 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1130 gdb_string.h and gdb_assert.h.
1131
ab854e54
YQ
11322012-08-08 Yao Qi <yao@codesourcery.com>
1133
1134 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1135 (tic6x_value_to_register): Likewise.
1136 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1137 and set_gdbarch_value_to_register.
1138
4f69f4c2
JK
11392012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1140 Jean-Marc Saffroy <saffroy@gmail.com>
1141
1142 PR 11804
1143 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1144 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1145 * gcore.c (gcore_create_callback): New function comment. Add modified
1146 parameter. Only write modified regions. Set SEC_READONLY exactly
1147 according to MODIFIED.
1148 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1149 the passed modified value to FUNC.
1150 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1151 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1152 first. New variables modified and has_anonymous. Parse the lines of
1153 smaps file. Add the passed MODIFIED value to FUNC.
1154 * procfs.c (find_memory_regions_callback): Add the passed modified
1155 value.
1156
78ac5f83
TT
11572012-08-06 Tom Tromey <tromey@redhat.com>
1158
1159 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1160 (dwarf2_frame_cache): Use it.
1161 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1162 cache initialization constraint.
1163
2c12abee
TT
11642012-08-06 Tom Tromey <tromey@redhat.com>
1165
1166 PR python/14386:
1167 * varobj.c (update_dynamic_varobj_children): Don't call
1168 PyIter_Check.
1169
4979d7f0
TT
11702012-08-06 Tom Tromey <tromey@redhat.com>
1171
1172 PR cli/14392:
1173 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1174
f3c8a52a
JK
11752012-08-06 Nathaniel Flath <flat0103@gmail.com>
1176
1177 * NEWS: New entry for 'cd' default parameters.
1178 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1179
5a1cf4d6
TT
11802012-08-03 Tom Tromey <tromey@redhat.com>
1181
1182 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1183 return.
1184
7c3270ae
UW
11852012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1186
1187 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1188 to attempting lseek/write.
1189 (inf_child_fileio_pread): Likewise for pread.
1190
ccce17b0
YQ
11912012-08-02 Yao Qi <yao@codesourcery.com>
1192
1193 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1194 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1195 add_setshow_zinteger_cmd.
1196 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1197 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1198 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1199 instead of add_setshow_zinteger_cmd.
1200 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1201 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1202 instead of add_setshow_zinteger_cmd.
1203 * frame.c (frame_debug): Add 'unsigned'.
1204 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1205 add_setshow_zinteger_cmd.
1206 * frame.h: Update the declaration of 'frame_debug'.
1207 * gdbtypes.c (overload_debug): Add 'unsigned'.
1208 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1209 add_setshow_zinteger_cmd.
1210 * inferior.h: Update declaration of 'debug_infrun'.
1211 * infrun.c (debug_infrun): Add 'unsigned'.
1212 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1213 add_setshow_zinteger_cmd.
1214 * jit.c (jit_debug): Add 'unsigned'.
1215 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1216 add_setshow_zinteger_cmd.
1217 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1218 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1219 instead of add_setshow_zinteger_cmd.
1220 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1221 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1222 add_setshow_zinteger_cmd.
1223 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1224 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1225 instead of add_setshow_zinteger_cmd.
1226 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1227 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1228 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1229 intead of add_setshow_zinteger_cmd.
1230 * mips-tdep.c (mips_debug): Add 'unsigned'.
1231 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1232 instead of add_setshow_zinteger_cmd.
1233 * monitor.c (monitor_debug): Add 'unsigned'.
1234 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1235 add_setshow_zinteger_cmd.
1236 * observer.c (observer_debug): Add 'unsigned'.
1237 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1238 add_setshow_zinteger_cmd.
1239 * parse.c (expressiondebug): Add 'unsigned'.
1240 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1241 add_setshow_zinteger_cmd.
1242 * record.c (record_debug): Add 'unsigned'.
1243 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1244 add_setshow_zinteger_cmd.
1245 * record.h: Update the declaration of 'record_debug'.
1246 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1247 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1248 add_setshow_zinteger_cmd.
1249 * serial.c (global_serial_debug_p): Add 'unsigned'.
1250 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1251 add_setshow_zinteger_cmd.
1252 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1253 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1254 add_setshow_zinteger_cmd.
1255 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1256 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1257 add_setshow_zinteger_cmd.
1258 * target.c (targetdebug): Add 'unsigned'.
1259 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1260 add_setshow_zinteger_cmd.
1261 * valops.c (overload_debug): Add 'unsigned'.
1262 * varobj.c (varobjdebug): Add 'unsigned'.
1263 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1264 add_setshow_zinteger_cmd.
1265 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1266 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1267 instead of add_setshow_zinteger_cmd.
1268
1269 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1270 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1271 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1272 instead of add_setshow_zinteger_cmd.
1273 * gdbarch.c, gdbarch.h: Re-generated.
1274
95b07c96
YQ
12752012-08-02 Yao Qi <yao@codesourcery.com>
1276
1277 * nto-tdep.c: Don't include cli/cli-decode.h and
1278 cli/cli-cmds.h.
1279 (_initialize_nto_tdep): Remove.
1280 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1281 Remove field.
1282 Remove macro nto_internal_debugging.
1283
57295b0b
RH
12842012-08-01 Richard Henderson <rth@redhat.com>
1285
1286 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1287 (mep-*-*) [gdb_target_obs]: Likewise.
1288
f782ad9b
AS
12892012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1290
1291 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1292 linux_get_siginfo_type.
1293
a14dd77e
JK
12942012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1295
1296 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1297 AT_ENTRY_POINT.
1298 (call_function_by_hand) <ON_STACK>: Call write_memory with
1299 gdbarch_breakpoint_from_pc, if possible.
1300 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1301 here.
1302
1467929f
YQ
13032012-07-31 Yao Qi <yao@codesourcery.com>
1304
1305 * tracepoint.c: Add 'static' for some variables.
1306
70976b65
YQ
13072012-07-31 Yao Qi <yao@codesourcery.com>
1308
1309 * go32-nat.c: Declare _initialize_go32_nat.
1310 * ser-go32.c: Declare _initialize_ser_dos.
1311 * top.c (do_chdir_cleanup): Add 'static'.
1312
eff9c3e6
KS
13132012-07-30 Keith Seitz <keiths@redhat.com>
1314
1315 * linespec.c (linespec_lex_number): A number followed
1316 by quotes is a valid number, too.
1317
728400d7
TT
13182012-07-30 Tom Tromey <tromey@redhat.com>
1319
1320 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1321
fcf303ab
UW
13222012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1323
1324 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1325 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1326
4e969b4f
AB
13272012-07-30 Andrew Burgess <aburgess@broadcom.com>
1328
1329 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1330 invalid or reevaluated to prevent prevent references to possibly
1331 delete'd type objects being left in the varobj.
1332
c4bfde41
JK
13332012-07-27 Tom Tromey <tromey@redhat.com>
1334 Jan Kratochvil <jan.kratochvil@redhat.com>
1335
1336 * copying.awk: Print buffer-read-only and vi ro markers.
1337 * copying.c: Rebuild.
1338 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1339 * gdbarch.c, gdbarch.h: Rebuild.
1340 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1341 buffer-read-only and vi ro markers.
1342 * features/arm-with-iwmmxt.c: Rebuild.
1343 * features/arm-with-m-fpa-layout.c: Rebuild.
1344 * features/arm-with-m-vfp-d16.c: Rebuild.
1345 * features/arm-with-m.c: Rebuild.
1346 * features/arm-with-neon.c: Rebuild.
1347 * features/arm-with-vfpv2.c: Rebuild.
1348 * features/arm-with-vfpv3.c: Rebuild.
1349 * features/i386/amd64-avx-linux.c: Rebuild.
1350 * features/i386/amd64-avx.c: Rebuild.
1351 * features/i386/amd64-linux.c: Rebuild.
1352 * features/i386/amd64.c: Rebuild.
1353 * features/i386/i386-avx-linux.c: Rebuild.
1354 * features/i386/i386-avx.c: Rebuild.
1355 * features/i386/i386-linux.c: Rebuild.
1356 * features/i386/i386-mmx-linux.c: Rebuild.
1357 * features/i386/i386-mmx.c: Rebuild.
1358 * features/i386/i386.c: Rebuild.
1359 * features/i386/x32-avx-linux.c: Rebuild.
1360 * features/i386/x32-avx.c: Rebuild.
1361 * features/i386/x32-linux.c: Rebuild.
1362 * features/i386/x32.c: Rebuild.
1363 * features/mips-dsp-linux.c: Rebuild.
1364 * features/mips-linux.c: Rebuild.
1365 * features/mips64-dsp-linux.c: Rebuild.
1366 * features/mips64-linux.c: Rebuild.
1367 * features/rs6000/powerpc-32.c: Rebuild.
1368 * features/rs6000/powerpc-32l.c: Rebuild.
1369 * features/rs6000/powerpc-403.c: Rebuild.
1370 * features/rs6000/powerpc-403gc.c: Rebuild.
1371 * features/rs6000/powerpc-405.c: Rebuild.
1372 * features/rs6000/powerpc-505.c: Rebuild.
1373 * features/rs6000/powerpc-601.c: Rebuild.
1374 * features/rs6000/powerpc-602.c: Rebuild.
1375 * features/rs6000/powerpc-603.c: Rebuild.
1376 * features/rs6000/powerpc-604.c: Rebuild.
1377 * features/rs6000/powerpc-64.c: Rebuild.
1378 * features/rs6000/powerpc-64l.c: Rebuild.
1379 * features/rs6000/powerpc-7400.c: Rebuild.
1380 * features/rs6000/powerpc-750.c: Rebuild.
1381 * features/rs6000/powerpc-860.c: Rebuild.
1382 * features/rs6000/powerpc-altivec32.c: Rebuild.
1383 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1384 * features/rs6000/powerpc-altivec64.c: Rebuild.
1385 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1386 * features/rs6000/powerpc-cell32l.c: Rebuild.
1387 * features/rs6000/powerpc-cell64l.c: Rebuild.
1388 * features/rs6000/powerpc-e500.c: Rebuild.
1389 * features/rs6000/powerpc-e500l.c: Rebuild.
1390 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1391 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1392 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1393 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1394 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1395 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1396 * features/rs6000/powerpc-vsx32.c: Rebuild.
1397 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1398 * features/rs6000/powerpc-vsx64.c: Rebuild.
1399 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1400 * features/rs6000/rs6000.c: Rebuild.
1401 * features/s390-linux32.c: Rebuild.
1402 * features/s390-linux32v1.c: Rebuild.
1403 * features/s390-linux32v2.c: Rebuild.
1404 * features/s390-linux64.c: Rebuild.
1405 * features/s390-linux64v1.c: Rebuild.
1406 * features/s390-linux64v2.c: Rebuild.
1407 * features/s390x-linux64.c: Rebuild.
1408 * features/s390x-linux64v1.c: Rebuild.
1409 * features/s390x-linux64v2.c: Rebuild.
1410 * features/tic6x-c62x-linux.c: Rebuild.
1411 * features/tic6x-c62x.c: Rebuild.
1412 * features/tic6x-c64x-linux.c: Rebuild.
1413 * features/tic6x-c64x.c: Rebuild.
1414 * features/tic6x-c64xp-linux.c: Rebuild.
1415 * features/tic6x-c64xp.c: Rebuild.
1416
826f0041
TT
14172012-07-27 Tom Tromey <tromey@redhat.com>
1418
1419 * c-exp.y (classify_name): Avoid assignment in condition.
1420
84552b16
PA
14212012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1422
1423 * amd64-windows-tdep.c: Include "frame.h".
1424 (amd64_windows_skip_trampoline_code): New function.
1425 (amd64_windows_init_abi): Add trampoline registration.
1426
a8a64aa8
YQ
14272012-07-27 Yao Qi <yao@codesourcery.com>
1428
1429 * tracepoint.c (cur_traceframe_number): Remove.
1430 (set_tfile_traceframe): Remove.
1431 (tfile_trace_find, tfile_fetch_registers): Update callers.
1432 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1433 (tfile_open, tfile_trace_find): Likewise.
1434
d99067cb
YQ
14352012-07-27 Yao Qi <yao@codesourcery.com>
1436
1437 * thread.c (switch_to_thread): Don't call registers_changed.
1438
f2e8016f
TT
14392012-07-26 Tom Tromey <tromey@redhat.com>
1440
f782ad9b
AS
1441 * Makefile.in (SFILES): Remove objc-exp.y.
1442 (YYFILES): Remove objc-exp.c.
1443 (YYOBJ): Remove objc-exp.o.
1444 (local-maintainer-clean): Don't mention objc-exp.c.
1445 * c-exp.y: Include objc-lang.h.
1446 (%union) <class>: New field.
1447 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1448 (exp): Clone subscript production for OBJC_LBRAC. Add various
1449 Objective C productions.
1450 (msglist, msgarglist, msgarg): New productions.
1451 (array_mod, func_mod, operator): Clone productions for
1452 OBJC_LBRAC.
1453 (parse_string_or_char): Handle '@' strings.
1454 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1455 (classify_name): Check la_name_of_this. Recognize ObjC class
1456 names.
1457 * objc-exp.y: Remove.
1458 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1459 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1460
f66713d2
JK
14612012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1462
1463 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1464
7cfe01b4
JK
14652012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1466
1467 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1468 and decrement.
1469
5ba19b4c
TT
14702012-07-26 Tom Tromey <tromey@redhat.com>
1471
1472 * copying.c: Rebuild.
1473 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1474 'no_class'.
1475
27618ce4
TT
14762012-07-26 Tom Tromey <tromey@redhat.com>
1477
1478 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1479 immediate_quit.
1480 (print_objfile_statistics): Likewise.
1481 (maintenance_print_symbols): Likewise.
1482 (maintenance_print_msymbols): Likewise.
1483 (maintenance_print_objfiles): Likewise.
1484 * psymtab.c (print_partial_symbols): Call QUIT.
1485 (maintenance_print_psymbols): Likewise. Don't modify
1486 immediate_quit.
1487 * copying.c (show_copying_command): Don't modify immediate_quit.
1488 (show_warranty_command): Likewise.
1489 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1490
dd3818c8
KS
14912012-07-26 Keith Seitz <keiths@redhat.com>
1492
1493 * linespec.c (linespec_lexer_lex_number): The input
1494 is also a valid number if the next character is a comma
1495 or colon.
1496
23a80689
JB
14972012-07-26 Joel Brobecker <brobecker@adacore.com>
1498
1499 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1500 configure options.
1501
29f77997
TG
15022012-07-26 Tristan Gingold <gingold@adacore.com>
1503
1504 * machoread.c: Include gdb_bfd.h.
1505
a55c1f32
TG
15062012-07-26 Tristan Gingold <gingold@adacore.com>
1507
1508 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1509 offset.
1510
56eb65bd
SP
15112012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1512
1513 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1514 SIZE to size_t.
1515 (dwarf2_evaluate_loc_desc): Likewise.
1516 (dwarf2_loc_desc_needs_frame): Likewise.
1517 (locexpr_describe_location_1): Likewise.
1518 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1519 size_t.
1520 (struct dwarf2_loclist_baton): Likewise.
1521 * dwarf2read.c (struct dwarf_block): Likewise.
1522 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1523 (decode_locdesc): Expand SIZE and I to size_t.
1524
aec8845c
JK
15252012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1526
1527 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1528
33d7655b
JB
15292012-07-25 Joel Brobecker <brobecker@adacore.com>
1530
1531 * doublest.c (convert_doublest_to_floatformat): If the exponent
1532 is too small, treat the value as zero. If the exponent is too
1533 large, treat the value as infinity.
1534
a22d44ff
JB
15352012-07-25 Joel Brobecker <brobecker@adacore.com>
1536
1537 * configure.ac: Add --enable-lmcheck configure option.
1538 * configure: Regenerate.
1539
d6b28940
TT
15402012-07-25 Tom Tromey <tromey@redhat.com>
1541
f782ad9b
AS
1542 * NEWS: Mention maint info bfds.
1543 * gdb_bfd.c (all_bfds): New global.
1544 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1545 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1546 New functions.
d6b28940 1547
6e73ba20
RC
15482012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1549
1550 * configure.tgt: Add v850*-*-rtems*.
1551
d560eebd
TT
15522012-07-25 Tom Tromey <tromey@redhat.com>
1553
1554 * macrotab.c (macro_bcache_str): Remove cast.
1555
d7cbec71
HZ
15562012-07-25 Hui Zhu <hui_zhu@mentor.com>
1557
1558 * linespec.c (linespec_lexer_lex_number): Update comments,
1559 change the return and add check to make sure the input is
1560 the decimal numbers.
1561 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1562 false, call linespec_lexer_lex_string.
1563
882f447f
TT
15642012-07-24 Tom Tromey <tromey@redhat.com>
1565
1566 * symfile.c (symbol_file_add): Don't open BFD twice.
1567
53ab4066 15682012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1569
1570 * breakpoint.c (create_breakpoint): Store condition for pending
1571 breakpoints.
1572
108fb0f7
AS
15732012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1574
1575 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1576 (m68k_return_value): Handle complex types like structures.
1577 (m68k_svr4_return_value): Likewise.
1578
1634dcbe
JK
15792012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1580
1581 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1582 parameters to bfd_get_section_name.
1583
e2d12c21
YQ
15842012-07-24 Yao Qi <yao@codesourcery.com>
1585
1586 * cli/cli-setshow.c: Handle case 'var_uinteger'
1587 and 'var_zuninteger' together. Handle case 'var_integer' and
1588 'var_zinteger' together.
1589
64b92e45
KS
15902012-07-23 Keith Seitz <keiths@redhat.com>
1591
1592 * linespec.c (convert_linespec_to_sal): Don't add
1593 any symbols to the result vector if symbol_to_sal
1594 returns zero.
1595
0f5f4ffe
KS
15962012-07-23 Keith Seitz <keiths@redhat.com>
1597
1598 * linespec.c (decode_objc): Record the function name
1599 in the linespec.
1600
da1cc82f
TT
16012012-07-23 Tom Tromey <tromey@redhat.com>
1602
1603 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1604 counting.
1605 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1606 (map_vmap): Acquire a reference to the BFD.
1607
6c18f3e0
SP
16082012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1609
1610 * p-valprint.c (pascal_object_print_value): Replace potentially
1611 unsafe alloca with xmalloc/xfree.
1612 * valops.c (search_struct_method): Likewise.
1613
695c3173
TT
16142012-07-23 Tom Tromey <tromey@redhat.com>
1615
1616 * solib-svr4.c (enable_break): Update.
1617 * bfd-target.h (target_bfd_reopen): Update documentation.
1618
08d2cd74
TT
16192012-07-23 Tom Tromey <tromey@redhat.com>
1620
1621 * symfile.c (separate_debug_file_exists): Update.
1622 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1623 (reread_symbols): Update.
1624 * elfread.c (build_id_verify): Update.
1625 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1626 bfd_open_maybe_remote.
1627
596f7d67
TT
16282012-07-23 Tom Tromey <tromey@redhat.com>
1629
1630 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1631
8ac244b4
TT
16322012-07-23 Tom Tromey <tromey@redhat.com>
1633
1634 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1635 and 'abfd'.
1636 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1637 and 'abfd'.
1638 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1639 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1640 'abfd'.
1641 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1642 * objfiles.c (allocate_objfile): Acquire a new reference.
1643 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1644 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1645 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1646 a cleanup for 'nbfd'.
1647 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1648 for 'nbfd'.
1649 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1650 make a cleanup for 'abfd'.
1651 (symbol_file_add): Make a BFD cleanup.
1652
64c31149
TT
16532012-07-23 Tom Tromey <tromey@redhat.com>
1654
1655 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1656 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1657 * corelow.c (core_open): Use gdb_bfd_fopen.
1658 * dsrec.c (load_srec): Use gdb_bfd_openr.
1659 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1660 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1661 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1662 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1663 (gdb_bfd_fdopenr): New functions.
1664 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1665 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1666 (gdb_bfd_fdopenr): Declare.
1667 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1668 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1669 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1670 gdb_bfd_openr_next_archived_file.
1671 (macho_check_dsym): Use gdb_bfd_openr.
1672 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1673 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1674 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1675 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1676 gdb_bfd_openr.
1677 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1678 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1679 gdb_bfd_openr_next_archived_file.
1680 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1681 Use gdb_bfd_openr.
1682 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1683 gdb_bfd_openr.
1684 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1685 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1686 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1687 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1688 (symfile_bfd_open): Use gdb_bfd_fopen.
1689 (generic_load): Use gdb_bfd_openr.
1690 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1691
520b0001
TT
16922012-07-23 Tom Tromey <tromey@redhat.com>
1693
1694 * bfd-target.c (target_bfd_reopen): Update.
1695 * cli/cli-dump.c (bfd_openr_with_cleanup)
1696 (bfd_openw_with_cleanup): Update.
1697 * corelow.c (core_open): Update.
1698 * dsrec.c (load_srec): Update.
1699 * exec.c (exec_file_attach): Update.
1700 * gcore.c (create_gcore_bfd): Update.
1701 * gdb_bfd.c (gdb_bfd_ref): Return void.
1702 (gdb_bfd_open): Update.
1703 * gdb_bfd.h (gdb_bfd_ref): Return void.
1704 Update comments.
1705 * jit.c (jit_bfd_try_read_symtab): Update.
1706 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1707 * machoread.c (macho_symfile_read_all_oso): Update.
1708 (macho_check_dsym): Update.
1709 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1710 * remote-m32r-sdi.c (m32r_load): Update.
1711 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1712 * rs6000-nat.c (add_vmap): Update.
1713 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1714 Update.
1715 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1716 * solib-spu.c (spu_bfd_open): Update.
1717 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1718 * spu-linux-nat.c (spu_bfd_open): Update.
1719 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1720 (generic_load): Update.
1721 * windows-nat.c (windows_make_so): Update.
1722
2322ff16
SP
17232012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1724
1725 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1726
3def0b36
PA
17272012-07-20 Jeff Kenton <jkenton@tilera.com>
1728
1729 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1730 SIGTRAMP_FRAME unwinding.
1731
e615022a
DE
17322012-07-20 Doug Evans <dje@google.com>
1733
1734 * NEWS: Document new options "set/show use-deprecated-index-sections",
1735 and delete reference to --use-deprecated-index-sections.
1736 * symfile.h (use_deprecated_index_sections): Delete.
1737 * dwarf2read.c (use_deprecated_index_sections): Make static.
1738 (read_index_from_section): Update wording of how to load
1739 deprecated index sections.
1740 (_initialize_dwarf2_read): New options
1741 "set/show use-deprecated-index-sections".
1742 * main.c (captured_main): Delete --use-deprecated-index-sections.
1743
64776a0b
PA
17442012-07-20 Pedro Alves <palves@redhat.com>
1745
1746 PR threads/11692
1747 PR gdb/12203
1748
1749 * infrun.c (handle_inferior_event) <new thread>: Don't special
1750 case minus_one_ptid.
1751 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1752 * linux-thread-db.c (thread_get_info_callback): Don't return early
1753 if the thread is zombie.
1754 (thread_from_lwp): Change return type to void. Rewrite stale
1755 comment.
1756 (attach_thread): Don't return early if the thread is zombie,
1757 instead set its "dying" flag.
1758 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1759 (find_new_threads_callback): Don't return early if the thread is
1760 zombie.
1761
09826ec5
PA
17622012-07-20 Pedro Alves <palves@redhat.com>
1763
1764 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1765 * target.c (target_wait): Likewise.
1766 (str_comma_list_concat_elem, do_option, target_options_to_string):
1767 New functions.
1768 * target.h (target_options_to_string): Declare.
1769
f7a35f02
TT
17702012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1771 Tom Tromey <tromey@redhat.com>
1772
1773 * dwarf2read.c (dwarf_decode_macros)
1774 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1775 DW_MACRO_GNU_transparent_include_alt>: New cases.
1776 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1777 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1778
b81e1ee0
TT
17792012-07-20 Tom Tromey <tromey@redhat.com>
1780
1781 * dwarf2read.c (try_open_dwo_file): Don't call
1782 gdb_bfd_stash_filename.
1783
99c1624c
PA
17842012-07-20 Pedro Alves <palves@redhat.com>
1785
1786 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1787 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1788 (i386_process_record): Tweak description comments.
1789
4ffa4fc7
PA
17902012-07-20 Pedro Alves <palves@redhat.com>
1791
1792 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1793 (i386_process_record): Use record_read_memory.
1794 * record.c (record_read_memory): New function.
1795 (record_arch_list_add_mem, record_exec_insn): Use
1796 record_read_memory.
1797 * record.h (record_read_memory): Declare.
1798
c24343e2
YQ
17992012-07-20 Yao Qi <yao@codesourcery.com>
1800
1801 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1802 NULL for xfree.
1803
90f47860
PA
18042012-07-19 Pedro Alves <palves@redhat.com>
1805
1806 * record.c (record_resume): Ask the target beneath to report all
1807 signals.
1808
01093045
DE
18092012-07-19 Doug Evans <dje@google.com>
1810
1811 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1812 there's no section at address zero.
1813 (dwarf2_record_block_ranges): Ditto.
1814
a7c3d162
YQ
18152012-07-19 Yao Qi <yao@codesourcery.com>
1816
1817 * command.h, remote.c: Fix a typo in comment.
1818
608b4967
TT
18192012-07-19 Tom Tromey <tromey@redhat.com>
1820
1821 PR exp/13206:
1822 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1823 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1824 OP_DECLTYPE>: New cases.
1825 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1826 (type_exp): Add new productions.
1827 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1828 and decltype.
1829 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1830 New case.
1831 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1832 OP_DECLTYPE>: New case.
1833 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1834 New case.
1835 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1836 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1837
274b54d7
TT
18382012-07-19 Tom Tromey <tromey@redhat.com>
1839
1840 * c-exp.y (enum token_flags): New.
1841 (struct token) <cxx_only>: Remove.
1842 <flags>: New field.
1843 (tokentab3, tokentab2, ident_tokens): Update.
1844 (lex_one_token): Update. Handle FLAG_SHADOW.
1845
9eaf6705
TT
18462012-07-19 Tom Tromey <tromey@redhat.com>
1847
1848 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1849 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1850 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1851 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1852 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1853 type_exp production where appropriate.
1854 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1855 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1856 <UNOP_MEMVAL_TYPE>: New case.
1857 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1858 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1859 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1860 <UNOP_MEMVAL_TYPE>: New case.
1861 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1862 UNOP_REINTERPRET_CAST>: Update.
1863 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1864 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1865 UNOP_REINTERPRET_CAST>: Update.
1866 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1867 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1868 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1869 constants.
1870
6ace3df1
YQ
18712012-07-19 Yao Qi <yao@codesourcery.com>
1872 Jan Kratochvil <jan.kratochvil@redhat.com>
1873
1874 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1875 and case 'var_optional_filename' together.
1876 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1877 instead of add_setshow_optional_filename_cmd for setshow command
1878 'args'. Set completer for 'set args'.
1879
48faced0
DE
18802012-07-18 Doug Evans <dje@google.com>
1881
1882 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1883 * common/gdb_vecs.c: New file, contents from utils.c.
1884 * common/host-defs.h: New file, contents from defs.h.
1885 * utils.h: New file, contents from defs.h.
1886 * defs.h: Move all declarations of objects defined in utils.c
1887 to utils.h (except QUIT() and related).
1888 #include "utils.h", "host-defs.h".
1889 * probe.h (probe_p): Move here from gdb_vecs.h.
1890 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1891 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1892 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1893 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1894 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1895 (COMMON_OBS): Add gdb_vecs.o.
1896 (gdb_vecs.o): New rule.
1897
66f1999b
KS
18982012-07-18 Keith Seitz <keiths@redhat.com>
1899
1900 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1901 parameter. If non-zero, use SYMNAME as the canonical name
1902 for the SaL.
1903 Update all callers.
1904 (convert_linespec_to_sals): Use add_sal_to_sals for
1905 expressions, too.
1906 (decode_line_full): No need to "fill in missing canonical names"
1907 anymore. Simply make cleanups for the allocated names.
1908
5d94e27b
KS
19092012-07-18 Keith Seitz <keiths@redhat.com>
1910
1911 * linespec.c (struct linespec): Constify expression,
1912 source_filename, function_name, and label_name.
1913 (symbol_not_found_error): Make all parameters const.
1914 (linespec_parser_delete): No need to check for NULL
1915 when using xfree. Cast const char * to char * for xfree.
1916
af4908ba
KS
19172012-07-18 Keith Seitz <keiths@redhat.com>
1918
1919 * breakpoint.c (invalid_thread_id_error): New function.
1920 (find_condition_and_thread): Use invalid_thread_id_error.
1921 (watch_command_1): Likewise.
1922
853254db
TT
19232012-07-18 Tom Tromey <tromey@redhat.com>
1924
1925 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1926 * contrib/cc-with-tweaks.sh: New file.
1927
2ec9a5e0
TT
19282012-07-18 Tom Tromey <tromey@redhat.com>
1929
1930 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1931 (locate_dwz_sections): Recognize .gdb_index.
1932 (create_cus_from_index_list): New function.
1933 (create_cus_from_index): Use it. Handle .dwz data.
1934 (read_index_from_section): New function, extracted from
1935 dwarf2_read_index.
1936 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1937 if needed.
1938
36586728
TT
19392012-07-18 Tom Tromey <tromey@redhat.com>
1940
1941 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1942 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1943 <is_dwz>: New field.
1944 (struct dwz_file): New.
1945 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1946 (locate_dwz_sections, dwarf2_get_dwz_file)
1947 (get_abbrev_section_for_cu): New functions.
1948 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1949 (read_and_check_type_unit_head): Add abbrev_section argument.
1950 (create_debug_types_hash_table): Update.
1951 (init_cutu_and_read_dies): Use proper abbrev section.
1952 (init_cutu_and_read_dies_no_follow): Likewise.
1953 (set_partial_user): Do nothing if PST==NULL.
1954 (read_comp_units_from_section): New function.
1955 (create_all_comp_units): Use it.
1956 (scan_partial_symbols, partial_die_parent_scope): Update.
1957 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1958 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1959 (find_partial_die): Add offset_in_dwz argument. Update.
1960 (guess_partial_die_structure_name, fixup_partial_die): Update.
1961 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1962 DW_FORM_GNU_strp_alt.
1963 (read_indirect_string_from_dwz): New function.
1964 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1965 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1966 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1967 (follow_die_offset): Add offset_in_dwz argument.
1968 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1969 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1970 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1971 Handle new macro forms.
1972 (dwarf_decode_macros): Update.
1973 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1974 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1975 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1976 (create_debug_types_hash_table): Use correct abbrev section.
1977 (get_debug_line_section): New function.
1978 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1979 (process_full_comp_unit): Pass 'required' argument to
1980 end_symtab_get_static_block.
1981 * buildsym.h (end_symtab_get_static_block): Update.
1982 * buildsym.c (end_symtab_get_static_block): Add 'required'
1983 argument.
1984 (end_symtab, end_expandable_symtab): Update.
1985
4bf44c1c
TT
19862012-07-18 Tom Tromey <tromey@redhat.com>
1987
1988 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1989 (pagesize): Remove.
1990 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1991 (zlib_decompress_section): Remove.
1992 (dwarf2_read_section): Use gdb_bfd_map_section.
1993 (munmap_section_buffer): Remove.
1994 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1995 munmap_section_buffer.
1996 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1997 (struct gdb_bfd_section_data): New.
1998 (free_one_bfd_section): New function.
1999 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2000 (get_section_descriptor, zlib_decompress_section)
2001 (gdb_bfd_map_section): New functions.
2002 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2003
bb397797
TT
20042012-07-18 Tom Tromey <tromey@redhat.com>
2005
2006 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2007
6ec53d05
TT
20082012-07-18 Tom Tromey <tromey@redhat.com>
2009
2010 * gdb_bfd.c (struct gdb_bfd_data): New.
2011 (gdb_bfd_cache): New global.
2012 (struct gdb_bfd_cache_search): New.
2013 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2014 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2015 * gdb_bfd.h (gdb_bfd_open): Declare.
2016
f9a062ff
TT
20172012-07-18 Tom Tromey <tromey@redhat.com>
2018
2019 * utils.c (make_cleanup_bfd_unref): Rename from
2020 make_cleanup_bfd_close.
2021 * defs.h (make_cleanup_bfd_unref): Rename from
2022 make_cleanup_bfd_close.
2023 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2024 (bfd_openw_with_cleanup): Update.
2025 * corelow.c (core_open): Update.
2026 * dsrec.c (load_srec): Update.
2027 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2028 * remote-m32r-sdi.c (m32r_load): Update.
2029 * remote-mips.c (mips_load_srec): Update.
2030 (pmon_load_fast): Update.
2031 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2032 Update.
2033 (darwin_bfd_open): Update.
2034 * solib.c (solib_bfd_fopen): Update.
2035 * symfile-mem.c (symbol_file_add_from_memory): Update.
2036 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2037 (symfile_bfd_open): Update.
2038 (generic_load): Update.
2039
d6ad71ba
TT
20402012-07-18 Tom Tromey <tromey@redhat.com>
2041
2042 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2043 (pmon_load_fast): Likewise.
2044 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2045 (m32r_upload_command): Likewise.
2046 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2047 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2048 Use make_cleanup_bfd_close.
2049
a4453b7e
TT
20502012-07-18 Tom Tromey <tromey@redhat.com>
2051
2052 * symfile.c (symfile_bfd_open): Don't copy name. Call
2053 gdb_bfd_stash_filename.
2054 (load_command): Open the new BFD before freeing the old.
2055 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2056 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2057 Call gdb_bfd_stash_filename.
2058 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2059 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2060 gdb_bfd_stash_filename.
2061 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2062 Free found_pathname.
2063 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2064 gdb_bfd_stash_filename.
2065 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2066 * machoread.c (macho_add_oso_symfile): Call
2067 gdb_bfd_stash_filename.
2068 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2069 gdb_bfd_stash_filename.
2070 (macho_check_dsym): Don't copy filename. Call
2071 gdb_bfd_stash_filename.
2072 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2073 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2074 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2075 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2076 * exec.c (exec_close): Don't free the BFD's filename.
2077 (exec_file_attach): Don't copy the filename. Call
2078 gdb_bfd_stash_filename.
2079 * corelow.c (core_close): Don't free the BFD's filename.
2080 (core_open): Call gdb_bfd_stash_filename.
2081 * corefile.c (reopen_exec_file): Remove #if 0 code.
2082 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2083 pathname.
2084 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2085
cbb099e8
TT
20862012-07-18 Tom Tromey <tromey@redhat.com>
2087
2088 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2089 gdb_bfd_unref.
2090 (free_dwo_file): Use gdb_bfd_unref.
2091 * cli/cli-dump.c: Include gdb_bfd.h.
2092 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2093 (bfd_openr_with_cleanup): Likewise.
2094 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2095 gdb_bfd_unref.
2096 * utils.c: Include gdb_bfd.h.
2097 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2098 * symfile.c: Include gdb_bfd.h.
2099 (separate_debug_file_exists): Use gdb_bfd_unref.
2100 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2101 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2102 (generic_load): Use gdb_bfd_ref.
2103 (reread_symbols): Use gdb_bfd_unref.
2104 * symfile-mem.c: Include gdb_bfd.h.
2105 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2106 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2107 * solib.c: Include gdb_bfd.h.
2108 (solib_bfd_fopen): Use gdb_bfd_ref.
2109 (solib_bfd_open): Use gdb_bfd_unref.
2110 (free_so_symbols): Use gdb_bfd_unref.
2111 (reload_shared_libraries_1): Use gdb_bfd_unref.
2112 * solib-spu.c: Include gdb_bfd.h.
2113 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2114 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2115 gdb_bfd_unref.
2116 * solib-frv.c: Include gdb_bfd.h.
2117 (enable_break2): Use gdb_bfd_unref.
2118 * solib-dsbt.c: Include gdb_bfd.h.
2119 (enable_break2): Use gdb_bfd_unref.
2120 * solib-darwin.c: Include gdb_bfd.h.
2121 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2122 gdb_bfd_unref.
2123 (darwin_bfd_open): Use gdb_bfd_unref.
2124 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2125 * remote-mips.c: Include gdb_bfd.h.
2126 (mips_load_srec): Use gdb_bfd_ref.
2127 (pmon_load_fast): Use gdb_bfd_ref.
2128 * remote-m32r-sdi.c: Include gdb_bfd.h.
2129 (m32r_load): Use gdb_bfd_ref.
2130 * record.c: Include gdb_bfd.h.
2131 (record_save_cleanups): Use gdb_bfd_unref.
2132 (cmd_record_save): Use gdb_bfd_unref.
2133 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2134 gdb_bfd_unref.
2135 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2136 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2137 * objfiles.c: Include gdb_bfd.h.
2138 (free_objfile): Use gdb_bfd_unref.
2139 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2140 gdb_bfd.c.
2141 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2142 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2143 (macho_check_dsym): Likewise.
2144 * m32r-rom.c: Include gdb_bfd.h.
2145 (m32r_load): Use gdb_bfd_ref.
2146 (m32r_upload_command): Use gdb_bfd_ref.
2147 * jit.c: Include gdb_bfd.h.
2148 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2149 * gdb_bfd.h: New file.
2150 * gdb_bfd.c: New file.
2151 * gcore.c: Include gdb_bfd.h.
2152 (create_gcore_bfd): Use gdb_bfd_ref.
2153 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2154 (gcore_command): Use gdb_bfd_unref.
2155 * exec.c: Include gdb_bfd.h.
2156 (exec_close): Use gdb_bfd_unref.
2157 (exec_close_1): Use gdb_bfd_unref.
2158 (exec_file_attach): Use gdb_bfd_ref.
2159 * elfread.c: Include gdb_bfd.h.
2160 (build_id_verify): Use gdb_bfd_unref.
2161 * dsrec.c: Include gdb_bfd.h.
2162 (load_srec): Use gdb_bfd_ref.
2163 * corelow.c: Include gdb_bfd.h.
2164 (core_close): Use gdb_bfd_unref.
2165 (core_open): Use gdb_bfd_ref.
2166 * bfd-target.c: Include gdb_bfd.h.
2167 (target_bfd_xclose): Use gdb_bfd_unref.
2168 (target_bfd_reopen): Use gdb_bfd_ref.
2169 * Makefile.in (SFILES): Add gdb_bfd.c.
2170 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2171 (COMMON_OBS): Add gdb_bfd.o.
2172
ed1d1739
KS
21732012-07-18 Keith Seitz <keiths@redhat.com>
2174
2175 * breakpoint.c (find_condition_and_thread): Initialize
2176 TASK and REST.
2177 (create_breakpiont): find_condition_and_thread will now
2178 initialize COND_STRING, THREAD, and REST (and TASK).
2179 (addr_string_to_sals): Likewise.
2180
eab402df
PA
21812012-07-18 Pedro Alves <palves@redhat.com>
2182
2183 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2184 Pull the single step breakpoints out of the target.
2185
2b963b68
SDJ
21862012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2187
2188 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2189 * stap-probe.c (compile_probe_arg): Likewise.
2190
6bac7473
SDJ
21912012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2192
2193 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2194 (elf_compile_to_ax): Likewise.
2195 * infrun.c (insert_exception_resume_from_probe): Likewise.
2196 (check_exception_resume): Remove `objfile' variable.
2197 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2198 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2199 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2200 (compare_entries): Rename to...
2201 (compare_probes): ...this. Adjust function to work with
2202 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2203 respectively.
2204 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2205 `VEC (probe_p) *'.
2206 (print_ui_out_info): Adjust argument to be `struct probe *'.
2207 (info_probes_for_ops): Adjust internal computations to use
2208 `VEC (probe_p) *'.
2209 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2210 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2211 gen_info_probes_table_values>: Remove `objfile' argument.
2212 (struct probe) <objfile>: New field.
2213 (find_probe_by_pc): Remove `objfile' argument.
2214 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2215 (stap_get_probe_argument_count): Likewise.
2216 (stap_get_arg): Likewise.
2217 (stap_evaluate_probe_argument): Likewise.
2218 (stap_compile_to_ax): Likewise.
2219 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2220 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2221 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2222 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2223 sym_compile_to_ax>: Likewise.
2224
3347eb1a 22252012-07-18 Terry Guo <terry.guo@arm.com>
2226
2227 PR 14329
2228 * defs.h (GDB_MI_MSG_WIDTH): New.
2229 * ser_base (ser_base_read_error_fd): New function.
2230 (do_ser_base_readchar): Poll error file descriptor as well as
2231 standard output.
f782ad9b 2232 (generic_readchar): Refactor error handling.
3347eb1a 2233
80c8d323
JB
22342012-07-18 Joel Brobecker <brobecker@adacore.com>
2235
2236 * NEWS: Create a new section for the next release branch.
2237 Rename the section of the current branch, now that it has
2238 been cut.
2239
b45a0664 22402012-07-18 Joel Brobecker <brobecker@adacore.com>
2241
2242 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2243 * version.in: Bump version to 7.5.50.20120718-cvs.
2244
09cf2b22
KS
22452012-07-17 Keith Seitz <keiths@redhat.com>
2246
2247 * linespec.c (linespec_parse_line_offset): Make parameter
2248 const.
2249
8f043999
JK
22502012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2251
2252 PR 11914
2253 * f-valprint.c (info_common_command): New variable frame_id.
2254 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2255 * printcmd.c (print_variable_and_value): Extend function comment.
2256 Add comment for invalidated FRAME.
2257 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2258 FI form FRAME_ID after each print_frame_local_vars.
2259 (struct print_variable_and_value_data): Change frame to frame_id.
2260 (do_print_variable_and_value): New variable frame, initialize it from
2261 p->frame_id. Add comment for invalidated FRAME.
2262 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2263 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2264 for invalidated FRAME.
2265
ae5e0686
MK
22662012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2267 Pedro Alves <palves@redhat.com>
2268
2269 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2270 loop.
2271
5049c5be
TT
22722012-07-16 Tom Tromey <tromey@redhat.com>
2273
2274 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2275
2908cac6
DE
22762012-07-15 Doug Evans <dje@google.com>
2277
094b34ac
DE
2278 * dwarf2read.c (stmt_list_hash): New struct.
2279 (type_unit_group): Embed "per_cu" member, remove pointer.
2280 New union member "t", move member "tus" into it, all uses updated.
2281 New member "hash", replaces member "line_offset, all uses updated.
2282 (quick_file_names): Replace member "offset" with "hash", all uses
2283 updated.
2284 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2285 (hash_file_name_entry, eq_file_name_entry): Call them.
2286 (hash_type_unit_group, eq_type_unit_group): Ditto.
2287 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2288 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2289 (dw2_get_file_names): Update.
2290 (create_type_unit_group): Replace "per_cu" arg with "cu".
2291 All callers updated. Fix "quick" (.gdb_index) handling.
2292 (get_type_unit_group): Replace "per_cu" arg with "cu".
2293 All callers updated.
2294 (build_type_unit_groups): Don't reset tu_stats.
2295
2908cac6
DE
2296 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2297 "tab_cur_size". Change member "tab" to be a htab_t.
2298 (create_filename_seen_cache): Update.
2299 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2300 (filename_seen): Update.
2301
a2b6eff5
DE
23022012-07-13 Doug Evans <dje@google.com>
2303
2304 * symtab.c (filename_seen): Update comment.
2305
4359dff1
JK
23062012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2307 Doug Evans <dje@google.com>
2308
2309 * buildsym.c (end_symtab_1): Split it to ...
2310 (end_symtab_get_static_block): ... this ...
2311 (end_symtab_from_static_block): ... and this function.
2312 (end_symtab, end_expandable_symtab): Call them.
2313 * buildsym.h (end_symtab_get_static_block)
2314 (end_symtab_from_static_block): New declarations.
2315 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2316 Set its valid CU ranges.
2317
a24f71ab
JK
23182012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2319
2320 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2321 DW_OP_GNU_parameter_ref.
2322
d76b7dbc
JK
23232012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2324
2325 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2326 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2327
9fdc877b
DE
23282012-07-13 Doug Evans <dje@google.com>
2329
2330 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2331 (filename_seen_cache): New struct.
2332 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2333 (create_filename_seen_cache): New function.
2334 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2335 (filename_seen): Delete arg "first". New arg "cache". All callers
2336 updated.
2337 (output_source_filename_data): New struct.
2338 (output_source_filename): Delete arg "first". New arg "data".
2339 All callers updated.
2340 (sources_info): Delete local "first". New locals "data", "cleanups".
2341 Rewrite to use filename_seen_cache.
2342 (add_partial_filename_data): Delete member "first". New member
2343 "filename_seen_cache". All uses updated.
2344 (make_source_files_completion_list): Rewrite to use
2345 filename_seen_cache.
2346
f80c6f3f
DE
23472012-07-12 Doug Evans <dje@google.com>
2348
2349 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2350
0bfa869d
DE
23512012-07-10 Doug Evans <dje@google.com>
2352
f4dc4d17
DE
2353 PR gdb/13498
2354 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2355 all_type_unit_groups, type_unit_groups, tu_stats.
2356 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2357 All uses updated. Add type_unit_group to union "s".
2358 (type_unit_group): New struct.
2359 (IS_TYPE_UNIT_GROUP): New macro.
2360 (abbrev_table): Delete unused member "section".
2361 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2362 (dw2_get_cu): Assert not used with type_unit_group.
2363 (dw2_get_primary_cu): New function.
2364 (dw2_build_type_unit_groups_reader): New function.
2365 (dw2_build_type_unit_groups): New function.
2366 (dw2_get_file_names): Assert not called on type units.
2367 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2368 Redo loop to iterate over type unit groups instead of type units.
2369 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2370 (read_abbrev_offset): New function.
2371 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2372 updated.
2373 (create_partial_symtab): New function.
2374 (process_psymtab_comp_unit_reader): Assert not used with type units.
2375 Call create_partial_symtab.
2376 (process_psymtab_type_unit): Delete.
2377 (hash_type_unit_group, eq_type_unit_group): New functions.
2378 (allocate_type_unit_groups_table): New function.
2379 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2380 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2381 (create_type_unit_group, get_type_unit_group): New functions.
2382 (tu_abbrev_offset): New struct.
2383 (sort_tu_by_abbrev_offset): New function.
2384 (add_type_unit_group_to_table): New function.
2385 (build_type_unit_groups): New function.
2386 (build_type_psymtabs_reader): New function.
2387 (build_type_psymtab_dependencies): New function.
2388 (build_type_psymtabs): Rewrite.
2389 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2390 is seen in a type unit.
2391 (process_queue): Move symtab expansion debugging printfs here.
2392 Call process_full_type_unit for type units.
2393 (compute_symtab_includes): Assert not called for type units.
2394 (process_cu_includes): Don't call compute_symtab_includes for
2395 type units.
2396 (process_full_type_unit): New function.
2397 (process_imported_unit_die): Flag an error if called for type units.
2398 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2399 updated. Assert not called for type units.
2400 (read_file_scope): Call dwarf2_start_symtab.
2401 (setup_type_unit_groups): New function.
2402 (read_type_unit_scope): Rewrite.
2403 (abbrev_table_read_table): Initialize abbrev_table->offset.
2404 (abbrev_table_free_cleanup): New function.
2405 (dwarf2_start_symtab): New function.
2406 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
2407 * buildsym.c (finish_block_internal): New arg "expandable".
2408 All callers updated.
2409 (start_symtab): Move most contents to ...
2410 (restart_symtab): ... here. New function.
2411 (reset_symtab_globals): New function.
2412 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2413 Call reset_symtab_globals.
2414 (end_symtab, end_expandable_symtab): New functions.
2415 (set_missing_symtab, augment_type_symtab): New functions.
2416 * buildsym.h (end_expandable_symtab): Declare.
2417 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
2418 * psympriv.h (struct partial_symtab): New member "anonymous".
2419 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2420 anonymous psymtabs.
2421 (read_psymtabs_with_filename): Ditto.
2422 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2423 (expand_symtabs_matching_via_partial): Ditto.
2424 (dump_psymtab): Update.
0bfa869d
DE
2425 * dictionary.c (dict_add_pending): New function.
2426 * dictionary.h (dict_add_pending): Declare.
2427
45e58e77
DE
24282012-07-09 Doug Evans <dje@google.com>
2429
b74db436
DE
2430 * buildsym.c (start_subfile): Remove unnecessary check for
2431 name == NULL.
2432
fd55216c
DE
2433 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2434
6721b2ec
DE
2435 * dwarf2read.c (load_full_type_unit): Simplify.
2436
b4dd5633
DE
2437 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2438 to struct signatured_type **. All uses updated.
2439
45e58e77
DE
2440 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2441 All callers updated.
2442
e314d629
TT
24432012-07-09 Tom Tromey <tromey@redhat.com>
2444
2445 * c-exp.y (check_parameter_typelist): New function.
2446 (parameter_typelist): Call it.
2447 * eval.c (make_params): Handle '(void)' case.
2448 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2449 '(void)' case.
2450
aa7c7447
JK
24512012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2452
2453 * common/linux-ptrace.c: Include gdb_assert.h.
2454 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2455 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2456 stdint.h.
2457 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2458 functions.
2459 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2460 * linux-nat.c (linux_child_post_attach)
2461 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2462
889003ed
JK
24632012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2464
2465 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2466 nptl <2.7 bug workaround for core files.
2467
da559b09
JK
24682012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2469
2470 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2471 clearing.
2472 (save_siginfo): Remove.
2473 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2474 call.
2475 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2476 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2477 * linux-nat.h (struct lwp_info): Remove field siginfo.
2478
f865ee35
JK
24792012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2480
2481 Code cleanup for the next patch.
2482 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2483 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2484 call for it.
2485 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2486 (ia64_linux_stopped_data_address):
2487 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2488 the return value.
2489 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2490 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2491 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2492 call for it.
2493
76b83c51
JK
24942012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2495
2496 PR 14321
2497 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2498 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2499
a6fb9c08
TT
25002012-07-06 Tom Tromey <tromey@redhat.com>
2501
2502 * c-exp.y (DOTDOTDOT): New token.
2503 (func_mod, exp): Use parameter_typelist.
2504 (parameter_typelist): New production.
2505 (tokentab3): Add "..." token.
2506 * eval.c (make_params): Handle varargs.
2507 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2508 varargs.
2509
71918a86
TT
25102012-07-06 Tom Tromey <tromey@redhat.com>
2511
2512 PR exp/9608:
2513 * c-exp.y (%union) <tvec>: Change type.
2514 (func_mod): Now uses <tvec> type.
2515 (exp): Update for tvec change.
2516 (direct_abs_decl): Push the typelist.
2517 (func_mod): Return a typelist.
2518 (nonempty_typelist): Update for tvec change.
2519 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2520 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2521 * parse.c (pop_type_list): New function.
2522 (push_typelist): New function.
2523 (follow_types): Handle tp_function_with_arguments.
2524 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2525 (enum type_pieces) <tp_function_with_arguments>: New constant.
2526 (union type_stack_elt) <typelist_val>: New field.
2527 (push_typelist): Declare.
2528
fcde5961
TT
25292012-07-06 Tom Tromey <tromey@redhat.com>
2530
2531 * c-exp.y (%union) <type_stack>: New field.
2532 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2533 (ptr_operator_ts): New production.
2534 (ptype): Update.
2535 * parse.c (type_stack_reserve): New function.
2536 (check_type_stack_depth): Use it.
2537 (pop_type_stack, append_type_stack, push_type_stack)
2538 (get_type_stack, type_stack_cleanup): New functions.
2539 (follow_types): Handle tp_type_stack.
2540 (_initialize_parse): Simplify initialization.
2541 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2542 constant.
2543 (union type_stack_elt) <stack_val>: New field.
2544 (get_type_stack, append_type_stack, push_type_stack)
2545 (type_stack_cleanup): Declare.
2546
1a7d0ce4
TT
25472012-07-06 Tom Tromey <tromey@redhat.com>
2548
2549 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2550 Remove.
2551 (struct type_stack): New.
2552 * parse.c (type_stack, type_stack_size, type_stack_depth):
2553 Remove.
2554 (type_stack): New global.
2555 (parse_exp_in_context, check_type_stack_depth)
2556 (insert_into_type_stack, insert_type, push_type, push_type_int)
2557 (insert_type_address_space, pop_type, pop_type_int)
2558 (_initialize_parse): Update.
2559
16d01384
TT
25602012-07-06 Tom Tromey <tromey@redhat.com>
2561
2562 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2563 Remove %type.
2564
9bfc60bf
SP
25652012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2566
2567 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2568
d5161074
SP
25692012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2570 Jan Kratochvil <jan.kratochvil@redhat.com>
2571
2572 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2573 alloca with xmalloc/xfree.
2574
a74bc576
SP
25752012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2576
2577 * MAINTAINERS (Write After Approval): Add myself to the list.
2578
667e0a4b
DE
25792012-07-05 Doug Evans <dje@google.com>
2580
2581 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2582
34b536a8
HZ
25832012-07-05 Hui Zhu <hui_zhu@mentor.com>
2584
2585 * ax-gdb.c (cli/cli-utils.h): New include.
2586 (linespec.h): Ditto.
2587 (agent_eval_command_one): New function.
2588 (agent_command_1): Ditto.
2589 (agent_command): Call function agent_command_1.
2590 (agent_eval_command): Ditto.
2591 (_initialize_ax_gdb): Change help for "maint agent"
2592 and "maint agent-eval".
2593
e6f0bce7
HZ
25942012-07-05 Hui Zhu <hui_zhu@mentor.com>
2595
2596 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2597 * cli/cli-utils.c (check_for_argument): New function.
2598 * cli/cli-utils.h (check_for_argument): Ditto.
2599
1b3371b1
L
26002012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2601
2602 * NEWS: Mention x32 ABI support.
2603
23e2d720
L
26042012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2605
2606 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2607 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2608
2609 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2610 and pc_regnum_from_eax to -1. Update SP regnum from
2611 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2612 needed.
2613
2614 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2615 pc_regnum_from_eax.
2616
836bf454
JK
26172012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2618
2619 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2620 * dwarf2expr.h: Include gdbtypes.h.
2621 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2622 these forward declarations.
2623 (cu_offset, sect_offset): Move these ...
2624 * gdbtypes.h: Remove include dwarf2expr.h.
2625 (cu_offset, sect_offset): ... here.
2626
1e55e04f
L
26272012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2628
2629 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2630 (amd64_linux_sigtramp_code): This.
2631 (amd64_x32_linux_sigtramp_code): New.
2632 (LINUX_SIGTRAMP_LEN): Updated.
2633 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2634
7d0e21ad
JK
26352012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2636
2637 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2638
8775fd2d
JK
26392012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2640
2641 * config.in: Regenerate.
2642 * configure: Regenerate.
2643 * configure.ac: Remove check for gnu/libc-version.h.
2644 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2645 gnu/libc-version.h.
2646 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2647 variables libc_version, libc_major and libc_minor. Replace sscanf by
2648 inferior_has_bug. Extend the comment.
2649
fcb44371
JK
26502012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2651
2652 * linux-thread-db.c (inferior_has_bug): New function.
2653 (thread_db_find_new_threads_silently): Return boolean as checked by
2654 inferior_has_bug, describe it in the comments.
2655 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2656 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 2657 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
2658 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2659 if UNTIL_NO_NEW,
2660
09406207
DE
26612012-07-02 Doug Evans <dje@google.com>
2662
0907af0c
DE
2663 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2664 related to queue management.
2665
09406207
DE
2666 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2667 instead of "debug dwarf2-die" in debugging printfs.
2668 (create_debug_info_hash_table_reader): Ditto.
2669 (create_debug_info_hash_table): Ditto.
2670 (init_dwo_file): Ditto.
2671 (init_cutu_and_read_dies): Add debugging printf.
2672 (init_cutu_and_read_dies_no_follow): Ditto.
2673 (process_psymtab_comp_unit_reader): Ditto.
2674
d3ce09f5
SS
26752012-07-02 Stan Shebs <stan@codesourcery.com>
2676
2677 Add target-side support for dynamic printf.
2678 * NEWS: Mention the additional style.
2679 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2680 (struct bp_location): New field cmd_bytecode.
2681 * breakpoint.c: Include format.h.
2682 (disconnected_dprintf): New global.
2683 (parse_cmd_to_aexpr): New function.
2684 (build_target_command_list): New function.
2685 (insert_bp_location): Call it.
2686 (remove_breakpoints_pid): Skip dprintf breakpoints.
2687 (print_one_breakpoint_location): Ditto.
2688 (dprintf_style_agent): New global.
2689 (dprintf_style_enums): Add dprintf_style_agent.
2690 (update_dprintf_command_list): Add agent case.
2691 (agent_printf_command): New function.
2692 (_initialize_breakpoint): Add new commands.
2693 * common/ax.def (printf): New bytecode.
2694 * ax.h (ax_string): Declare.
2695 * ax-gdb.h (gen_printf): Declare.
2696 * ax-gdb.c: Include cli-utils.h, format.h.
2697 (gen_printf): New function.
2698 (maint_agent_print_command): New function.
2699 (_initialize_ax_gdb): Add maint agent-printf command.
2700 * ax-general.c (ax_string): New function.
2701 (ax_print): Add printf disassembly.
2702 * Makefile.in (SFILES): Add format.c
2703 (COMMON_OBS): Add format.o.
2704 * common/format.h: New file.
2705 * common/format.c: New file.
2706 * printcmd.c: Include format.h.
2707 (ui_printf): Call parse_format_string.
2708 * remote.c (remote_state): New field breakpoint_commands.
2709 (PACKET_BreakpointCommands): New enum.
2710 (remote_breakpoint_commands_feature): New function.
2711 (remote_protocol_features): Add new BreakpointCommands entry.
2712 (remote_can_run_breakpoint_commands): New function.
2713 (remote_add_target_side_commands): New function.
2714 (remote_insert_breakpoint): Call it.
2715 (remote_insert_hw_breakpoint): Ditto.
2716 (_initialize_remote): Add new packet configuration for
2717 target-side breakpoint commands.
2718 * target.h (struct target_ops): New field
2719 to_can_run_breakpoint_commands.
2720 (target_can_run_breakpoint_commands): New macro.
2721 * target.c (update_current_target): Handle
2722 to_can_run_breakpoint_commands.
2723
2d7b58e8
JK
27242012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2725
2726 Execute -ix and -iex only after system and user gdbinit files.
2727 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2728 processing down after gdbinit files.
2729
8690e634
JK
27302012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2731
2732 Add fnmatch-gnu module.
2733 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2734 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2735 * gnulib/aclocal.m4: Regenerate.
2736 * gnulib/config.in: Regenerate.
2737 * gnulib/configure: Regenerate.
2738 * gnulib/import/dummy.c: Remove.
2739 * gnulib/import/Makefile.am: Regenerate.
2740 * gnulib/import/Makefile.in: Likewise.
2741 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2742 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2743 * gnulib/import/alloca.c: New file.
2744 * gnulib/import/alloca.in.h: Likewise.
2745 * gnulib/import/config.charset: Likewise.
2746 * gnulib/import/fnmatch.c: Likewise.
2747 * gnulib/import/fnmatch.in.h: Likewise.
2748 * gnulib/import/fnmatch_loop.c: Likewise.
2749 * gnulib/import/localcharset.c: Likewise.
2750 * gnulib/import/localcharset.h: Likewise.
2751 * gnulib/import/m4/alloca.m4: Likewise.
2752 * gnulib/import/m4/codeset.m4: Likewise.
2753 * gnulib/import/m4/configmake.m4: Likewise.
2754 * gnulib/import/m4/fcntl-o.m4: Likewise.
2755 * gnulib/import/m4/fnmatch.m4: Likewise.
2756 * gnulib/import/m4/glibc21.m4: Likewise.
2757 * gnulib/import/m4/localcharset.m4: Likewise.
2758 * gnulib/import/m4/locale-fr.m4: Likewise.
2759 * gnulib/import/m4/locale-ja.m4: Likewise.
2760 * gnulib/import/m4/locale-zh.m4: Likewise.
2761 * gnulib/import/m4/mbrtowc.m4: Likewise.
2762 * gnulib/import/m4/mbsinit.m4: Likewise.
2763 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2764 * gnulib/import/m4/mbstate_t.m4: Likewise.
2765 * gnulib/import/m4/stdbool.m4: Likewise.
2766 * gnulib/import/m4/wchar_h.m4: Likewise.
2767 * gnulib/import/m4/wctype_h.m4: Likewise.
2768 * gnulib/import/m4/wint_t.m4: Likewise.
2769 * gnulib/import/mbrtowc.c: Likewise.
2770 * gnulib/import/mbsinit.c: Likewise.
2771 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2772 * gnulib/import/mbsrtowcs-state.c: Likewise.
2773 * gnulib/import/mbsrtowcs.c: Likewise.
2774 * gnulib/import/ref-add.sin: Likewise.
2775 * gnulib/import/ref-del.sin: Likewise.
2776 * gnulib/import/stdbool.in.h: Likewise.
2777 * gnulib/import/streq.h: Likewise.
2778 * gnulib/import/strnlen1.c: Likewise.
2779 * gnulib/import/strnlen1.h: Likewise.
2780 * gnulib/import/verify.h: Likewise.
2781 * gnulib/import/wchar.in.h: Likewise.
2782 * gnulib/import/wctype.in.h: Likewise.
2783
202cbf1c
JK
27842012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2785
2786 Support shell wildcards for 'set auto-load safe-path'.
2787 * auto-load.c: Include fnmatch.h.
2788 (filename_is_in_dir): Rename to ...
2789 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2790 it. Update function comment. Rename dir_len to pattern_len. New
2791 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2792 messages. Use gdb_filename_fnmatch.
2793 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2794 pattern.
2795 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2796 * defs.h (gdb_filename_fnmatch): New declaration.
2797 * utils.c: Include fnmatch.h.
2798 (gdb_filename_fnmatch): New function.
2799
fb7b5af4
SDJ
28002012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2801
2802 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2803 `-probe' and `-probe-stap' options.
2804
72d0e2c5
YQ
28052012-07-01 Yao Qi <yao@codesourcery.com>
2806
2807 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2808 always_inserted_off, and always_inserted_enums.
2809 Change always_inserted_mode's type to 'enum auto_boolean'.
2810 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2811 callers.
2812 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2813 of add_setshow_enum_cmd.
2814 * infrun.c: Remove can_use_displaced_stepping_auto,
2815 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2816 can_use_displaced_stepping_enum.
2817 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2818 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2819 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2820 add_setshow_enum_cmd.
2821
42e7ad6c
DE
28222012-06-30 Doug Evans <dje@google.com>
2823
2824 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2825 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2826 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2827
39cf75f7
DE
28282012-06-29 Doug Evans <dje@google.com>
2829
2830 * linespec.c: #include "stack.h".
2831 (decode_line_with_current_source): Moved here from symtab.c and
2832 renamed from decode_line_spec. All callers updated.
2833 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2834 renamed from decode_line_spec_1. All callers updated.
2835 * linespec.h (decode_line_with_current_source): Move declaration here
2836 from symtab.h and renamed from decode_line_spec.
2837 (decode_line_with_last_displayed): Move declaration here from symtab.h
2838 and renamed from decode_line_spec_1.
2839 * macrocmd.c: #include "linespec.h".
2840 * symtab.c: Remove #include "linespec.h".
2841
433df2d4
DE
28422012-06-28 Doug Evans <dje@google.com>
2843
1ce1cefd
DE
2844 * dwarf2read.c (get_cu_length): New function.
2845 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2846 (create_debug_types_hash_table): Ditto.
2847 (init_cutu_and_read_dies): Ditto.
2848 (init_cutu_and_read_dies_no_follow): Ditto.
2849
3b80fe9b
DE
2850 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2851
433df2d4
DE
2852 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2853 (struct abbrev_table): Define.
2854 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2855 abbrev_table.
2856 (init_cutu_and_read_dies): Update.
2857 (abbrev_table_alloc_abbrev): New function. Replaces
2858 dwarf_alloc_abbrev. All callers updated.
2859 (abbrev_table_add_abbrev): New function.
2860 (abbrev_table_lookup_abbrev): New function. Replaces
2861 dwarf2_lookup_abbrev. All callers updated.
2862 (abbrev_table_read_table): New function. Contents moved here from
2863 dwarf2_read_abbrevs.
2864 (dwarf2_read_abbrevs): Call it.
2865 (abbrev_table_free): New function.
2866 (dwarf2_free_abbrev_table): Call it.
2867
71caed83
SS
28682012-06-28 Stan Shebs <stan@codesourcery.com>
2869
2870 * osdata.c (info_osdata_command): Filter out "Title" columns
2871 from non-MI uses.
2872 * common/linux-osdata.c (struct osdata_type): Add title field.
2873 (osdata_table): Add titles to each entry.
2874 (linux_command_xfer_osdata): Add a column for title data.
2875
37ce89eb
SS
28762012-06-28 Stan Shebs <stan@codesourcery.com>
2877
2878 Make logging work for MI.
2879 * NEWS: Mention it.
2880 * interps.h (interp_set_logging_ftype): New typedef.
2881 (struct interp_procs): New field set_logging_proc.
2882 (current_interp_set_logging): Declare.
2883 * interps.c (current_interp_set_logging): New function.
2884 * cli/cli-logging.c: Include interps.h.
2885 (set_logging_redirect): Call current_interp_set_logging.
2886 (pop_output_files): Ditto.
2887 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2888 * mi/mi-console.h (mi_console_set_raw): Declare.
2889 * mi/mi-console.c (mi_console_set_raw): New function.
2890 * mi/mi-interp.c (saved_raw_stdout): New global.
2891 (mi_set_logging): New function.
2892 (_initialize_mi_interp): Add it to interp procs.
2893
659c9f3a
DE
28942012-06-28 Doug Evans <dje@google.com>
2895
a743abeb
DE
2896 * symtab.c (lookup_symbol_aux_objfile): Use
2897 ALL_OBJFILE_PRIMARY_SYMTABS.
2898
659c9f3a
DE
2899 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2900
da2d6d3d
JK
29012012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2902
2903 * common/buffer.c: Include inttypes.h and stdint.h.
2904 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2905
e5ef252a
PA
29062012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2907 Pedro Alves <palves@redhat.com>
2908
2909 * gdbthread.h (ALL_THREADS): New macro.
2910 (thread_list): Declare.
2911 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2912 going, but instead fall through to the stepping handling.
2913 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2914 the passed in signal. Adjust debug output.
2915 (resume_callback): Rename to ...
2916 (linux_nat_resume_callback): ... this. Pass the thread's last
2917 stop signal, if in "pass" state.
2918 (linux_nat_resume): Adjust to rename.
2919 (stop_wait_callback): New assertion. Don't respawn signals;
2920 instead let the LWP remain with SIGNALLED set.
2921 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2922 * remote.c (append_pending_thread_resumptions): New.
2923 (remote_vcont_resume): Call it.
2924 * target.h (target_resume): Extend comment.
2925
1d7975eb
IS
29262012-06-28 Iain Sandoe <iain@codesourcery.com>
2927
2928 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2929
2e3cf129
DE
29302012-06-27 Doug Evans <dje@google.com>
2931
2932 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2933 Delete have_addr_base, unused. All uses updated.
2934 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2935 (dwarf2_get_pc_bounds): Add ranges_base.
2936 (dwarf2_record_block_ranges): Ditto.
2937
1bb9788d
TT
29382012-06-27 Tom Tromey <tromey@redhat.com>
2939
2940 PR macros/7961:
2941 * varobj.c (varobj_create): Update.
2942 (varobj_set_value): Update.
2943 * tracepoint.c (validate_actionline): Update.
2944 (encode_actions_1): Update.
2945 * parse.c (parse_exp_1): Add 'pc' argument.
2946 (parse_exp_in_context): Add 'pc' argument. Change how
2947 expression_context_pc is set.
2948 (parse_expression): Update.
2949 (parse_field_expression): Update.
2950 * expression.h (parse_exp_1): Update.
2951 * eval.c (parse_to_comma_and_eval): Update.
2952 * breakpoint.c (set_breakpoint_condition): Update.
2953 (update_watchpoint): Update.
2954 (init_breakpoint_sal): Update
2955 (find_condition_and_thread): Update.
2956 (watch_command_1): Update.
2957 (update_breakpoint_locations): Update.
2958 * ada-lang.c (ada_read_renaming_var_value): Update.
2959 (create_excep_cond_exprs): Update.
2960
0bc3a05c
DE
29612012-06-27 Doug Evans <dje@google.com>
2962
2963 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2964 type units.
2965
4bdcc0c1
DE
29662012-06-26 Doug Evans <dje@google.com>
2967
2968 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2969 prototype.
2970 (error_check_comp_unit_head): New arg abbrev_section. All callers
2971 updated.
2972 (read_and_check_comp_unit_head): Ditto.
2973 (read_and_check_type_unit_head): Ditto.
2974
ee0bf529
SCR
29752012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2976
2977 New attribute 'last' for gdb.Symtab_and_line.
2978 * NEWS (Python Scripting): Add entry about the new attribute.
2979 * python/py-symtab.c (salpy_get_last): New function which
2980 implements the get method for the 'last' attribute of
2981 gdb.Symtab_and_line.
2982 (sal_object_getset): Add entry for the 'last' attribute.
2983
1c658ad5
DE
29842012-06-26 Doug Evans <dje@google.com>
2985
09262596
DE
2986 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2987 (dwo_sections): Add macinfo, macro.
2988 (dwarf2_locate_dwo_sections): Watch for macro sections.
2989 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2990 All callers updated. Handle DWO files.
2991
45cfd468
DE
2992 * NEWS: Mention new options "set debug dwarf2-read" and
2993 "set debug symtab-create".
2994 * dwarf2read.c (dwarf2_read_debug): New static global.
2995 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2996 (process_queue): Ditto.
2997 (process_full_comp_unit): Ditto.
2998 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2999 * elfread.c (elf_symfile_read): Add debugging printf.
3000 * minsyms.c (install_minimal_symbols): Ditto.
3001 * psymtab.c (allocate_psymtab): Ditto.
3002 * symfile.c (allocate_symtab): Ditto.
3003 * symtab.c (symtab_create_debug): New global.
3004 (_initialize_symtab): Add new option "set debug symtab-create".
3005 * symtab.h (symtab_create_debug): Declare.
3006
1c658ad5
DE
3007 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3008 (lookup_dwo_type_unit): Ditto.
3009
6fea9e18
L
30102012-06-26 Roland McGrath <roland@hack.frob.com>
3011 H.J. Lu <hongjiu.lu@intel.com>
3012
3013 * amd64-linux-nat.c: Include <sys/user.h>.
3014 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3015 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3016 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3017
3018 * configure.ac: Check if the fs_base and gs_base members of
3019 `struct user_regs_struct' exist.
3020 * config.in: Regenerated.
3021 * configure: Likewise.
3022
adb4fe3b
ME
30232012-06-25 Michael Eager <eager@eagercon.com>
3024
3025 PR python/14291
f782ad9b 3026 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3027
fc51cce1
MGD
30282012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3029
3030 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3031 register as a stack alignment in ARM mode.
3032
40a73391
JK
30332012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3034
3035 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3036 * gnulib/config.in: Regenerate.
3037 * gnulib/configure: Likewise.
3038 * gnulib/import/m4/extensions.m4: Update it.
3039 * gnulib/import/m4/gnulib-common.m4: Likewise.
3040 * gnulib/import/m4/memmem.m4: Likewise.
3041 * gnulib/import/m4/mmap-anon.m4: Likewise.
3042 * gnulib/import/m4/multiarch.m4: Likewise.
3043 * gnulib/import/stdint.in.h: Likewise.
3044
972daa01
YQ
30452012-06-24 Yao Qi <yao@codesourcery.com>
3046
3047 * corefile.c (write_memory_with_notification): New.
3048 * gdbcore.h: Declare write_memory_with_notification.
3049 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3050 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3051 * valops.c (value_assign): Likewise.
3052 * python/py-inferior.c (infpy_write_memory): Call
3053 'write_memory_with_notification'.
3054
8d6e0714
JK
30552012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3056
3057 * cc-with-index.sh: Use also -ex "set auto-load no".
3058
156942c7
DE
30592012-06-23 Doug Evans <dje@google.com>
3060
3061 PR 14125
3062 * NEWS: Document additions to .gdb_index.
3063 * dwarf2read.c: #include "gdb/gdb-index.h".
3064 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3065 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3066 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3067 (dwarf2_read_index): Recognize version 7.
3068 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3069 block_kind, domain): All callers updated.
3070 (dw2_find_symbol_file): Handle new index CU values.
3071 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3072 (add_index_entry): New args is_static, kind. All callers updated.
3073 (offset_type_compare, uniquify_cu_indices): New functions
3074 (symbol_kind): New function.
3075 (write_psymtabs_to_index): Remove duplicate CU values.
3076 (write_psymtabs_to_index): Write .gdb_index version 7.
3077
352b3eda
JB
30782012-06-22 Joel Brobecker <brobecker@adacore.com>
3079
3080 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3081 * configure: Regenerate.
3082
2678e2af
YQ
30832012-06-20 Yao Qi <yao@codesourcery.com>
3084
3085 * python/py-inferior.c: Update comments of infpy_read_memory
3086 and infpy_write_memory.
3087
95c391b6
TT
30882012-06-19 Tom Tromey <tromey@redhat.com>
3089
3090 PR exp/9514:
3091 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3092 (push_type_address_space): Remove.
3093 * parse.c (insert_into_type_stack): New function.
3094 (insert_type): Likewise.
3095 (insert_type_address_space): Rename from push_type_address_space.
3096 Insert tp_space_identifier.
3097 * c-exp.y (ptr_operator): New production.
3098 (abs_decl): Use ptr_operator.
3099 (space_identifier): Call insert_type_address_space.
3100 (ptype): Don't use const_or_volatile_or_space_identifier.
3101 (const_or_volatile_noopt): Call insert_type.
3102 (conversion_type_id, conversion_declarator): New productions.
3103 (operator): Use conversion_type_id.
3104
6ac9ef80
DE
31052012-06-18 Doug Evans <dje@google.com>
3106
422d65e7
DE
3107 * symtab.h (minimal_symbol): New member created_by_gdb.
3108 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3109 created by gdb.
3110 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3111 (search_symbols): Call it instead of lookup_symbol.
3112 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3113
49f6c839
DE
3114 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3115 Adjust address for DW_OP_GNU_addr_index.
3116 * dwarf2expr.h (dwarf_expr_context): Update comment.
3117 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3118 all callers updated. Handle TLS vars described with
3119 DW_OP_GNU_const_index.
3120 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3121 and DW_OP_GNU_const_index.
3122 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3123
6ac9ef80
DE
3124 * block.c (find_block_in_blockvector): Make explicit the fact that we
3125 ignore GLOBAL_BLOCK.
3126
4cd18215
TT
31272012-06-18 Tom Tromey <tromey@redhat.com>
3128
3129 * c-exp.y (operator): Remove trailing space after "delete" and
3130 "delete[]".
3131
a9b8d892
JK
31322012-06-18 Mark Kettenis <kettenis@gnu.org>
3133 Jan Kratochvil <jan.kratochvil@redhat.com>
3134
3135 Switch i386 and derived targets to ON_STACK.
3136 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3137 (amd64_dicos_init_abi): Remove its installment.
3138 * dicos-tdep.c (dicos_init_abi): Remove the
3139 set_gdbarch_call_dummy_location call. Update the comment here.
3140 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3141 (i386_dicos_init_abi): Remove its installment.
3142 * i386-tdep.c (i386_push_dummy_code): New function.
3143 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3144 i386_push_dummy_code.
3145
e2e4d78b
JK
31462012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3147
3148 Remove stale dummy frames.
3149 * breakpoint.c: Include dummy-frame.h.
3150 (longjmp_breakpoint_ops): New variable.
3151 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3152 bp_longjmp_call_dummy.
3153 (bpstat_what, bptype_string, print_one_breakpoint_location)
3154 (init_bp_location): Support bp_longjmp_call_dummy.
3155 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3156 (set_longjmp_breakpoint_for_call_dummy)
3157 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3158 functions.
3159 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3160 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3161 FIXME comment and extend the other comment for bp_call_dummy.
3162 (set_longjmp_breakpoint_for_call_dummy)
3163 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3164 * dummy-frame.c: Include gdbthread.h.
3165 (pop_dummy_frame_bpt): New function.
3166 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3167 (dummy_frame_discard): New function.
3168 (cleanup_dummy_frames): Update the comment about longjmps.
3169 * dummy-frame.h (dummy_frame_discard): New declaration.
3170 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3171 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3172 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3173 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3174 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3175 keep_going if IS_LONGJMP and there is no other reason to stop.
3176
09d5912c
TT
31772012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3178
3179 * remote-sim.c (sim_command_completer): Initialize
3180 variable 'result'.
3181
1788b2d3
JK
31822012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3183
3184 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3185 * dwarf2loc.c (call_site_parameter_matches): Support
3186 CALL_SITE_PARAMETER_PARAM_OFFSET.
3187 (needs_dwarf_reg_entry_value): Push stub value.
3188 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3189 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3190 * gdbtypes.h (enum call_site_parameter_kind): New item
3191 CALL_SITE_PARAMETER_PARAM_OFFSET.
3192 (struct call_site.parameter.u): New field param_offset.
3193
24c5c679
JK
31942012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3195
3196 Code cleanup: Generalize call_site.parameter key.
3197 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3198 variable dwarf_reg. New variable kind_u. Update parameters to
3199 push_dwarf_reg_entry_value.
3200 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3201 * dwarf2expr.h (enum call_site_parameter_kind)
3202 (union call_site_parameter_u): Forward declarations.
3203 (struct dwarf_expr_context_funcs): Update parameters and their
3204 description for push_dwarf_reg_entry_value.
3205 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3206 * dwarf2loc.c (call_site_parameter_matches): New function.
3207 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3208 description. Use call_site_parameter_matches.
3209 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3210 Update parameters and their description.
3211 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3212 New variable kind_u. Adjust the caller for updated parameters.
3213 (needs_dwarf_reg_entry_value): Update parameters.
3214 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3215 instead of attr. Update for the changed fields of struct
3216 call_site_parameter.
3217 * gdbtypes.h: Include dwarf2expr.h.
3218 (enum call_site_parameter_kind): New.
3219 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3220 fb_offset into new union u.
3221
ac142d96
L
32222012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3223
3224 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3225 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3226 for x32.
3227
ba224c70
L
32282012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3229
3230 * amd64-linux-nat.c (compat_x32_clock_t): New.
3231 (compat_x32_siginfo_t): Likewise.
3232 (compat_x32_siginfo_from_siginfo): Likewise.
3233 (siginfo_from_compat_x32_siginfo): Likewise.
3234 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3235 and siginfo_from_compat_x32_siginfo for x32.
3236
7ecbc825
HZ
32372012-06-15 Hui Zhu <hui_zhu@mentor.com>
3238
3239 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3240
233dfcf0
L
32412012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3242
3243 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3244 instead of gdbarch_ptr_bit.
3245 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3246 (amd64_supply_native_gregset): Likewise.
3247 (amd64_collect_native_gregset): Likewise.
3248 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3249 (amd64_supply_xsave): Likewise.
3250 (amd64_collect_fxsave): Likewise.
3251 (amd64_collect_xsave): Likewise.
3252
6da38f42
L
32532012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3254
3255 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3256 (amd64_linux_read_description): Check DS segment register for
3257 x32 process.
3258
663b969e
TT
32592012-06-15 Tom Tromey <tromey@redhat.com>
3260
3261 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3262 init_cutu_and_read_dies.
3263
d6f05027
IS
32642012-06-15 Iain Sandoe <iain@codesourcery.com>
3265
3266 * MAINTAINERS (Write After Approval): Add myself to the list.
3267
6598ed07
TT
32682012-06-15 Tom Tromey <tromey@redhat.com>
3269
3270 * valops.c (value_find_oload_method_list): Now static.
3271 * value.h (value_find_oload_method_list): Don't declare.
3272
2b214ea6
TT
32732012-06-15 Tom Tromey <tromey@redhat.com>
3274
3275 * valops.c (find_overload_match): Use value_ind.
3276
a210c238
MR
32772012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3278
3279 * infrun.c (handle_inferior_event): Correct indentation.
3280
3771a44c
DE
32812012-06-14 Doug Evans <dje@google.com>
3282
3283 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3284 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3285 All uses updated.
3286 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3287 updated. Handle DEBUG_LOC_START_LENGTH.
3288 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3289 (loclist_describe_location): Ditto.
3290
1c5a993e
MR
32912012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3292
3293 PR backtrace/13866
3294 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3295 after hiding inline functions.
3296
0b155465
JB
32972012-06-13 Joel Brobecker <brobecker@adacore.com>
3298
3299 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3300 _initialize_inf_ttrace.
3301
45717bac
JB
33022012-06-13 Joel Brobecker <brobecker@adacore.com>
3303
3304 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3305 _initialize_hppa_hpux_nat.
3306
34370865
JB
33072012-06-13 Joel Brobecker <brobecker@adacore.com>
3308
3309 * remote-sim.c (sim_command_completer): Change type of return
3310 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3311
284c5a60
MK
33122012-06-13 Mark Kettenis <kettenis@gnu.org>
3313 Jan Kratochvil <jan.kratochvil@redhat.com>
3314
3315 PR tdep/14222
3316 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3317 stack on a 16-byte boundary.
3318
2535757a
TT
33192012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3320
3321 * jit.c (finalize_symtab): Set function's return type to 'void' by
3322 default.
3323
fff4548b
MK
33242012-06-13 Mark Kettenis <kettenis@gnu.org>
3325 H.J. Lu <hongjiu.lu@intel.com>
3326
5a83521a
MK
3327 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3328 Move bits common to both the classic LP64 and the new x32 ILP32
3329 ABI here.
3330 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3331 (amd64_x32_linux_init_abi): New function.
3332 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3333 subtype.
3334
fff4548b
MK
3335 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3336 * i386-tdep.c (i386_pseudo_register_name): Make public.
3337 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3338 * amd64-tdep.c (amd64_dword_names): Add "eip".
3339 (amd64_x32_pseudo_register_type): New function
3340 (amd64_x32_init_abi): New function.
3341
dd80ea3c
JK
33422012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3343
3344 PR build/14003
3345 * inferior.h (struct inferior_suspend_state): Comment out.
3346 (struct inferior): Comment out the field suspend.
3347 * infrun.c (struct infcall_suspend_state): Comment out the field
3348 inferior_suspend.
3349 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3350 out its assignment.
3351
50af5481
JK
33522012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3353
3354 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3355 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3356 function comment. Return ERROR for unresolved cases. Implement
3357 returning proper NAME.
3358 (yylex): Accept also NAME from classify_inner_name.
3359 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3360 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3361 LOC_TYPEDEF type.
3362 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3363
d55637df
TT
33642012-06-13 Tom Tromey <tromey@redhat.com>
3365
3366 * breakpoint.c (condition_completer): New function.
3367 (_initialize_breakpoint): Use it.
3368 * value.c (complete_internalvar): New function.
3369 * value.h (complete_internalvar): Declare.
3370
49c4e619
TT
33712012-06-13 Tom Tromey <tromey@redhat.com>
3372
3373 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3374 * breakpoint.c (catch_syscall_completer): Return a VEC.
3375 * cli/cli-cmds.c (complete_command): Update.
3376 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3377 (complete_on_enum): Likewise.
3378 * command.h: Include gdb_vecs.h.
3379 (completer_ftype): Change return type.
3380 (complete_on_cmdlist, complete_on_enum): Likewise.
3381 * completer.c (noop_completer, filename_completer)
3382 (location_completer): Return a VEC.
3383 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3384 to a VEC.
3385 (expression_completer, complete_line_internal, complete_line)
3386 (command_completer): Return a VEC.
3387 (gdb_completion_word_break_characters, line_completion_function):
3388 Update.
3389 * completer.h: Include gdb_vecs.h.
3390 (complete_line, noop_completer, filename_completer)
3391 (expression_completer, location_completer, command_completer):
3392 Update.
3393 * f-lang.c (f_word_break_characters): Return a VEC.
3394 * interps.c (interpreter_completer): Return a VEC.
3395 * language.h (struct language_defn)
3396 <la_make_symbol_completion_list>: Return a VEC.
3397 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3398 * symtab.c (free_completion_list): Take a VEC.
3399 (return_val_size, return_val_index): Remove.
3400 (return_val): Now a VEC.
3401 (completion_list_add_name): Update.
3402 (default_make_symbol_completion_list_break_on)
3403 (default_make_symbol_completion_list, make_symbol_completion_list)
3404 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3405 Return a VEC.
3406 (add_filename_to_list): Update.
3407 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3408 <list>: Now a VEC.
3409 (maybe_add_partial_symtab_filename): Update.
3410 (make_source_files_completion_list): Return a VEC.
3411 * symtab.h (default_make_symbol_completion_list_break_on)
3412 (default_make_symbol_completion_list, make_symbol_completion_list)
3413 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3414 (make_source_files_completion_list): Update.
3415
625e8578
TT
34162012-06-13 Tom Tromey <tromey@redhat.com>
3417
3418 * breakpoint.c (add_catch_command): Use completer_ftype.
3419 * breakpoint.h: Include command.h.
3420 (add_catch_command): Use completer_ftype.
3421 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3422 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3423 Use completer_ftype.
3424 * command.h (completer_ftype): New typedef.
3425 (set_cmd_completer): Use it.
3426 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3427 completer_ftype.
3428
5eb3b062
PA
34292012-06-13 Pedro Alves <palves@redhat.com>
3430
3431 Partial revert of previous change.
3432
3433 * serial.c (scb_base): New global.
3434 (serial_for_fd): New.
3435 (serial_open, serial_fdopen_ops): Link new serial in open serials
3436 chain.
3437 (do_serial_close): Unlink serial from the open serials chain.
3438
8b3ee56d
PA
34392012-06-12 Pedro Alves <palves@redhat.com>
3440
3441 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3442 threads here.
3443 (prepare_for_detach): No longer context switch here in non-stop
3444 mode.
3445 (fetch_inferior_event): Ditto.
3446 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3447 to the event thread before removing breakpoints. Switch to the
3448 event thread before inserting breakpoints and resuming.
3449 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3450 event thread before resuming.
3451 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3452 Switch to the event thread before removing breakpoints.
3453
5d60742e
EZ
34542012-06-12 Eli Zaretskii <eliz@gnu.org>
3455
3456 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3457 special characters correctly for the Windows shells. See
3458 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3459 report.
3460 [!__MINGW32__]: Remove extra double quote character from special
3461 characters.
3462
a6feecf7
SS
34632012-06-11 Stan Shebs <stan@codesourcery.com>
3464
3465 * ui-out.h: Remove #if 0 declarations.
3466 * ui-out.c: Remove #if 0 functions.
3467
ddefb60f
PA
34682012-06-11 Pedro Alves <palves@redhat.com>
3469
3470 * ser-base.c (run_async_handler_and_reschedule): New.
3471 (fd_event, push_event): Use it.
3472 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3473 reference count to 1.
3474 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3475 instead of xfree.
3476 (serial_is_open, serial_ref, serial_unref): New.
3477 * serial.h (serial_open): Adjust comment.
3478 (serial_is_open): Declare.
3479 (serial_close): Adjust comment.
3480 (serial_ref, serial_unref) Declare.
3481 (struct serial): New field 'refcnt'.
3482
d5ad6aa5
PA
34832012-06-11 Pedro Alves <palves@redhat.com>
3484
3485 Remove #if 0'd "connect" command, and unnecessary associated
3486 refcounting and serial reuse bits.
3487
3488 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3489 * serial.c (last_serial_opened): Delete.
3490 (scb_base): Delete.
3491 (serial_open): Adjust.
3492 (serial_for_fd): Delete.
3493 (serial_fdopen_ops, do_serial_close): Adjust.
3494 (serial_fdopen_ops): Adjust.
3495
318aa544
PA
34962012-06-11 Pedro Alves <palves@redhat.com>
3497
3498 * serial.c (do_serial_close): Remove early return when SCB is
3499 null.
3500
07261596
TT
35012012-06-11 Tom Tromey <tromey@redhat.com>
3502
3503 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3504
cc80f267
JK
35052012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3506
3507 Fix regression by the "ambiguous linespec" series.
3508 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3509 get_last_displayed_symtab and get_last_displayed_line and depending
3510 on CURSAL.
3511
356d9f9d
TT
35122012-06-11 Tom Tromey <tromey@redhat.com>
3513
3514 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3515 (dw2_find_symbol_file): Use it.
3516
232b8704
ME
35172012-06-11 Michael Eager <eager@eagercon.com>
3518
3519 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3520 * mips-linux-tdep.h (mips_signals): New
3521
e81a37f7
TT
35222012-06-11 Tom Tromey <tromey@redhat.com>
3523
3524 * infrun.c (handle_inferior_event)
3525 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3526 breakpoint.
3527 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3528 exception logic in all cases. Update comments.
3529 (insert_longjmp_resume_breakpoint): Set the exception resume
3530 breakpoint.
3531
2e81047f
MR
35322012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3533
3534 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3535
4e32eda7
SCR
35362012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3537
3538 * valarith.c (binop_types_user_defined_p): Fix a typo.
3539
18648a37 35402012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3541 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3542
3543 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3544 * arch-utils.h: Declare.
3545 * gdbarch.sh: Add return_in_first_hidden_param_p.
3546 * gdbarch.c, gdbarch.h: Regenerated.
3547 * infcall.c (call_function_by_hand): Call
3548 gdbarch_return_in_first_hidden_param_p instead of
3549 language_pass_by_reference.
3550
3551 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3552 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3553 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3554 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3555 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3556 `cplus_return_struct_by_reference'.
3557 (tic6x_return_value): Handle language cplusplus.
3558 (tic6x_return_in_first_hidden_param_p): New.
3559 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3560
034e5797
DE
35612012-06-07 Doug Evans <dje@google.com>
3562
3563 * dwarf2read.c (dwarf2_cu): Add comment.
3564
6a00aa1e
MR
35652012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3566
3567 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3568 variable.
3569 (mips_eabi_push_dummy_call): Likewise.
3570 (mips_n32n64_push_dummy_call): Likewise.
3571 (mips_o32_push_dummy_call): Likewise.
3572 (mips_o64_push_dummy_call): Likewise.
3573
eaa05d59
MR
35742012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3575
3576 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3577
de13fcf2
MR
35782012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3579
3580 * mips-tdep.c (mips_pseudo_register_type): Use
3581 mips_float_register_p.
3582
c3a01a22
PA
35832012-06-06 Pedro Alves <palves@redhat.com>
3584
3585 * infrun.c (handle_inferior_event): Remove calls to
3586 reinit_frame_cache that follow a context_switch call.
3587
d25f45d9
PA
35882012-06-06 Pedro Alves <palves@redhat.com>
3589
3590 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3591 context_switch and remove stale comment.
3592
359f5fe6
PA
35932012-06-06 Pedro Alves <palves@redhat.com>
3594
3595 * infrun.c (struct execution_control_state): Remove
3596 `new_thread_event' field.
3597 (handle_inferior_event): Simplify new threads handling; don't
3598 resume the inferior if we find a new thread.
3599
2d4c29c5
TS
36002012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3601
3602 * NEWS: Document the deprecation of SH's 'regs' command.
3603 * inferior.h (all_registers_info): Add function declaration.
3604 * sh-tdep.c (sh_show_regs): Remove variable.
3605 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3606 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3607 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3608 (sh_show_regs_command): Remove functions.
3609 (sh_gdbarch_init): Don't set sh_show_regs.
3610 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3611 'info all-registers'.
3612 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3613 (sh64_show_regs): Remove functions.
3614 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3615
f5f1cdb6
JK
36162012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3617
3618 * configure.ac: Move development=true below AC_INIT.
3619 * configure: Regenerate.
3620
bf6309af
SS
36212012-06-05 Stan Shebs <stan@codesourcery.com>
3622
3623 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3624 gdb_stdout.
3625
45aa4659
JK
36262012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3627
3628 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3629 argument as ssize_t.
3630 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3631 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3632 * target.c (target_read_stack, target_write_memory)
3633 (target_write_raw_memory): Likewise.
3634 * target.h (target_read_stack, target_write_memory)
3635 (target_write_raw_memory): Likewise.
3636
1b162304
JK
36372012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3638
3639 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3640 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3641 * target.c (target_read_memory): Change LEN to ssize_t.
3642 * target.h (target_read_memory): Change LEN to ssize_t.
3643
8556afb4
PA
36442012-06-05 Pedro Alves <palves@redhat.com>
3645
3646 PR backtrace/13866
3647
3648 * breakpoint.c (until_break_command): Only fetch the selected
3649 frame after decode_line_1.
3650
fb139f32
PA
36512012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3652
3653 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3654 event breakpoint at _start, __start or main if a program
3655 interpreter is not found.
3656
a8e1bb34
JB
36572012-06-05 Joel Brobecker <brobecker@adacore.com>
3658
3659 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3660 Add declaration.
3661 * windows-tdep.c: #include "objfiles.h".
3662 (windows_iterate_over_objfiles_in_search_order): New function.
3663 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3664 iterate_over_objfiles_in_search_order gdbarch method to
3665 windows_iterate_over_objfiles_in_search_order.
3666 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3667
19630284
JB
36682012-06-05 Joel Brobecker <brobecker@adacore.com>
3669
3670 * gdbarch.sh: Add generation of
3671 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3672 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3673 (iterate_over_objfiles_in_search_order): New gdbarch method.
3674 * gdbarch.h, gdbarch.c: Regenerate.
3675 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3676 Add declaration.
3677 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3678 New function.
3679 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3680 out of lookup_symbol_aux_symtabs.
3681 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3682 call to lookup_symbol_aux_objfile.
3683 (struct global_sym_lookup_data): New type.
3684 (lookup_symbol_global_iterator_cb): New function.
3685 (lookup_symbol_global): Search for symbol using
3686 gdbarch_iterate_over_objfiles_in_search_order and
3687 lookup_symbol_global_iterator_cb.
3688 * findvar.c (struct minsym_lookup_data): New type.
3689 (minsym_lookup_iterator_cb): New function.
3690 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3691 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3692 and minsym_lookup_iterator_cb.
3693
67ff19f7
JB
36942012-06-05 Joel Brobecker <brobecker@adacore.com>
3695
3696 Revert the following patch:
3697 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3698 try locating the symbol in the symbol's own objfile first, before
3699 extending the search to all objfiles.
3700 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3701 out of lookup_symbol_aux_symtabs.
3702 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3703 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3704 Do not search EXCLUDE_OBJFILE.
3705 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3706 (lookup_symbol_global): Search for matches in the block's objfile
3707 first, before searching all other objfiles.
3708
ccab2054
JB
37092012-06-05 Joel Brobecker <brobecker@adacore.com>
3710
3711 * breakpoint.c (find_condition_and_thread): Stop parsing
3712 as soon as the first invalid keyword is found.
3713
e23d4a9c
JB
37142012-06-05 Joel Brobecker <brobecker@adacore.com>
3715
3716 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3717
70160166
JB
37182012-06-05 Joel Brobecker <brobecker@adacore.com>
3719
3720 * config/djgpp/djcheck.sh: Add copyright header.
3721
399501a5
JB
37222012-06-05 Joel Brobecker <brobecker@adacore.com>
3723
3724 * copyright.py (update_files, main): Fix path to update-copyright
3725 script.
3726
3770a159
JB
37272012-06-05 Joel Brobecker <brobecker@adacore.com>
3728
3729 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3730 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3731 for which a reminder to update by hand is printed.
3732
4aad0dfc
DE
37332012-06-04 Doug Evans <dje@google.com>
3734
3735 * buildsym.c (make_blockvector): Add comment.
3736
1f8cf220
PA
37372012-06-04 Pedro Alves <palves@redhat.com>
3738
3739 * arch-utils.c (default_gdb_signal_from_target): Delete.
3740 * arch-utils.h (default_gdb_signal_from_target): Delete.
3741 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3742 gdbarch_gdb_signal_from_target_p.
3743 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3744 predicate).
3745 * gdbarch.h: Regenerate.
3746 * gdbarch.c: Regenerate.
3747
86b49880
PA
37482012-06-04 Pedro Alves <palves@redhat.com>
3749
3750 * gdbarch.sh (gdb_signal_from_target): Mention that the
3751 implementation of the method must be host independent.
3752 * gdbarch.h: Regenerate.
3753
fe78531d
JK
37542012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3755
3756 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3757 parameters.
3758 (target_read_memory_bfd): New function.
3759 (symbol_file_add_from_memory): Use it.
3760
d790cf0a
DE
37612012-06-03 Doug Evans <dje@google.com>
3762
78e5175a
DE
3763 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3764 of primary symtab.
3765 (basic_lookup_transparent_type): Ditto.
3766
d790cf0a
DE
3767 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3768 (ALL_PRIMARY_SYMTABS): Use it.
3769 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3770 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3771 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3772 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3773 (basic_lookup_transparent_type): Ditto.
3774
c6e5ee5e
SDJ
37752012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3776
3777 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3778 it to optimize resolution of demangled name.
3779
a68ffae9
JK
37802012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3781
3782 * configure.ac (development): Define new variable.
3783 Call AC_CHECK_LIB for mcheck if $development.
3784 (ERROR_ON_WARNING): Enable it by default only if $development.
3785 * config.in: Regenerate.
3786 * configure: Regenerate.
3787
5299c1c4
JK
37882012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3789
3790 * target.c (target_read_memory): Make LEN argument as size_t.
3791 * target.h (target_read_memory): Likewise.
3792
37932012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
3794
3795 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3796
0c56f59b
EBM
37972012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3798
3799 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3800 BookE interface for PowerPC server processors if not available
3801 in the Linux Kernel.
3802
71bdabee
KS
38032012-05-31 Keith Seitz <keiths@redhat.com>
3804
3805 * linespec.c (decode_objc): Add cleanup to free
3806 INFO.FILE_SYMTABS.
3807 (find_linespec_symbols): Add cleanup to free CLASSES.
3808 * symfile.c (find_separate_debug_file_by_debuglink): Add
3809 cleanup to free DEBUGLINK.
3810 * ui-out.c (clear_header_list): No need to check if
3811 HEADER_NEXT.COLHDR is NULL.
3812 Free HEADER_NEXT.COL_NAME.
3813
acbd605d
MGD
38142012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3815
3816 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3817 warning.
3818
65662cde
PA
38192012-05-30 Jeff Kenton <jkenton@tilera.com>
3820
3821 * configure.host (gdb_host_cpu): Handle tilegx*.
3822 (gdb_host): Handle tilegx-*-linux*.
3823 * tilegx-linux-nat.c: New file.
3824 * config/tilegx/linux.mh: New file.
3825
ade64f0e
PA
38262012-05-30 Jeff Kenton <jkenton@tilera.com>
3827
3828 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3829 tilegx-linux-tdep.o.
3830 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3831 tilegx-linux-tdep.c.
3832 * configure.tgt: Handle tilegx-*-linux*.
3833 * tilegx-tdep.h: New file.
3834 * tilegx-tdep.c: New file.
3835 * tilegx-linux-tdep.c: New file.
3836 * regformats/reg-tilegx.dat: New file.
3837
bb08bdbd
EBM
38382012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3839
3840 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3841 accounting of hw watchpoints on ppc.
3842
ebd86fb5
TJB
38432012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3844
3845 * source.c (openp): Expand tilde in path entries.
3846
0a0edcd5
DE
38472012-05-29 Doug Evans <dje@google.com>
3848
98cc87bd
DE
3849 * buildsym.c (block_compar): Fix comment.
3850 (end_symtab): Fix and clarify some comments.
3851
0a0edcd5
DE
3852 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3853 cleanup_undefined_types.
3854 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3855 All callers updated.
3856
6f0c7050
TT
38572012-05-29 Tom Tromey <tromey@redhat.com>
3858
3859 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3860 fails.
3861 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3862 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3863 fails.
3864 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3865 fails.
3866
ec95993c
TG
38672012-05-29 Tristan Gingold <gingold@adacore.com>
3868
3869 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3870 (struct darwin_info): ... New struct.
3871 (solib_darwin_pspace_data): New variable.
3872 (darwin_pspace_data_cleanup): New function.
3873 (get_darwin_info): Likewise.
3874 (darwin_dyld_version_ok, darwin_load_image_infos)
3875 (darwin_solib_get_all_image_info_addr_at_init)
3876 (darwin_solib_read_all_image_info_addr): Add info argument.
3877 Adjust code.
3878 (darwin_current_sos): Use per pspace structure.
3879 (darwin_solib_create_inferior_hook): Likewise.
3880 (darwin_clear_solib): Likewise.
3881 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3882
ae25568b
PA
38832012-05-28 Pedro Alves <palves@redhat.com>
3884
3885 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3886 block that uses them. Clear ecss before handling each event.
3887
0c5bf5a9
JK
38882012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3889
3890 * solib-svr4.c (svr4_current_sos): New comment on
3891 svr4_current_sos_via_xfer_libraries fall back.
3892
bfb05775
JK
38932012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3894
3895 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3896 it as a fallback for TYPE_IS_OPAQUE.
3897 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3898 symbols for lookup_symbol.
3899
685b1105
JK
39002012-05-24 John Steele Scott <toojays@toojays.net>
3901
3902 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3903 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3904 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3905 (check_producer): ... this new function, which also checks for ICC
3906 and caches the result.
3907 (producer_is_icc): New function.
3908 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3909 producer was ICC.
3910
22203bbf
PA
39112012-05-24 Pedro Alves <palves@redhat.com>
3912
3913 PR gdb/7205
3914
3915 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3916 (default_gdb_signal_to_target): ... this. Add comment.
3917 (default_gdb_signal_from_host): Rename to ...
3918 (default_gdb_signal_from_target): ... this. Add comment.
3919 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3920 (default_gdb_signal_to_target): ... this.
3921 (default_gdb_signal_from_host): Rename to ...
3922 (default_gdb_signal_from_target): ... this.
3923 * corelow.c (core_open): Adjust to naming change. Replace comment.
3924 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3925 (gdb_signal_from_target): ... this. Adjust to
3926 default_gdb_signal_from_host naming change. Extend comment.
3927 (gdb_signal_to_host): Rename to ...
3928 (gdb_signal_to_target): ... this. Adjust to
3929 default_gdb_signal_to_host naming change.
3930 * gdbarch.h, gdbarch.c: Renegerate.
3931
a493e3e2
PA
39322012-05-24 Pedro Alves <palves@redhat.com>
3933
3934 PR gdb/7205
3935
f782ad9b 3936 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 3937
2ea28649
PA
39382012-05-24 Pedro Alves <palves@redhat.com>
3939
3940 PR gdb/7205
3941
3942 Replace target_signal with gdb_signal throughout.
3943
b09846a9
PA
39442012-05-24 Pedro Alves <palves@redhat.com>
3945
3946 PR tui/14159
3947
3948 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3949 string, instead of reusing the va_list argument.
3950
e77c107e
TT
39512012-05-24 Tom Tromey <tromey@redhat.com>
3952
3953 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3954 Remove.
3955
9fccedf7
DE
39562012-05-23 Doug Evans <dje@google.com>
3957
d50bd42b
DE
3958 * symtab.c (search_symbols): Formatting fixes.
3959 (print_symbol_info): Formatting fixes.
3960
9fccedf7
DE
3961 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3962 int64_t change to leb128 API.
3963 (read_encoded_value, decode_frame_entry_1): Ditto.
3964 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3965 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3966 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3967 (execute_stack_op): Ditto.
3968 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3969 (safe_read_uleb128, safe_read_sleb128): Ditto.
3970 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3971 (dwarf2_compile_expr_to_ax): Ditto.
3972 (locexpr_describe_location_piece): Ditto.
3973 (disassemble_dwarf_expression): Ditto.
3974 (locexpr_describe_location_1): Ditto.
3975
f3e0e960
SS
39762012-05-23 Stan Shebs <stan@codesourcery.com>
3977 Kwok Cheung Yeung <kcy@codesourcery.com>
3978
3979 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3980 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3981 (mi-cmd-info.o): New rule.
3982 * osdata.h (info_osdata_command): New declaration.
3983 * osdata.c (info_osdata_command): Change to non-static.
3984 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3985 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3986 * mi/mi-cmd-info.c: New file.
3987
c51fe631
DE
39882012-05-23 Doug Evans <dje@google.com>
3989
71cddcc1
DE
3990 * symtab.c (search_symbols): Pass NULL for file_matcher to
3991 expand_symtabs_matching if there are no files to match.
3992
c51fe631
DE
3993 * gdbtypes.c (lookup_typename): Simplify.
3994
a79378d4
PA
39952012-05-23 Pedro Alves <palves@redhat.com>
3996
3997 * arch-utils.h (default_target_signal_to_host): Delete.
3998 * arch-utils.c (default_target_signal_to_host): Delete.
3999 * gdbarch.sh (target_signal_to_host): Remove.
4000 * gdbarch.h, gdbarch.c: Regenerate.
4001
f664829e
DE
40022012-05-22 Doug Evans <dje@google.com>
4003
4004 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4005 "const gdb_byte *".
4006 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4007 (execute_cfa_program): Update to match API of leb128 functions.
4008 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4009 "const gdb_byte *".
4010 (read_unsigned_leb128, read_signed_leb128): Delete.
4011 (read_initial_length): Change type of buf argument to
4012 "const gdb_byte *".
4013 (read_encoded_value): Update to match API of leb128 functions.
4014 (decode_frame_entry): Change result to "const gdb_byte *", and
4015 similarly for "start" parameter.
4016 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4017 (dwarf2_build_frame_info): Change local frame_ptr to
4018 "const gdb_byte *".
4019 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4020 read_uleb128, read_sleb128. All callers updated.
4021 (safe_skip_leb128): New function.
4022 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4023 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4024 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4025 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4026 read_uleb128, read_sleb128.
4027 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4028 (execute_stack_op): Update to match API of leb128 functions.
4029 * dwarf2expr.h: #include "leb128.h".
4030 (read_uleb128, read_sleb128): Delete.
4031 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4032 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4033 * dwarf2loc.c (debug_loc_kind): New enum.
4034 (decode_debug_loc_addresses): New function.
4035 (decode_debug_loc_dwo_addresses): New function.
4036 (dwarf2_find_location_expression): Rewrite.
4037 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4038 (locexpr_describe_location_piece): Ditto.
4039 (disassemble_dwarf_expression): Ditto.
4040 (locexpr_describe_location_1): Ditto.
4041 (loclist_describe_location): Rewrite.
4042 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4043 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4044 (dwarf2_section_buffer_overflow_complaint): Renamed from
4045 dwarf2_macros_too_long_complaint. All callers updated.
4046 (skip_leb128): Delete.
4047 (init_cu_die_reader): Initialize reader->buffer_end.
4048 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4049 (skip_form_bytes): New arg buffer_end. All callers updated.
4050 Replace call to skip_leb128 with gdb_skip_leb128.
4051 (skip_unknown_opcode): New arg mac_end. All callers updated.
4052 (fill_in_loclist_baton): Initialize baton->from_dwo.
4053
837a1b32
MR
40542012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4055
4056 * mips-linux-nat.c (mips_linux_read_description): Use a more
4057 verbose error message.
4058
d0e64392
MR
40592012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4060
4061 * NEWS: Add MIPS/Linux DSP support.
4062 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4063 (SIGCONTEXT_DSPCTL): New macro.
4064 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4065 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4066 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4067 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4068 (N64_SIGCONTEXT_HI3): Likewise.
4069 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4070 (N64_SIGCONTEXT_LO3): Likewise.
4071 (N64_SIGCONTEXT_DSPCTL): Likewise.
4072 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4073 (mips_linux_o32_sigframe_init): Handle DSP registers.
4074 (mips_linux_n32n64_sigframe_init): Likewise.
4075
8bea7ed1
PM
40762012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4077
4078 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4079 call to abort.
4080
dab06dbe
PA
40812012-05-22 Pedro Alves <palves@redhat.com>
4082
4083 * target.h (store_waitstatus): Move declaration ...
4084 * inf-child.h (store_waitstatus): ... here.
4085 * target.c: Move inclusion of gdb_wait.h, and ...
4086 (store_waitstatus): ... this ...
4087 * inf-child.c: ... here.
4088 * linux-nat.c: Include inf-child.h.
4089 * rs6000-nat.c: Include inf-child.h.
4090 * spu-linux-nat.c: Include inf-child.h.
4091
43011e52
PM
40922012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4093
4094 * tracepoint.c (start_tracing): Add missing i18n markup.
4095 (stop_tracing, set_trace_user): Ditto.
4096 (set_trace_notes, set_trace_stop_notes): Ditto.
4097
b1af9e97
TT
40982012-05-21 Tom Tromey <tromey@redhat.com>
4099
4100 PR c++/7173:
4101 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4102 types.
4103 * value.h (value_cast_pointers): Update.
4104 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4105 (value_cast): Update.
4106 (update_search_result): New function.
4107 (do_search_struct_field): New, from search_struct_field. Check
4108 for ambiguous results.
4109 (search_struct_field): Rewrite.
4110 * infcall.c (value_arg_coerce): Update.
4111 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4112 value_cast_pointers.
4113 * ada-lang.c (ada_convert_actual): Update.
4114
e9e5e6b3
TT
41152012-05-21 Tom Tromey <tromey@redhat.com>
4116
4117 * macroexp.c (macro_stringify): Terminate the string.
4118
1564a261
JK
41192012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4120
4121 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4122 Describe it.
4123 * auto-load.c (auto_load_expand_dir_vars): New function.
4124 (auto_load_safe_path_vec_update): Use it, remove the
4125 substitute_path_component call thanks to it.
4126 (auto_load_objfile_script): Remove the debug_file_directory processing.
4127 Use auto_load_expand_dir_vars, remove the substitute_path_component
4128 call thanks to it.
4129 * configure: Regenerate.
4130 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4131 path. Escape $ also for $debugdir.
4132 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4133 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4134
a3ec0bb1
DE
41352012-05-20 Doug Evans <dje@google.com>
4136
4137 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4138 before use. Check for symtab->includes == NULL before scanning it.
4139
d467df4e
MR
41402012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4141
4142 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4143
4cc0665f
MR
41442012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4145
4146 * NEWS: Add microMIPS support and "set mips compression",
4147 "show mips compression" commands.
4148 * mips-tdep.h (mips_isa): New enum.
4149 (gdbarch_tdep): Add mips_isa.
4150 (mips_pc_is_mips16): Update prototype.
4151 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4152 * mips-tdep.c (mips_compression_mips16): New variable.
4153 (mips_compression_micromips): Likewise.
4154 (mips_compression_strings): Likewise.
4155 (mips_compression_string): Likewise.
4156 (is_mips16_isa, is_micromips_isa): New functions.
4157 (is_mips16_addr): Rename to...
4158 (is_compact_addr): ... this.
4159 (unmake_mips16_addr): Likewise to...
4160 (unmake_compact_addr): ... this.
4161 (make_mips16_addr): Likewise to...
4162 (make_compact_addr): ... this.
4163 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4164 functions.
4165 (mips_elf_make_msymbol_special): Handle microMIPS code.
4166 (msymbol_is_special): Rename to...
4167 (msymbol_is_mips16): ... this.
4168 (mips_make_symbol_special, mips_pc_is_mips16): Update
4169 accordingly.
4170 (msymbol_is_mips, msymbol_is_micromips): New functions.
4171 (mips16_to_32_reg): Rename to...
4172 (mips_reg3_to_reg): ... this.
4173 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4174 (mips_pc_isa): Likewise.
4175 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4176 code.
4177 (mips_fetch_instruction): Pass return status instead of printing
4178 an error message if requested. Handle microMIPS code. Bail out
4179 on an invalid ISA.
4180 (micromips_op): New macro.
4181 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4182 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4183 (b6s4_op, b7s3_reg): Likewise.
4184 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4185 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4186 (mips_insn_size): New function.
4187 (mips32_next_pc): Update mips_fetch_instruction call.
4188 (micromips_relative_offset7): New function.
4189 (micromips_relative_offset10): Likewise.
4190 (micromips_relative_offset16): Likewise.
4191 (micromips_pc_insn_size): Likewise.
4192 (micromips_bc1_pc): Likewise.
4193 (micromips_next_pc): Likewise.
4194 (unpack_mips16): Update mips_fetch_instruction call.
4195 (extended_mips16_next_pc): Update according to change to
4196 mips16_to_32_reg.
4197 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4198 code.
4199 (mips16_scan_prologue): Update mips_fetch_instruction call.
4200 Update according to change to mips16_to_32_reg.
4201 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4202 (mips_insn16_frame_base_sniffer): Likewise.
4203 (micromips_decode_imm9): New function.
4204 (micromips_scan_prologue): Likewise.
4205 (mips_micro_frame_cache): Likewise.
4206 (mips_micro_frame_this_id): Likewise.
4207 (mips_micro_frame_prev_register): Likewise.
4208 (mips_micro_frame_sniffer): Likewise.
4209 (mips_micro_frame_unwind): New variable.
4210 (mips_micro_frame_base_address): New function.
4211 (mips_micro_frame_base): New variable.
4212 (mips_micro_frame_base_sniffer): New function.
4213 (mips32_scan_prologue): Update mips_fetch_instruction call.
4214 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4215 rather than for MIPS16.
4216 (mips_insn32_frame_base_sniffer): Likewise.
4217 (mips_addr_bits_remove): Handle microMIPS code.
4218 (deal_with_atomic_sequence): Rename to...
4219 (mips_deal_with_atomic_sequence): ... this. Update the type
4220 of the variable used to hold an instruction. Remove the ISA bit
4221 check. Update mips_fetch_instruction call.
4222 (micromips_deal_with_atomic_sequence): New function.
4223 (deal_with_atomic_sequence): Likewise.
4224 (mips_about_to_return): Handle microMIPS code. Update
4225 mips_fetch_instruction call.
4226 (heuristic_proc_start): Check for the standard MIPS ISA rather
4227 than for MIPS16. Update mips_pc_is_mips16 and
4228 mips_fetch_instruction calls. Handle microMIPS code.
4229 (mips_push_dummy_code): Handle microMIPS code.
4230 (mips_eabi_push_dummy_call): Likewise.
4231 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4232 (mips_o64_push_dummy_call): Handle microMIPS code.
4233 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4234 (is_delayed): Remove function.
4235 (mips_single_step_through_delay): Replace the call to is_delayed
4236 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4237 Handle microMIPS code.
4238 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4239 microMIPS code.
4240 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4241 call.
4242 (micromips_in_function_epilogue_p): New function.
4243 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4244 call.
4245 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4246 Handle microMIPS.
4247 (gdb_print_insn_mips): Likewise.
4248 (mips_breakpoint_from_pc): Likewise.
4249 (mips_remote_breakpoint_from_pc): New function.
4250 (mips32_instruction_has_delay_slot): Simplify making use of the
4251 updated mips_fetch_instruction interface.
4252 (micromips_instruction_has_delay_slot): New function.
4253 (mips16_instruction_has_delay_slot): Simplify making use of the
4254 updated mips_fetch_instruction interface.
4255 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4256 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4257 calls. Handle microMIPS code.
4258 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4259 (mips_skip_trampoline_code): Handle microMIPS code.
4260 (global_mips_compression): New function.
4261 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4262 file flags. Register the microMIPS remote breakpoint handler
4263 and heuristic frame unwinder.
4264 (show_mips_compression): New function.
4265 (_initialize_mips_tdep): Add the "set mips compression" and
4266 "show mips compression" commands.
4267
22e048c9
SDJ
42682012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4269
4270 * ada-lang.c:
4271 * ada-tasks.c:
4272 * ada-varobj.c:
4273 * amd64-darwin-tdep.c:
4274 * arm-symbian-tdep.c:
4275 * arm-tdep.c:
4276 * avr-tdep.c:
4277 * ax-gdb.c:
4278 * bfin-linux-tdep.c:
4279 * breakpoint.c:
4280 * c-valprint.c:
4281 * cli/cli-cmds.c:
4282 * coffread.c:
4283 * cp-support.c:
4284 * cris-tdep.c:
4285 * dwarf2-frame-tailcall.c:
4286 * dwarf2-frame.c:
4287 * dwarf2expr.c:
4288 * dwarf2loc.c:
4289 * dwarf2read.c:
4290 * elfread.c:
4291 * eval.c:
4292 * expprint.c:
4293 * f-valprint.c:
4294 * frv-tdep.c:
4295 * h8300-tdep.c:
4296 * hppa-hpux-tdep.c:
4297 * hppa-tdep.c:
4298 * hppanbsd-tdep.c:
4299 * i386-nto-tdep.c:
4300 * i386-tdep.c:
4301 * i387-tdep.c:
4302 * ia64-tdep.c:
4303 * jit.c:
4304 * linespec.c:
4305 * linux-tdep.c:
4306 * lm32-tdep.c:
4307 * m2-valprint.c:
4308 * m32c-tdep.c:
4309 * m32r-rom.c:
4310 * m32r-tdep.c:
4311 * m68k-tdep.c:
4312 * m68klinux-tdep.c:
4313 * mi/mi-main.c:
4314 * microblaze-tdep.c:
4315 * mips-linux-tdep.c:
4316 * mips-tdep.c:
4317 * mn10300-tdep.c:
4318 * p-valprint.c:
4319 * parse.c:
4320 * ppc-linux-tdep.c:
4321 * ppc-sysv-tdep.c:
4322 * printcmd.c:
4323 * python/py-finishbreakpoint.c:
4324 * python/py-inferior.c:
4325 * python/py-infthread.c:
4326 * python/py-type.c:
4327 * python/python.c:
4328 * remote-fileio.c:
4329 * remote-m32r-sdi.c:
4330 * remote-mips.c:
4331 * reverse.c:
4332 * rl78-tdep.c:
4333 * rs6000-aix-tdep.c:
4334 * rs6000-tdep.c:
4335 * s390-tdep.c:
4336 * score-tdep.c:
4337 * sh64-tdep.c:
4338 * skip.c:
4339 * solib-darwin.c:
4340 * solib-dsbt.c:
4341 * solib-frv.c:
4342 * sparc-tdep.c:
4343 * spu-multiarch.c:
4344 * spu-tdep.c:
4345 * stack.c:
4346 * symfile.c:
4347 * symtab.c:
4348 * tic6x-tdep.c:
4349 * tracepoint.c:
4350 * v850-tdep.c:
4351 * valarith.c:
4352 * valprint.c:
4353 * value.c:
4354 * xcoffread.c:
4355 * xtensa-tdep.c:
4356 * ada-lang.c:
4357 * ada-tasks.c:
4358 * ada-varobj.c:
4359 * amd64-darwin-tdep.c:
4360 * arm-symbian-tdep.c:
4361 * arm-tdep.c: Delete unused variables.
4362
aff139ff
JK
43632012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4364
4365 Rename $ddir to $datadir.
4366 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4367 * auto-load.c (auto_load_safe_path_vec_update)
4368 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4369 * configure: Regenerate.
4370 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4371 Likewise. Remove the 'use $ddir' help string.
4372
f7bfa992
JK
43732012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4374
4375 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4376 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4377
9cb709b6
TT
43782012-05-18 Tom Tromey <tromey@redhat.com>
4379
4380 PR exp/13907:
4381 * valprint.h (struct value_print_options) <symbol_print>: New
4382 field.
4383 * valprint.c (user_print_options): Add default for symbol_print.
4384 (show_symbol_print): New function.
4385 (generic_val_print): Respect symbol_print.
4386 (_initialize_valprint): Add "print symbol" setting.
4387 * f-valprint.c (f_val_print): Respect symbol_print.
4388 * c-valprint.c (c_val_print): Respect symbol_print.
4389 * NEWS: Update.
4390 * printcmd.c (print_address_symbolic): Return int. Ignore some
4391 zero-size symbols.
4392 (print_address_demangle): Return int.
4393 * defs.h: (print_address_symbolic): Return int.
4394 * value.h (print_address_demangle): Return int.
4395
b012acdd
TT
43962012-05-18 Tom Tromey <tromey@redhat.com>
4397
4398 * valprint.c (val_print_string): Don't print leading space.
4399 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4400 print space before string or vtbl.
4401 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4402 before string.
4403 * jv-valprint.c (java_value_print): Print space before string.
4404 * go-valprint.c (print_go_string): Print space before string.
4405 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4406 space before string.
4407 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4408 space before string or vtbl.
4409 * auxv.c (fprint_target_auxv): Print space after address.
4410
1d51a733
TT
44112012-05-18 Tom Tromey <tromey@redhat.com>
4412
4413 * printcmd.c (print_address_demangle): Remove special case for 0.
4414
edf0c1b7
TT
44152012-05-18 Tom Tromey <tromey@redhat.com>
4416
4417 * printcmd.c (print_address_demangle): Add 'opts' argument.
4418 * p-valprint.c (pascal_val_print): Update.
4419 * jv-valprint.c (java_val_print): Update.
4420 * value.h: Update.
4421 * valprint.c (generic_val_print): Update.
4422 (print_function_pointer_address): Add 'options' argument. Remove
4423 'addressprint' argument. Update.
4424 * m2-valprint.c (print_unpacked_pointer): Update.
4425 * gnu-v3-abi.c (print_one_vtable): Update.
4426 (gnuv3_print_method_ptr): Update.
4427 * f-valprint.c (f_val_print): Update.
4428 * cp-valprint.c (cp_print_value_fields): Update.
4429 * valprint.h (print_function_pointer_address): Update.
4430 * c-valprint.c (c_val_print): Update.
4431
9703b513
TT
44322012-05-18 Tom Tromey <tromey@redhat.com>
4433
4434 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4435 directly corresponding to the found psymtab.
4436 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4437 (dw2_find_pc_sect_symtab): Use it.
4438 * block.h (blockvector_contains_pc): Declare.
4439 * block.c (find_block_in_blockvector): New function.
4440 (blockvector_for_pc_sect): Use it.
4441 (blockvector_contains_pc): New function.
4442
5a439849
MR
44432012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4444
4445 * mips-tdep.h (mips_write_pc): New prototype.
4446 * mips-tdep.c (mips_write_pc): Make external, add description.
4447 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4448 add description.
4449
8376de04
MR
44502012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4451
4452 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4453 mips_regnum->pc.
4454 (mips_unwind_pc, mips_write_pc): Likewise.
4455 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4456 gdbarch_read_pc.
4457
d3581e61
JB
44582012-05-17 Joel Brobecker <brobecker@adacore.com>
4459
4460 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4461 proc_warn, proc_error, proc_get_status, proc_flags,
4462 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4463 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4464 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4465 proc_stop_process, proc_wait_for_stop, proc_run_process,
4466 proc_set_traced_signals, proc_set_traced_faults,
4467 proc_set_traced_sysentry, proc_set_traced_sysexit,
4468 proc_set_held_signals, proc_get_held_signals,
4469 proc_get_traced_signals, proc_get_traced_faults,
4470 proc_get_traced_sysentry, proc_get_traced_sysexit,
4471 proc_clear_current_fault, proc_set_current_signal,
4472 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4473 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4474 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4475 proc_get_current_thread, proc_get_current_thread,
4476 proc_get_current_thread, proc_update_threads,
4477 proc_update_threads, proc_update_threads, proc_update_threads,
4478 proc_iterate_over_threads, procfs_find_new_threads,
4479 procfs_pid_to_str): Make static. Remove advance declaration.
4480 (proc_cursig): Make static. Conditionalized defintion on
4481 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4482 (proc_syscall, proc_set_kill_on_last_close,
4483 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4484 proc_get_pending_signals, proc_get_signal_actions,
4485 proc_trace_signal, proc_ignore_signal): Delete.
4486
81b9b86e
SDJ
44872012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4488
4489 * coffread.c (cs_section_address): Passing proper argument for
4490 `bfd_get_section_vma'.
4491 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4492 `bfd_get_section_flags'.
4493 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4494 `bfd_get_section_vma'.
4495
abc9d0dc
TT
44962012-05-16 Tom Tromey <tromey@redhat.com>
4497
4498 PR macros/13205:
4499 * macrotab.h: (macro_define_special): Declare.
4500 (enum macro_special_kind): New.
4501 (struct macro_definition) <argc, replacement>: Update comments.
4502 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4503 (macro_define_object_internal): New function.
4504 (macro_define_object): Use it.
4505 (macro_define_special): New function.
4506 (fixup_definition): New function.
4507 (macro_lookup_definition, foreach_macro_in_scope)
4508 (foreach_macro): Use fixup_definition.
4509 * macroexp.h (macro_stringify): Declare.
4510 * macroexp.c (free_buffer_return_text): New function.
4511 (stringify): Constify "arg".
4512 (macro_stringify): New function.
4513 * dwarf2read.c (macro_start_file): Call macro_define_special.
4514
6a3a010b 45152012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4516 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4517
4518 * breakpoint.h (bp_location): Add related_address member.
4519 * inferior.h (get_return_value): Take a pointer to struct value
4520 instead of struct type for the function requested.
4521 * value.h (using_struct_return): Likewise.
4522 * gdbarch.sh (return_value): Take a pointer to struct value
4523 instead of struct type for the function requested.
4524 * breakpoint.c (set_breakpoint_location_function): Initialize
4525 related_address for bp_gnu_ifunc_resolver breakpoints.
4526 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4527 requested function's address to gdbarch_return_value.
4528 * eval.c (evaluate_subexp_standard): Pass the requested
4529 function's address to using_struct_return.
4530 * infcall.c (call_function_by_hand): Pass the requested
4531 function's address to using_struct_return and
4532 gdbarch_return_value.
4533 * infcmd.c (get_return_value): Take a pointer to struct value
4534 instead of struct type for the function requested.
4535 (print_return_value): Update accordingly.
4536 (finish_command_continuation): Likewise.
4537 * stack.c (return_command): Pass the requested function's
4538 address to using_struct_return and gdbarch_return_value.
4539 * value.c (using_struct_return): Take a pointer to struct value
4540 instead of struct type for the function requested. Pass the
4541 requested function's address to gdbarch_return_value.
4542 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4543 New function_value member, replacing function_type.
4544 (bpfinishpy_dealloc): Update accordingly.
4545 (bpfinishpy_pre_stop_hook): Likewise.
4546 (bpfinishpy_init): Likewise. Record the requested function's
4547 address.
4548 * mips-tdep.c (mips_fval_reg): New enum.
4549 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4550 words put in GP registers.
4551 (mips_o64_push_dummy_call): Update a comment.
4552 (mips_o32_return_value): Take a pointer to struct value instead
4553 of struct type for the function requested and use it to check if
4554 using the MIPS16 calling convention. Return the designated
4555 general purpose registers for floating-point values returned in
4556 MIPS16 mode.
4557 (mips_o64_return_value): Likewise.
4558 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4559 (ppc_sysv_abi_broken_return_value): Likewise.
4560 (ppc64_sysv_abi_return_value): Likewise.
4561 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4562 value instead of struct type for the function requested.
4563 * amd64-tdep.c (amd64_return_value): Likewise.
4564 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4565 * arm-tdep.c (arm_return_value): Likewise.
4566 * avr-tdep.c (avr_return_value): Likewise.
4567 * bfin-tdep.c (bfin_return_value): Likewise.
4568 * cris-tdep.c (cris_return_value): Likewise.
4569 * frv-tdep.c (frv_return_value): Likewise.
4570 * h8300-tdep.c (h8300_return_value): Likewise.
4571 (h8300h_return_value): Likewise.
4572 * hppa-tdep.c (hppa32_return_value): Likewise.
4573 (hppa64_return_value): Likewise.
4574 * i386-tdep.c (i386_return_value): Likewise.
4575 * ia64-tdep.c (ia64_return_value): Likewise.
4576 * iq2000-tdep.c (iq2000_return_value): Likewise.
4577 * lm32-tdep.c (lm32_return_value): Likewise.
4578 * m32c-tdep.c (m32c_return_value): Likewise.
4579 * m32r-tdep.c (m32r_return_value): Likewise.
4580 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4581 * m68k-tdep.c (m68k_return_value): Likewise.
4582 (m68k_svr4_return_value): Likewise.
4583 * m88k-tdep.c (m88k_return_value): Likewise.
4584 * mep-tdep.c (mep_return_value): Likewise.
4585 * microblaze-tdep.c (microblaze_return_value): Likewise.
4586 * mn10300-tdep.c (mn10300_return_value): Likewise.
4587 * moxie-tdep.c (moxie_return_value): Likewise.
4588 * mt-tdep.c (mt_return_value): Likewise.
4589 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4590 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4591 (ppc_sysv_abi_broken_return_value): Likewise.
4592 (ppc64_sysv_abi_return_value): Likewise.
4593 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4594 * rl78-tdep.c (rl78_return_value): Likewise.
4595 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4596 * rx-tdep.c (rx_return_value): Likewise.
4597 * s390-tdep.c (s390_return_value): Likewise.
4598 * score-tdep.c (score_return_value): Likewise.
4599 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4600 (sh_return_value_fpu): Likewise.
4601 * sh64-tdep.c (sh64_return_value): Likewise.
4602 * sparc-tdep.c (sparc32_return_value): Likewise.
4603 * sparc64-tdep.c (sparc64_return_value): Likewise.
4604 * spu-tdep.c (spu_return_value): Likewise.
4605 * tic6x-tdep.c (tic6x_return_value): Likewise.
4606 * v850-tdep.c (v850_return_value): Likewise.
4607 * vax-tdep.c (vax_return_value): Likewise.
4608 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4609 * xtensa-tdep.c (xtensa_return_value): Likewise.
4610 * gdbarch.c: Regenerate.
4611 * gdbarch.h: Regenerate.
4612
29ca12b3
TT
46132012-05-15 Tom Tromey <tromey@redhat.com>
4614
4615 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4616
588ae58c
JB
46172012-05-15 Joel Brobecker <brobecker@adacore.com>
4618
4619 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4620 of command in two error message.
4621
855a6e68
JB
46222012-05-15 Joel Brobecker <brobecker@adacore.com>
4623
4624 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4625
d634f2de
JB
46262012-05-15 Joel Brobecker <brobecker@adacore.com>
4627
4628 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4629
9cc815f5
JK
46302012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4631
4632 * NEWS (show auto-load scripts-directory): Add forgotten command.
4633
6a609e58
JK
46342012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4635
4636 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4637 parameters.
4638
ac1438b5
L
46392012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4640
4641 * amd64-tdep.c: Include features/i386/x32.c and
4642 features/i386/x32-avx.c.
4643 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4644 initialize_tdesc_x32_avx.
4645
e7e0cddf
SS
46462012-05-14 Stan Shebs <stan@codesourcery.com>
4647
4648 Add dynamic printf.
4649 * breakpoint.h (enum bptype): New type bp_dprintf.
4650 (struct breakpoint): New field extra_string.
4651 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4652 (create_breakpoint): Add extra_string arg.
4653 * breakpoint.c (dprintf_breakpoint_ops): New.
4654 (is_breakpoint): Add bp_dprintf.
4655 (bpstat_what): Add dprintf case.
4656 (bptype_string): Ditto.
4657 (print_one_breakpoint_location): Ditto.
4658 (init_bp_location): Ditto.
4659 (bkpt_print_mention): Ditto.
4660 (dprintf_style_enums): New array.
4661 (dprintf_style): New global.
4662 (dprintf_function): New global.
4663 (dprintf_channel): New global.
4664 (update_dprintf_command_list): New function.
4665 (update_dprintf_commands): New function.
4666 (init_breakpoint_sal): Add extra_string argument, handle it.
4667 (create_breakpoint_sal): Add extra_string argument.
4668 (create_breakpoints_sal): Add extra_string argument, update callers.
4669 (find_condition_and_thread): Add extra argument.
4670 (create_breakpoint): Add extra_string argument, record it.
4671 (dprintf_command): New function.
4672 (break_command_1): Add arg to create_breakpoint call.
4673 (handle_gnu_v3_exceptions): Ditto.
4674 (trace_command): Ditto.
4675 (ftrace_command): Ditto.
4676 (strace_command): Ditto.
4677 (bkpt_print_mention): Add dprintf case.
4678 (create_breakpoint_sal_default): Add extra_string argument.
4679 (_initialize_breakpoint): Add new commands.
4680 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4681 * python/py-breakpoint.c (bppy_init): Ditto.
4682 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4683
8ae38c14
MR
46842012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4685
4686 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4687
9f676e66
SCR
46882012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4689
4690 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4691 unsigned long long.
4692
7efc75aa
SCR
46932012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4694
4695 Add a new function gdb.find_pc_line to the Python API.
4696 * NEWS (Python Scripting): Add entry about the new function.
4697 * python/python.c (gdbpy_find_pc_line): New function which
4698 implements gdb.find_pc_line.
4699 (GdbMethods): Add entry for the new function.
4700
70af3797
PA
47012012-05-12 Pedro Alves <palves@redhat.com>
4702
4703 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4704 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4705
06da564e
EZ
47062012-05-12 Eli Zaretskii <eliz@gnu.org>
4707
4708 * inferior.c: Include completer.h
4709 (initialize_inferiors): Set completer of add-inferior to
4710 filename_completer.
4711
0288cee2
L
47122012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4713
4714 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4715 gdbarch_ptr_bit for x32 core dump.
4716
f6537a2c
L
47172012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4718
4719 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4720 and features/i386/x32-avx-linux.c.
4721
85d4a676
SS
47222012-05-11 Stan Shebs <stan@codesourcery.com>
4723 Kwok Cheung Yeung <kcy@codesourcery.com>
4724
4725 * NEWS: Describe new info os commands.
4726 * common/linux-osdata.c (PID_T, TIME_T): Define.
4727 (MAX_PID_T_STRLEN): New.
4728 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4729 MAX_PID_T_STRLEN.
4730 (command_from_pid): Add comment. Change to use PID_T.
4731 (commandline_from_pid): Change to use PID_T.
4732 (user_from_pid): Add comment.
4733 (get_process_owner): Add comment. Change to use PID_T and
4734 MAX_PID_T_STRLEN.
4735 (get_number_of_cpu_cores): Add comment.
4736 (get_cores_used_by_process): Add comment. Change to use PID_T and
4737 MAX_PID_T_STRLEN.
4738 (linux_xfer_osdata_processes): Change to use PID_T and
4739 MAX_PID_T_STRLEN.
4740 (compare_processes): New function.
4741 (linux_xfer_osdata_processgroups): New function.
4742 (linux_xfer_osdata_threads): Change to use PID_T.
4743 (linux_xfer_osdata_fds): New function.
4744 (format_socket_state, print_sockets): New functions.
4745 (union socket_addr): New union.
4746 (linux_xfer_osdata_isockets): New function.
4747 (time_from_time_t, group_from_gid): New functions.
4748 (linux_xfer_osdata_shm): New function.
4749 (linux_xfer_osdata_sem): New function.
4750 (linux_xfer_osdata_msg): New function.
4751 (linux_xfer_osdata_modules): New function.
4752 (osdata_table): Add new entries.
4753 * common/buffer.c (buffer_xml_printf): Add support for long and
4754 long long format specifiers.
4755
f24afd6d
L
47562012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4757
4758 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4759 (tdesc_x32_avx_linux): Likewise.
4760
7349ff92
JK
47612012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4762
4763 Implement multi-component --with-auto-load-dir.
4764 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4765 entries.
4766 (--with-auto-load-safe-path): Update the default value description.
4767 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4768 New.
4769 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4770 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4771 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4772 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4773 "set auto-load scripts-directory".
4774 * config.in: Regenerate.
4775 * configure: Regenerate.
4776 * configure.ac (--with-auto-load-dir): New configure option.
4777 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4778
6dea1fbd
JK
47792012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4780
4781 Provide $ddir substitution for --with-auto-load-safe-path.
4782 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4783 entries.
4784 * auto-load.c: Include observer.h.
4785 (auto_load_safe_path_vec_update): Call substitute_path_component for
4786 each component. New variable ddir_subst.
4787 (auto_load_gdb_datadir_changed): New function.
4788 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4789 AUTO_LOAD_SAFE_PATH. New comment.
4790 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4791 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4792 * config.in: Regenerate.
4793 * configure: Regenerate.
4794 * configure.ac (--auto-load-safe-path): Rename
4795 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4796 GDB_DATADIR/auto-load.
4797 * defs.h (substitute_path_component): New declaration.
4798 * top.c: Include observer.h.
4799 (set_gdb_datadir): New function.
4800 (init_main): Install it for "set data-directory".
4801 * utils.c (substitute_path_component): New function.
4802
b09aca3a
JK
48032012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4804
4805 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4806 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4807 DEBUG_FILE_DIRECTORY. Handle multiple components of
4808 DEBUG_FILE_DIRECTORY.
4809
95554aad
TT
48102012-05-10 Tom Tromey <tromey@redhat.com>
4811
4812 * dwarf2read.c (recursively_write_psymbols): New function.
4813 (write_psymtabs_to_index): Use it.
4814
4815 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4816 field.
4817 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4818 (load_partial_comp_unit): Update.
4819 (queue_comp_unit): Add argument 'pretend_language'.
4820 (process_queue): Update.
4821 (psymtab_to_symtab_1): Skip dependencies that have a user.
4822 (load_partial_comp_unit_reader): Give meaning to the 'data'
4823 argument.
4824 (load_full_comp_unit): Add 'pretend_language' argument.
4825 (process_full_comp_unit): Add 'pretend_language' argument. Set
4826 language on CU.
4827 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4828 Update.
4829 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4830 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4831 Update.
4832 (prepare_one_comp_unit): Add 'pretend_language' argument.
4833
4834 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4835 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4836 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4837 (dw2_do_instantiate_symtab): Check whether symtab was read in
4838 before queueing.
4839 (dw2_instantiate_symtab): Add assertion. Call
4840 process_cu_includes.
4841 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4842 (partial_symtab_p): New typedef.
4843 (set_partial_user): New function.
4844 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4845 (scan_partial_symbols): Add imported CU to imported_symtabs.
4846 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4847 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4848 (get_symtab, recursively_compute_inclusions)
4849 (compute_symtab_includes, process_cu_includes)
4850 (process_imported_unit_die): New functions.
4851 (process_die) <DW_TAG_imported_unit>: New case.
4852 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4853
4854 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4855 comment.
4856 (struct partial_die_info) <locdesc>: Remove.
4857 <d>: New field.
4858 (process_psymtab_comp_unit): Add 'read_partial' argument.
4859 Update.
4860 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4861 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4862 (add_partial_symbol): Update.
4863 (process_die): Handle DW_TAG_partial_unit.
4864 (read_file_scope): Update comment.
4865 (load_partial_dies): Handle DW_TAG_imported_unit.
4866 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4867 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4868
e871fbb9
TT
48692012-05-10 Tom Tromey <tromey@redhat.com>
4870
4871 * cc-with-dwz.sh: New file.
4872
b5b04b5b
TT
48732012-05-10 Tom Tromey <tromey@redhat.com>
4874
4875 * symtab.h (struct symtab) <includes, user>: New fields.
4876 * block.h (struct block_iterator) <d, idx, which>: New fields.
4877 * block.c (initialize_block_iterator, find_iterator_symtab)
4878 (block_iterator_step, block_iter_name_step)
4879 (block_iter_match_step): New functions.
4880 (block_iterator_first, block_iterator_next)
4881 (block_iter_name_first, block_iter_name_next)
4882 (block_iter_match_first, block_iter_match_next): Rewrite.
4883 (get_block_symtab): New function.
4884
84a146c9
TT
48852012-05-10 Tom Tromey <tromey@redhat.com>
4886
4887 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4888 set_block_symtab.
4889 * jit.c (finalize_symtab): Use allocate_global_block,
4890 set_block_symtab.
4891 * buildsym.c (finish_block_internal): New function, from old
4892 finish_block.
4893 (finish_block): Rewrite.
4894 (end_symtab): Use finish_block_internal, set_block_symtab.
4895 * block.h (struct global_block): New.
4896 (allocate_global_block, set_block_symtab): Declare.
4897 * block.c (allocate_global_block, set_block_symtab): New
4898 functions.
4899
9439a077
TT
49002012-05-10 Tom Tromey <tromey@redhat.com>
4901
4902 * psymtab.c (partial_map_expand_apply): Add assertion.
4903 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4904 (psymtab_to_symtab): Find unshared psymtab.
4905 (dump_psymtab): Print including psymtabs.
4906 (recursively_search_psymtabs): New function.
4907 (expand_symtabs_matching_via_partial): Use it.
4908 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4909 fields.
4910 (enum psymtab_search_status): New.
4911
8157b174
TT
49122012-05-10 Tom Tromey <tromey@redhat.com>
4913
4914 * tracepoint.c (scope_info): Update.
4915 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4916 (find_pc_sect_symtab, search_symbols)
4917 (default_make_symbol_completion_list_break_on)
4918 (make_file_symbol_completion_list): Update.
4919 * symmisc.c (dump_symtab_1): Update.
4920 * stack.c (print_frame_args, iterate_over_block_locals)
4921 (print_frame_labels, iterate_over_block_arg_vars): Update.
4922 * python/py-block.c (block_object) <dict>: Remove.
4923 <block>: New field.
4924 <iter>: Change type.
4925 (blpy_iter): Update.
4926 (blpy_block_syms_iternext): Update.
4927 * psymtab.c (map_block): Use block iterators.
4928 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4929 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4930 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4931 * infrun.c (check_exception_resume): Update.
4932 * cp-support.c (make_symbol_overload_list_block): Update.
4933 * coffread.c (patch_opaque_types): Update.
4934 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4935 * block.h (struct block_iterator): New.
4936 (block_iterator_first, block_iterator_next, block_iter_name_first)
4937 (block_iter_name_next, block_iter_match_first)
4938 (block_iter_match_next): Declare.
4939 (ALL_BLOCK_SYMBOLS): Redefine.
4940 * block.c (block_iterator_first, block_iterator_next)
4941 (block_iter_name_first, block_iter_name_next)
4942 (block_iter_match_first, block_iter_match_next): New functions.
4943 * ada-lang.c (ada_add_block_symbols)
4944 (ada_make_symbol_completion_list): Use block iterator.
4945
a2ca7a52
TT
49462012-05-10 Tom Tromey <tromey@redhat.com>
4947
4948 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4949 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4950 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4951 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4952 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4953 Update.
4954
64ea88dc
JB
49552012-05-10 Joel Brobecker <brobecker@adacore.com>
4956
4957 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4958 print-file-var-lib2.c, print-file-var-main.c and
4959 print-file-var.exp (located in gdb/testsuite/gdb.base).
4960
99a547d6
JB
49612012-05-10 Joel Brobecker <brobecker@adacore.com>
4962
4963 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4964 try locating the symbol in the symbol's own objfile first, before
4965 extending the search to all objfiles.
4966 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4967 out of lookup_symbol_aux_symtabs.
4968 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4969 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4970 Do not search EXCLUDE_OBJFILE.
4971 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4972 (lookup_symbol_global): Search for matches in the block's objfile
4973 first, before searching all other objfiles.
4974
0ece64fd
TG
49752012-05-10 Tristan Gingold <gingold@adacore.com>
4976
4977 * printcmd.c (set_command): Add pre/post inc/dec.
4978
3d16a105
FCE
49792012-05-09 Frank Ch. Eigler <fche@redhat.com>
4980
4981 * gdb.1: Document -ex option.
4982
2efbc0f7
JB
49832012-05-09 Joel Brobecker <brobecker@adacore.com>
4984
4985 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4986 * inferior.h (AT_SYMBOL): Delete.
4987
2c76a0c7
JB
49882012-05-09 Joel Brobecker <brobecker@adacore.com>
4989
4990 * mips-tdep.c (mips_push_dummy_code): New function.
4991 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4992 ON_STACK and install mips_push_dummy_code as our gdbarch
4993 push_dummy_code routine.
4994
9401a810
PA
49952012-05-09 Pedro Alves <palves@redhat.com>
4996
4997 * target.c (set_maintenance_target_async_permitted): Rename to ...
4998 (set_target_async_command): ... this.
4999 (show_maintenance_target_async_permitted): Rename to ...
5000 (show_target_async_command): ... this.
5001 (initialize_targets): Adjust.
5002
3929b321
DE
50032012-05-08 Doug Evans <dje@google.com>
5004
5005 * go-exp.y (classify_name): Add missing assignment of fields of
5006 yylval.ssym.
5007
c41535fd
EZ
50082012-05-08 Eli Zaretskii <eliz@gnu.org>
5009
5010 Display the ">" prompt in interactive mode while reading canned
5011 commands, even when the current interpreter is MI.
5012
5013 * interps.c (interp_set_temp): New function.
5014
5015 * interps.h (interp_set_temp): Add prototype.
5016
5017 * cli/cli-script.c (restore_interp): New cleanup function.
5018 (read_command_lines): Temporarily override the current interpreter
5019 with CLI and arrange for restoring the original one.
5020
c0749c4d
JS
50212012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5022
5023 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5024
d7333987
SDJ
50252012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5026
5027 * probe.c (parse_probes): Move conditional to check for
5028 debuginfo files from here...
5029 * stap-probe.c (stap_get_probes): ... to here.
5030
649e6d92
MK
50312012-05-07 Mark Kettenis <kettenis@gnu.org>
5032 H.J. Lu <hongjiu.lu@intel.com>
5033
5034 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5035 `movl %esp, %ebp' for the X32 ABI.
5036
f39c6ffd
TT
50372012-05-07 Tom Tromey <tromey@redhat.com>
5038
5039 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5040 get_DW_TAG_name.
5041 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5042 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5043 (dwarf_stack_op_name): Remove.
5044 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5045 (decode_locdesc): Use get_DW_OP_name.
5046 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5047 (dwarf2_compile_expr_to_ax): Likewise.
5048 (disassemble_dwarf_expression): Likewise.
5049 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5050
1e1f6591
CLT
50512012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5052
5053 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5054 (sh_linux_sigtramp_cache): New function.
5055 (sh_linux_sigreturn_init): New function.
5056 (sh_linux_rt_sigreturn_init): New function.
5057 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5058 patterns.
5059 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5060 syscall codes.
5061 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5062 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5063 (sh_linux_init_abi): Add init calls to register new tramp_frame
5064 definitions under 32-bit SH, update comments.
5065
545c08b4
PA
50662012-05-07 Pedro Alves <palves@redhat.com>
5067
daac165e
PA
5068 PR gdb/10952
5069
545c08b4
PA
5070 * amd64-linux-tdep.c: Include glibc-tdep.h.
5071 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5072 gdbarch_skip_solib_resolver callback.
5073
af2c1515
JK
50742012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5075
5076 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5077 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5078 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5079 (add_auto_load_safe_path): Change the error message.
5080 (_initialize_auto_load): Change the "safe-path" help text.
5081 * configure: Regenerate
5082 * configure.ac (--without-auto-load-safe-path): Set
5083 WITH_AUTO_LOAD_SAFE_PATH to /.
5084
1067f998
SDJ
50852012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5086
5087 * stap-probe.h: Do not include unecessary `probe.h'.
5088
45dfa85a
AM
50892012-05-05 Alan Modra <amodra@gmail.com>
5090
5091 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5092 bfd_und_section_ptr.
5093 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5094 and bfd_com_section_ptr.
5095
cf093994
JB
50962012-05-04 Joel Brobecker <brobecker@adacore.com>
5097
762ebb75 5098 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5099
d40dc7a8
JB
51002012-05-04 Joel Brobecker <brobecker@adacore.com>
5101
5102 * windows-nat.h (segment_register_p_ftype): New typedef.
5103 (windows_set_segment_register_p): Add declaration.
5104 * windows-nat.c (segment_register_p): New static global.
5105 (windows_set_segment_register_p): New function.
5106 (do_windows_fetch_inferior_registers): Add special handling
5107 for segment registers.
5108 * amd64-windows-nat.c: #include "amd64-tdep.h".
5109 (amd64_windows_segment_register_p): New function.
5110 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5111 * i386-windows-nat.c: #include "i386-tdep.h".
5112 (i386_windows_segment_register_p): New function.
5113 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5114
52b3699b
TG
51152012-05-04 Tristan Gingold <gingold@adacore.com>
5116
5117 * printcmd.c (set_command): Emit a warning if the expression is not
5118 an assignment.
5119
94c74239
JB
51202012-05-03 Joel Brobecker <brobecker@adacore.com>
5121
5122 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5123 Make static.
5124
fcf57f19
SDJ
51252012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5126
5127 * stap-probe.c (stap_is_operator): Change declaration.
5128 (stap_get_opcode): Change return value.
5129 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5130 `stap_parse_argument_1'.
5131
27d2932e
PA
51322012-05-03 Pedro Alves <pedro@codesourcery.com>
5133
5134 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5135 debug log.
5136
a20ee7a4
SCR
51372012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5138
5139 Add two new methods global_block and static_block to gdb.Symtab
5140 objects.
5141 * NEWS (Python scripting): Add entry about the new methods.
5142 * python/py-symtab.c (stpy_global_block): New function which
5143 implements the gdb.Symtab.global_block() method.
5144 (stpy_static_block): New function which implements the
5145 gdb.Symtab.static_block() method.
5146 (symtab_object_methods): Add entries for the two new methods.
5147
943cb756
DE
51482012-05-03 Doug Evans <dje@google.com>
5149
5150 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5151 files.
5152
f4644a3f
YQ
51532012-05-03 Yao Qi <yao@codesourcery.com>
5154
5155 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5156 space.
5157 (i386_process_record): Ditto.
5158
ef61f180
JB
51592012-05-02 Joel Brobecker <brobecker@adacore.com>
5160
5161 * infcall.c (unwind_on_signal_p): Make static.
5162
02f1df11
JB
51632012-05-02 Joel Brobecker <brobecker@adacore.com>
5164
5165 * sol-thread.c (solaris_pid_to_str): Make static.
5166 (_initialize_sol_thread): Add prototype.
5167
39023530
JB
51682012-05-02 Joel Brobecker <brobecker@adacore.com>
5169
5170 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5171
c6b0c501
CF
51722012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5173
5174 * MAINTAINERS: Remove myself.
5175
1ef71717
JK
51762012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5177
5178 Fix --without-auto-load-safe-path for MS-Windows host platform.
5179 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5180
b31b86a7
EZ
51812012-05-02 Eli Zaretskii <eliz@gnu.org>
5182
5183 * gdb_curses.h: Undefine KEY_EVENT before including curses
5184 headers. Move "#undef MOUSE_MOVED" before any curses header
5185 inclusion.
5186
777532fc
SDJ
51872012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5188
5189 * features/i386/i386-mmx-linux.c: Regenerate.
5190 * features/rs6000/powerpc-32.c: Likewise.
5191 * features/rs6000/powerpc-32l.c: Likewise.
5192 * features/rs6000/powerpc-403.c: Likewise.
5193 * features/rs6000/powerpc-403gc.c: Likewise.
5194 * features/rs6000/powerpc-405.c: Likewise.
5195 * features/rs6000/powerpc-505.c: Likewise.
5196 * features/rs6000/powerpc-601.c: Likewise.
5197 * features/rs6000/powerpc-602.c: Likewise.
5198 * features/rs6000/powerpc-603.c: Likewise.
5199 * features/rs6000/powerpc-604.c: Likewise.
5200 * features/rs6000/powerpc-64.c: Likewise.
5201 * features/rs6000/powerpc-64l.c: Likewise.
5202 * features/rs6000/powerpc-750.c: Likewise.
5203 * features/rs6000/powerpc-860.c: Likewise.
5204 * features/rs6000/powerpc-e500.c: Likewise.
5205 * features/rs6000/powerpc-e500l.c: Likewise.
5206 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5207 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5208 * features/rs6000/rs6000.c: Likewise.
5209
d71871bc
SDJ
52102012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5211
5212 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5213 variable.
5214 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5215 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5216 (stap_parse_argument) <e>: Likewise.
5217 (handle_stap_probe) <byte_order>: Likewise.
5218
fd820528
DE
52192012-04-30 Doug Evans <dje@google.com>
5220
5221 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5222 init_and_read_dies_worker. All callers updated.
5223 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5224 replaced with init_cutu_and_read_dies.
5225 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5226 (find_partial_die): Remove FIXME. Don't free current CU.
5227
ec3f619d 52282012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5229
5230 * contrib: New directory.
5231 * contrib/test_pubnames_and_indexes.py: New file.
5232
fceca515
DE
52332012-04-30 Doug Evans <dje@google.com>
5234
5235 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5236 All callers updated.
5237 (init_cu_die_reader): Verify the section is non-empty.
5238 (dwarf_decode_line_header): Don't dereference section->asection
5239 until we know the section is present.
5240
311fe7e1
SDJ
52412012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5242
5243 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5244 probes.
5245
5977971a
YQ
52462012-04-29 Yao Qi <yao@codesourcery.com>
5247
5248 * gdb-code-style.el: New hook gdb-markup-hook
5249 and gdb-comment-hook.
5250
dee91e82
DE
52512012-04-28 Doug Evans <dje@google.com>
5252
3019eac3
DE
5253 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5254 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5255 objfile->obfd.
5256 * symfile.h (dwarf2_debug_sections): New member addr.
5257 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5258 (ctx_no_get_addr_index): New function.
5259 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5260 (ctx_no_get_addr_index): Declare.
5261 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5262 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5263 (dwarf_expr_ctx_funcs): Update.
5264 (needs_get_addr_index): New function.
5265 (needs_frame_ctx_funcs): Update.
5266 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5267 * dwarf2read.c: #include "gdbcore.h".
5268 (dwarf2_per_objfile): New members addr, dwo_files.
5269 (dwarf2_elf_names): Add entry for addr.
5270 (struct dwo_section_names): New type.
5271 (dwo_section_names): New static global.
5272 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5273 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5274 old debug_types_section member updated to use this.
5275 Rename member debug_types_section to info_or_types_section,
5276 all uses updated.
5277 (signatured_type): Rename member type_offset to type_offset_in_tu,
5278 all uses updated. New member type_offset_in_section.
5279 (struct dwo_sections): New type.
5280 (struct dwo_unit): New type.
5281 (struct dwo_file): New type.
5282 (die_reader_specs): New member dwo_file.
5283 (dwarf2_locate_sections): Watch for .debug_addr.
5284 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5285 (dwarf2_read_section): Get bfd of section from bfd's asection,
5286 instead of objfile.
5287 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5288 (create_signatured_type_table_from_index): Initialize
5289 sig_type->info_or_types_section.
5290 (dw2_get_file_names): Statement lists for type units with DWO files
5291 live in the DWO file.
5292 (create_debug_types_hash_table): New function.
5293 (create_all_type_units): Rewrite.
5294 (init_cu_die_reader): New arg dwo_file, all callers updated.
5295 (init_and_read_dies_worker): Get section from
5296 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5297 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5298 continue reading the CU/TU from there.
5299 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5300 updated. Get section from this_cu->info_or_types_section.
5301 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5302 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5303 DW_FORM_GNU_str_index.
5304 (hash_dwo_file, eq_dwo_file): New functions.
5305 (allocate_dwo_file_hash_table): New function.
5306 (hash_dwo_unit, eq_dwo_unit): New functions.
5307 (allocate_dwo_unit_table): New function.
5308 (dwarf2_locate_dwo_sections): New function.
5309 (struct create_dwo_info_table_data): New type.
5310 (create_debug_info_hash_table_reader): New function.
5311 (create_debug_info_hash_table): New function.
5312 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5313 (lookup_dwo_file): New function.
5314 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5315 (free_dwo_file, free_dwo_file_cleanup): New functions.
5316 (free_dwo_file_from_slot, free_dwo_files): New functions.
5317 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5318 (dwarf2_record_block_ranges): Ditto.
5319 (read_partial_die): Ditto.
5320 (process_enumeration_scope): Update to use type_offset_in_section.
5321 (read_full_die_1): New function.
5322 (read_full_die): Rewrite.
5323 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5324 DW_FORM_GNU_str_index.
5325 (read_addr_index_1, read_addr_index): New functions.
5326 (read_addr_index_from_leb128): New function.
5327 (struct dwarf2_read_addr_index_data): New type.
5328 (dwarf2_read_addr_index_reader): New function.
5329 (dwarf2_read_addr_index): New function.
5330 (read_str_index): New function.
5331 (leb128_size): New function.
5332 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5333 If processing a type unit from a DWO file, get the line section
5334 from the DWO file.
5335 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5336 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5337 DW_FORM_GNU_str_index.
5338 (lookup_die_type): Check whether section offset of type's die is
5339 known before looking it up. Remove assert. Condition can
5340 legimately happen for inter-cu type references.
5341 (dwarf_attr_name): Handle Fission attributes.
5342 (dwarf_form_name): Handle Fission forms.
5343 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5344 DW_FORM_GNU_str_index.
5345 (follow_die_sig): Update to use type_offset_in_section.
5346 (decode_locdesc): New case DW_OP_GNU_addr_index.
5347 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5348 DW_FORM_GNU_str_index.
5349 (cu_debug_loc_section): New function.
5350 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5351 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5352 Free DWO files if present.
5353 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5354
dee91e82
DE
5355 Refactor DIE reading.
5356 * dwarf2read.c (dwarf2_per_objfile): Replace members
5357 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5358 (die_reader_specs): New member "die_section". Temporarily make
5359 member "buffer" non-const, pending constifying all info_ptr uses.
5360 (die_reader_func_ftype): New typedef.
5361 (dw2_get_file_names_reader): New function.
5362 (dw2_get_file_names): Rewrite.
5363 (read_and_check_type_unit_head): Rename arg type_offset to
5364 type_offset_in_tu.
5365 (create_all_type_units): Improve debugging message.
5366 Improve dummy type unit check.
5367 (init_cu_die_reader): New arg "section". All callers updated.
5368 (init_and_read_dies_worker): New function.
5369 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5370 (init_cutu_and_read_dies_no_follow): New function.
5371 (init_cutu_and_read_dies_simple): New function.
5372 (process_psymtab_comp_unit_reader): New function.
5373 (process_psymtab_comp_unit): Delete args section,
5374 is_debug_types_section. Rewrite. All callers updated.
5375 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5376 All callers updated. Rewrite.
5377 (load_partial_comp_unit_reader): New function.
5378 (load_partial_comp_unit): Rewrite.
5379 (skip_children): New arg reader. Delete args buffer, cu.
5380 All callers updated.
5381 (skip_one_die): New arg reader. Delete args buffer, cu.
5382 All callers updated.
5383 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5384 All callers updated.
5385 (load_full_comp_unit_reader): New function.
5386 (load_full_comp_unit): Rewrite.
5387 (read_comp_unit): Delete.
5388 (read_die_and_children_1): Delete, contents moved ...
5389 (read_die_and_children): ... here.
5390 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5391 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5392 All callers updated.
5393 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5394 All callers updated.
5395 (find_partial_die): Rewrite load_all_dies support.
5396 (read_attribute_value): New arg reader. Delete args abfd, cu.
5397 All callers updated.
5398 (read_attribute): New arg reader. Delete args abfd, cu.
5399 All callers updated.
5400 (load_full_type_unit): Add assert.
5401 (read_signatured_type_reader): New function.
5402 (read_signatured_type): Rewrite.
5403 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5404 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5405 All callers updated. Set per_cu->cu = NULL after freeing it.
5406 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5407 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5408 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5409 (set_die_type): Update.
5410 (get_die_type_at_offset): Update.
5411 (read_file_scope): Call prepare_one_comp_unit.
5412 (read_type_unit_scope): Ditto.
5413 (prepare_one_comp_unit): Set producer if present.
5414
72d59e0d
SDJ
54152012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5416
5417 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5418 gettext function on `error'.
5419
0fefef59
DE
54202012-04-27 Doug Evans <dje@google.com>
5421
5422 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5423 is empty.
5424
28106bc2
SDJ
54252012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5426 Tom Tromey <tromey@redhat.com>
5427
5428 * breakpoint.c (struct breakpoint_objfile_data)
5429 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5430 <exception_probes>: New fields.
5431 (free_breakpoint_probes): New function.
5432 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5433 `_Unwind_DebugHook'.
5434 (create_exception_master_breakpoint): Likewise.
5435 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5436 * infrun.c: Including necessary header files for handling SystemTap
5437 probes.
5438 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5439 via SystemTap probes.
5440 (check_exception_resume): Remove `func' argument. Handle exception
5441 unwinding breakpoint set via a SystemTap probe.
5442 (insert_exception_resume_from_probe): New function.
5443
55aa24fb
SDJ
54442012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5445 Tom Tromey <tromey@redhat.com>
5446 Jan Kratochvil <jan.kratochvil@redhat.com>
5447
5448 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5449 (COMMON_OBS): Likewise.
5450 (HFILES_NO_SRCDIR): Add `probe'.
5451 * NEWS: Mention support for static and SystemTap probes.
5452 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5453 SystemTap probes' arguments parser.
5454 * arm-linux-tdep.c: Including headers needed to perform the parsing
5455 of SystemTap probes' arguments.
5456 (arm_stap_is_single_operand): New function.
5457 (arm_stap_parse_special_token): Likewise.
5458 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5459 probes' arguments parser.
5460 * ax-gdb.c (require_rvalue): Removing static declaration.
5461 (gen_expr): Likewise.
5462 * ax-gdb.h (gen_expr): Declaring function.
5463 (require_rvalue): Likewise.
5464 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5465 (bkpt_probe_breakpoint_ops): New variable.
5466 (momentary_breakpoint_from_master): Set the `probe' value.
5467 (add_location_to_breakpoint): Likewise.
5468 (break_command_1): Using proper breakpoint_ops according to the
5469 argument passed by the user in the command line.
5470 (bkpt_probe_insert_location): New function.
5471 (bkpt_probe_remove_location): Likewise.
5472 (bkpt_probe_create_sals_from_address): Likewise.
5473 (bkpt_probe_decode_linespec): Likewise.
5474 (tracepoint_probe_create_sals_from_address): Likewise.
5475 (tracepoint_probe_decode_linespec): Likewise.
5476 (tracepoint_probe_breakpoint_ops): New variable.
5477 (trace_command): Using proper breakpoint_ops according to the
5478 argument passed by the user in the command line.
5479 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5480 static probes on breakpoints and tracepoints.
5481 * breakpoint.h (struct bp_location) <probe>: New field.
5482 * cli-utils.c (skip_spaces_const): New function.
5483 (extract_arg): Likewise.
5484 * cli-utils.h (skip_spaces_const): Likewise.
5485 (extract_arg): Likewise.
5486 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5487 * configure.ac: Append `stap-probe.o' to be generated when ELF
5488 support is present.
5489 * configure: Regenerate.
5490 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5491 * elfread.c: Include `probe.h' and `arch-utils.h'.
5492 (probe_key): New variable.
5493 (elf_get_probes): New function.
5494 (elf_get_probe_argument_count): Likewise.
5495 (elf_evaluate_probe_argument): Likewise.
5496 (elf_compile_to_ax): Likewise.
5497 (elf_symfile_relocate_probe): Likewise.
5498 (stap_probe_key_free): Likewise.
5499 (elf_probe_fns): New variable.
5500 (elf_sym_fns): Add `sym_probe_fns' value.
5501 (elf_sym_fns_lazy_psyms): Likewise.
5502 (elf_sym_fns_gdb_index): Likewise.
5503 (_initialize_elfread): Initialize objfile cache for static
5504 probes.
5505 * gdb_vecs.h (struct probe): New forward declaration.
5506 (probe_p): New VEC declaration.
5507 * gdbarch.c: Regenerate.
5508 * gdbarch.h: Regenerate.
5509 * gdbarch.sh (stap_integer_prefix): New variable.
5510 (stap_integer_suffix): Likewise.
5511 (stap_register_prefix): Likewise.
5512 (stap_register_suffix): Likewise.
5513 (stap_register_indirection_prefix): Likewise.
5514 (stap_register_indirection_suffix): Likewise.
5515 (stap_gdb_register_prefix): Likewise.
5516 (stap_gdb_register_suffix): Likewise.
5517 (stap_is_single_operand): New function.
5518 (stap_parse_special_token): Likewise.
5519 (struct stap_parse_info): Forward declaration.
5520 * i386-tdep.c: Including headers needed to perform the parsing
5521 of SystemTap probes' arguments.
5522 (i386_stap_is_single_operand): New function.
5523 (i386_stap_parse_special_token): Likewise.
5524 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5525 probes' arguments parser.
5526 * i386-tdep.h (i386_stap_is_single_operand): New function.
5527 (i386_stap_parse_special_token): Likewise.
5528 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5529 * mipsread.c (ecoff_sym_fns): Likewise.
5530 * objfiles.c (objfile_relocate1): Support relocation for static
5531 probes.
5532 * parse.c (prefixify_expression): Remove static declaration.
5533 (initialize_expout): Likewise.
5534 (reallocate_expout): Likewise.
5535 * parser-defs.h (initialize_expout): Declare function.
5536 (reallocate_expout): Likewise.
5537 (prefixify_expression): Likewise.
5538 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5539 of SystemTap probes' arguments.
5540 (ppc_stap_is_single_operand): New function.
5541 (ppc_stap_parse_special_token): Likewise.
5542 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5543 probes' arguments parser.
5544 * probe.c: New file, for generic statically defined probe support.
5545 * probe.h: Likewise.
5546 * s390-tdep.c: Including headers needed to perform the parsing of
5547 SystemTap probes' arguments.
5548 (s390_stap_is_single_operand): New function.
5549 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5550 probes' arguments parser.
5551 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5552 * stap-probe.c: New file, for SystemTap probe support.
5553 * stap-probe.h: Likewise.
5554 * symfile.h: Include `gdb_vecs.h'.
5555 (struct sym_probe_fns): New struct.
5556 (struct sym_fns) <sym_probe_fns>: New field.
5557 * symtab.c (init_sal): Initialize `probe' field.
5558 * symtab.h (struct probe): Forward declaration.
5559 (struct symtab_and_line) <probe>: New field.
5560 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5561 locations.
5562 (stop_tracing): Likewise.
5563 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5564
22d2b532
SDJ
55652012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5566 Tom Tromey <tromey@redhat.com>
5567
5568 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5569 and to compile agent expressions.
5570 * infrun.c (siginfo_make_value): New argument `ignore'.
5571 (siginfo_funcs): New struct.
5572 (_initialize_infrun): New argument when calling
5573 `create_internalvar_type_lazy'.
5574 * thread.c (thread_id_make_value): New argument `ignore'.
5575 (thread_funcs): New struct.
5576 (_initialize_thread): New argument when calling
5577 `create_internalvar_type_lazy'.
5578 * tracepoint.c (sdata_make_value): New argument `ignore'.
5579 (sdata_funcs): New struct.
5580 (_initialize_tracepoint): New argument when calling
5581 `create_internalvar_type_lazy'.
5582 * value.c (make_value): New struct.
5583 (create_internalvar_type_lazy): New argument `data'.
5584 (compile_internalvar_to_ax): New function.
5585 (value_of_internalvar): Properly handling `make_value' case.
5586 (clear_internalvar): Likewise.
5587 (show_convenience): Adding `TRY_CATCH' block.
5588 * value.h (internalvar_make_value): Delete, replace by...
5589 (struct internalvar_funcs): ... this.
5590 (create_internalvar_type_lazy) <fun>: Delete argument.
5591 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5592 (compile_internalvar_to_ax): New function.
5593 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5594 (tlb_funcs): New struct.
5595 (_initialize_windows_tdep): New argument when calling
5596 `create_internalvar_type_lazy'.
5597
91da1414
MW
55982012-04-27 Mark Wielaard <mjw@redhat.com>
5599
5600 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5601 see whether it is an address or a constant offset from DW_AT_low_pc.
5602 (dwarf2_record_block_ranges): Likewise.
5603 (read_partial_die): Likewise.
5604
4ab9d8ec
MW
56052012-04-26 Mark Wielaard <mjw@redhat.com>
5606
5607 * MAINTAINERS (Write After Approval): Add myself to the list.
5608
a0911fd0
MR
56092012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5610
5611 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5612 (proc_prettyprint_signal): Likewise.
5613 (proc_prettyprint_faultset): Likewise.
5614 (proc_prettyprint_fault): Likewise.
5615 (proc_prettyprint_actionset): Likewise.
5616 (proc_prettyprint_flags): Move to new proc-flags.c section.
5617 (proc_prettyfprint_flags): New prototype.
5618 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5619 (proc_syscall, proc_cursig): Likewise.
5620 (proc_set_kill_on_last_close): Likewise.
5621 (proc_unset_kill_on_last_close): Likewise.
5622 (proc_set_watchpoint): Make static.
5623 (proc_delete_dead_threads): Likewise.
5624 (procfs_set_watchpoint): Likewise.
5625 (_initialize_procfs): Add prototype.
5626 * proc-events.c: Include proc-utils.h.
5627 (init_syscall_table): Make static.
5628 * proc-api.c (_initialize_proc_api): Add prototype.
5629 * proc-flags.c: Include proc-utils.h.
5630
9009e1ae
MR
56312012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5632
5633 * configure.ac: Add AC_ARG_PROGRAM.
5634 * configure: Regenerate.
5635
4fae6e18
JK
56362012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5637
5638 Fix DW_AT_lower_bound defaults for DWARF-4+.
5639 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5640 high. New variable low_default_is_valid. Implement DWARF-4+
5641 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5642 no default by the DWARF standard.
5643
14132e89 56442012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 5645 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
5646
5647 * infrun.c (handle_inferior_event): Move the check for return
5648 trampolines ahead of the check for function trampolines.
5649 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5650 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5651 (mips_str_mips16_ret_stub): Likewise.
5652 (mips_str_call_fp_stub): Likewise.
5653 (mips_str_call_stub): Likewise.
5654 (mips_str_fn_stub): Likewise.
5655 (mips_str_pic): Likewise.
5656 (mips_in_frame_stub): New function.
5657 (mips_unwind_pc): Return the return address rather than the PC
5658 if the PC of an intermediate frame is inside a call thunk.
5659 (mips_is_stub_suffix): New function.
5660 (mips_is_stub_mode): Likewise.
5661 (mips_get_mips16_fn_stub_pc): Likewise.
5662 (mips_skip_mips16_trampoline_code): Update to handle all the
5663 currently generated stub types. Don't recurse into __fn_stub
5664 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5665 Use cooked register accesses.
5666 (mips_in_return_stub): Reintroduce function.
5667 (mips_skip_trampoline_code): Traverse trampolines recursively.
5668 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5669
518f0db5 56702012-04-26 Joel Brobecker <brobecker@adacore.com>
5671
5672 GDB 7.4.1 released.
5673
3184d3f9
JL
56742012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5675
5676 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5677 * features/arm-with-m-vfp-d16.xml: New file. Describes
5678 Cortex-M with VFPv4-sp-d16 FPU register layout.
5679 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5680 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5681 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5682 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5683 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5684
b6201d44
DE
56852012-04-25 Doug Evans <dje@google.com>
5686
5687 * cli/cli-decode.c (print_doc_line): Use stream instead of
5688 current_uiout.
5689
4e2f8df6
SDJ
56902012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5691
5692 * features/arm-with-iwmmxt.c: Regenerate.
5693 * features/arm-with-m-fpa-layout.c: Likewise.
5694 * features/arm-with-m.c: Likewise.
5695 * features/arm-with-neon.c: Likewise.
5696 * features/arm-with-vfpv2.c: Likewise.
5697 * features/arm-with-vfpv3.c: Likewise.
5698 * features/mips-dsp-linux.c: Likewise.
5699 * features/mips-linux.c: Likewise.
5700 * features/mips64-dsp-linux.c: Likewise.
5701 * features/mips64-linux.c: Likewise.
5702 * features/s390-linux32.c: Likewise.
5703 * features/s390-linux32v1.c: Likewise.
5704 * features/s390-linux32v2.c: Likewise.
5705 * features/s390-linux64.c: Likewise.
5706 * features/s390-linux64v1.c: Likewise.
5707 * features/s390-linux64v2.c: Likewise.
5708 * features/s390x-linux64.c: Likewise.
5709 * features/s390x-linux64v1.c: Likewise.
5710 * features/s390x-linux64v2.c: Likewise.
5711 * features/tic6x-c62x-linux.c: Likewise.
5712 * features/tic6x-c62x.c: Likewise.
5713 * features/tic6x-c64x-linux.c: Likewise.
5714 * features/tic6x-c64x.c: Likewise.
5715 * features/tic6x-c64xp-linux.c: Likewise.
5716 * features/tic6x-c64xp.c: Likewise.
5717 * target-descriptions.c: Only generate `field_type' and `type'
5718 variables when needed.
5719
2def3e66
JB
57202012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5721
5722 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5723
a766d390
DE
57242012-04-25 Doug Evans <dje@google.com>
5725
5726 Initial pass at Go language support.
5727 * NEWS: Mention Go.
5728 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5729 go-valprint.c.
5730 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5731 (YYFILES): Add go-exp.c.
5732 (YYOBJ): Add go-exp.o.
5733 (local-maintainer-clean): Delete go-exp.c.
5734 * defs.h (enum language): Add language_go.
5735 * dwarf2read.c: #include "go-lang.h".
5736 (fixup_go_packaging): New function.
5737 (process_full_comp_unit): Call it when processing Go CUs.
5738 (dwarf2_physname): Add Go support.
5739 (read_file_scope): Handle missing language spec for GNU Go.
5740 (set_cu_language): Handle DW_LANG_Go.
5741 * go-exp.y: New file.
5742 * go-lang.h: New file.
5743 * go-lang.c: New file.
5744 * go-typeprint.c: New file.
5745 * go-valprint.c: New file.
5746 * symtab.c: #include "go-lang.h".
5747 (symbol_set_language): Handle language_go.
5748 (symbol_find_demangled_name, symbol_set_names): Ditto.
5749 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5750
4e2af517
JM
57512012-04-24 Jim Meyering <meyering@redhat.com>
5752
5753 avoid a few strncpy-induced buffer overruns
5754 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5755 fname and psargs before trying to concatenate.
5756 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5757 "name" before applying strchr.
5758
b77b7f52
SCR
57592012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5760
5761 * CONTRIBUTE: Use unified diff instead of context diff when
5762 generating patches.
5763
6321c22a
MR
57642012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5765
5766 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5767 code. Handle JR.HB correctly.
5768
742c84f6
MR
57692012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5770
5771 * mips-tdep.c
5772 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5773 with the other MIPS16 helpers.
5774
7fc7e0c3
SDJ
57752012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5776
5777 * observer.sh: Conditionally declare `args', thus cleaning up
5778 unused instances of this variable.
5779
20388dd6
YQ
57802012-04-24 Yao Qi <yao@codesourcery.com>
5781
5782 Revert this patch to allow breakpoint always-inserted
5783 in record target.
5784 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
5785 * breakpoint.c: Include record.h.
5786 (breakpoints_always_inserted_mode): Return false when the record
5787 target is in use.
20388dd6
YQ
5788
5789 * breakpoint.c (iterate_over_bp_locations): New.
5790 * breakpoint.h: Declare.
5791 New typedef walk_bp_location_callback.
5792 * record.c (record_open): Call record_init_record_breakpoints.
5793 (record_sync_record_breakpoints): New.
5794 (record_init_record_breakpoints): New.
5795 * NEWS: Mention supporting breakpoint always-inserted mode in
5796 record target.
5797
4734f50e
MK
57982012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5799
5800 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5801 any thread.
5802
c326b90e
YQ
58032012-04-24 Yao Qi <yao@codesourcery.com>
5804
5805 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5806 (is_catchpoint): ... it.
5807 (print_one_breakpoint_location): Caller update.
5808 * breakpoint.h: Update declaration.
5809
d8fb5a1e
DM
58102012-04-23 David S. Miller <davem@davemloft.net>
5811
5812 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5813
34431a2a
TT
58142012-04-23 Tom Tromey <tromey@redhat.com>
5815
5816 * buildsym.c (add_free_pendings): Remove.
5817 * buildsym.h (add_free_pendings): Remove.
5818
4568ecf9
DE
58192012-04-23 Doug Evans <dje@google.com>
5820
5821 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5822 attr.u.unsnd instead of attr.u.addr.
5823 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5824 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5825 DW_FORM_ref_udata.
5826 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5827 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5828 DW_FORM_ref_udata.
5829 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5830
dca9aa3a
MR
58312012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5832
5833 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5834 (mips_o32_return_value): Likewise.
5835 (mips_o64_return_value): Likewise.
5836
c8ea1972
PH
58372012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5838
5839 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
5840 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5841 their treatment in eval.c.
c8ea1972 5842
8d1b3521
DM
58432012-04-21 David S. Miller <davem@davemloft.net>
5844
5845 * sparc-tdep.c (X_DISP10): Define.
5846 (sparc_analyze_control_transfer): Handle compare-and-branch.
5847
03145bf4
JL
58482012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5849
5850 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5851 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5852
004159a2 58532012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 5854 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
5855
5856 * mips-tdep.c (mips_float_register_p): New function.
5857 (mips_convert_register_float_case_p): Use mips_float_register_p.
5858 (mips_register_type): Likewise.
5859 (mips_print_register): Likewise.
5860 (print_gp_register_row): Likewise.
5861 (mips_print_registers_info): Likewise.
5862
7f0e6aae
MR
58632012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5864
5865 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5866 of mips16 symbols.
5867
bc17beea
AP
58682012-04-20 Andrew Pinski <apinski@cavium.com>
5869
5870 * MAINTAINERS (Write After Approval): Add myself to the list.
5871
1730a5a5
SDJ
58722012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5873
5874 * MAINTAINERS: Update my e-mail address.
5875
38ea300a
PA
58762012-04-20 Pedro Alves <palves@redhat.com>
5877
5878 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5879 $srcdir.
5880 * configure: Regenerate.
5881
111dfaae
SDJ
58822012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5883
5884 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5885 declaration.
5886 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5887
4fb2c64a
JK
58882012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5889
5890 Fix compilation compatibility with python-2.4
5891 * python/py-type.c (convert_field): Cast ADDRSTRING for
5892 PyObject_SetAttrString as non-const. New comment.
5893
6328eb38
TT
58942012-04-19 Tom Tromey <tromey@redhat.com>
5895
5896 * top.c (quit_target): Use all_cleanups.
5897 * main.c (captured_command_loop): Use all_cleanups.
5898 * exceptions.c (throw_exception): Use all_cleanups.
5899
c971b7fa
PA
59002012-04-19 Pedro Alves <palves@redhat.com>
5901
5902 * Makefile.in (GNULIB_BUILDDIR): New.
5903 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5904 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5905 (CLEANDIRS). Remove gnulib/import.
5906 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5907 (all-lib): Ditto.
5908 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5909 (gnulib/import/Makefile): Replace gnulib/import with
5910 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5911 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5912 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5913 acx_configure_dir.m4.
5914 * acinclude.m4: Include acx_configure_dir.m4.
5915 * acx_configure_dir.m4: New file.
5916 * aclocal.m4: Regenerate.
a09130f9
PA
5917 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5918 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5919 (GNULIB): New variable.
5920 (GNULIB_STDINT_H): Adjust.
5921 (AC_OUTPUT): Don't output gnulib/Makefile.
5922 * gdb/defs.h: Include build-gnulib/config.h.
5923 * aclocal.m4: Regenerate.
5924 * config.in: Regenerate.
5925 * configure: Regenerate.
5926
5927 * gnulib/Makefile.in: New file.
5928 * gnulib/configure.ac: New file.
5929 * gnulib/aclocal.m4: New file.
5930 * gnulib/config.in: New file.
5931 * gnulib/configure: New file.
c971b7fa
PA
5932 * gnulib/: Re-run gnulib-tool to adjust.
5933
b10faa68
DE
59342012-04-19 Doug Evans <dje@google.com>
5935
5936 * cleanups.h (struct cleanup): Move to cleanups.c.
5937 (make_cleanup_dtor_ftype): New typedef.
5938 (make_cleanup_dtor): Use it.
5939 (ALL_CLEANUPS): Replace with ...
5940 (all_cleanups): ... this. Declare. All uses updated.
5941 * cleanups.c: #include "gdb_assert.h".
5942 (sentinel_cleanup): New static global.
5943 (SENTINEL_CLEANUP): Define.
5944 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5945 (make_my_cleanup2): Assert result is non-NULL.
5946 (all_cleanups): New function.
5947 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5948 of NULL.
5949
d8c267cc
PA
59502012-04-19 Pedro Alves <palves@redhat.com>
5951
5952 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5953 Adjust paths to gnulib imported files.
5954
809277f8
PA
59552012-04-19 Pedro Alves <palves@redhat.com>
5956
5957 * gnulib/: Move whole directory ...
5958 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5959 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5960 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5961 (aclocal_m4_deps): Adjust.
5962 * aclocal.m4: Regenerate.
5963 * configure: Regenerate.
5964 * configure.ac: Adjust AC_OUTPUT output.
5965
aad9eab9
YQ
59662012-04-19 Yao Qi <yao@codesourcery.com>
5967
5968 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5969 (vec.o): New rule.
5970 * vec.c: Move it ...
5971 * common/vec.c: ... here.
5972 * vec.h: Move it ...
5973 * common/vec.h: ... here.
5974
48fe4669
YQ
59752012-04-19 Yao Qi <yao@codesourcery.com>
5976
5977 * gdb-code-style.el: New.
5978
770d76d7
PA
59792012-04-18 Pedro Alves <palves@redhat.com>
5980
5981 Update gnulib from latest git.
5982 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5983
5984 * gnulib/Makefile.am: Update.
5985 * gnulib/dummy.c: Update.
5986 * gnulib/extra/arg-nonnull.h: Update.
5987 * gnulib/extra/c++defs.h: Update.
5988 * gnulib/extra/update-copyright: Update.
5989 * gnulib/extra/warn-on-use.h: Update.
5990 * gnulib/inttypes.in.h: Update.
5991 * gnulib/m4/00gnulib.m4: Update.
5992 * gnulib/m4/extensions.m4: Update.
5993 * gnulib/m4/gnulib-cache.m4: Update.
5994 * gnulib/m4/gnulib-common.m4: Update.
5995 * gnulib/m4/gnulib-comp.m4: Update.
5996 * gnulib/m4/gnulib-tool.m4: Update.
5997 * gnulib/m4/include_next.m4: Update.
5998 * gnulib/m4/inttypes-pri.m4: Update.
5999 * gnulib/m4/inttypes.m4: Update.
6000 * gnulib/m4/longlong.m4: Update.
6001 * gnulib/m4/memchr.m4: Update.
6002 * gnulib/m4/memmem.m4: Update.
6003 * gnulib/m4/mmap-anon.m4: Update.
6004 * gnulib/m4/multiarch.m4: Update.
6005 * gnulib/m4/onceonly.m4: Update.
6006 * gnulib/m4/stddef_h.m4: Update.
6007 * gnulib/m4/stdint.m4: Update.
6008 * gnulib/m4/string_h.m4: Update.
6009 * gnulib/m4/warn-on-use.m4: Update.
6010 * gnulib/m4/wchar_h.m4: Update.
6011 * gnulib/m4/wchar_t.m4: Update.
6012 * gnulib/m4/wint_t.m4: Update.
6013 * gnulib/memchr.c: Update.
6014 * gnulib/memmem.c: Update.
6015 * gnulib/stddef.in.h: Update.
6016 * gnulib/stdint.in.h: Update.
6017 * gnulib/str-two-way.h: Update.
6018 * gnulib/string.in.h: Update.
6019 * gnulib/wchar.in.h: Update.
6020
6021 * gnulib/extra/arg-nonnull.h: Delete.
6022 * gnulib/extra/c++defs.h: Delete.
6023 * gnulib/extra/warn-on-use.h: Delete.
6024 * gnulib/m4/wchar_h.m4: Delete.
6025 * gnulib/m4/wint_t.m4: Delete.
6026 * gnulib/wchar.in.h: Delete.
6027
6028 * gnulib/extra/snippets/arg-nonnull.h: New.
6029 * gnulib/extra/snippets/c++defs.h: New.
6030 * gnulib/extra/snippets/warn-on-use.h: New.
6031
6032 * aclocal.m4: Regenerate.
6033 * config.in: Regenerate.
6034 * configure: Regenerate.
6035 * gnulib/Makefile.in: Regenerate.
6036
174e088e
PA
60372012-04-18 Pedro Alves <palves@redhat.com>
6038
6039 Reimport the update-copyright module from gnulib
6040 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6041
6042 * configure: Regenerate.
6043 * gnulib/Makefile.am: Update.
6044 * gnulib/Makefile.in: Regenerate.
6045 * gnulib/extra/update-copyright: Update.
6046 * gnulib/m4/gnulib-cache.m4: Update.
6047 * gnulib/m4/gnulib-comp.m4: Update.
6048
7f533142
JB
60492012-04-18 Tristan Gingold <gingold@adacore.com>
6050
6051 * configure.ac (aix): Put -lpthread into libs.
6052 * configure: Regenerate.
6053
001822aa
TT
60542012-04-18 Tom Tromey <tromey@redhat.com>
6055
6056 * linespec.c (convert_linespec_to_sals): Don't use
6057 SYMBOL_OBJ_SECTION.
6058 (compare_msymbols): Arguments are minsym_and_objfile, not
6059 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6060
db026a31
PA
60612012-04-18 Pedro Alves <palves@redhat.com>
6062
6063 Revert gnulib/ part of:
6064 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6065 Copyright year update in most files (performed by copyright.sh).
6066
12df843f
JK
60672012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6068
6069 Fix 64-bit constants on 32-bit hosts.
6070 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6071 from unsigned long to ULONGEST.
6072 (read_signed_leb128): Change declaration return type from long to
6073 LONGEST.
6074 (dwarf2_const_value_attr): Change declaration parameter value from long
6075 to LONGEST.
6076 (dwarf2_compute_name): Change variable value from long to LONGEST.
6077 (read_unsigned_leb128): Change return type, variable result and some
6078 casts from unsigned long to ULONGEST.
6079 (read_signed_leb128): Change return type, variable result and some
6080 casts from long to LONGEST.
6081 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6082 value from long to LONGEST.
6083 (dwarf2_const_value): Change variable value from long to LONGEST.
6084 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6085 plongest and hex_string.
6086 * symtab.h (struct general_symbol_info): Change ivalue from long to
6087 LONGEST, remove the comment.
6088 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6089 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6090
14e75d8e
JK
60912012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6092
6093 PR symtab/7259:
6094 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6095 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6096 (ada_discrete_type_low_bound): Fix function comment. Use
6097 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6098 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6099 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6100 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6101 Use TYPE_FIELD_ENUMVAL.
6102 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6103 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6104 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6105 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6106 TYPE_CODE_ENUM.
6107 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6108 * dwarf2read.c (process_enumeration_scope): Likewise.
6109 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6110 field.bitpos.
6111 (class StructMainTypePrettyPrinter): Support also
6112 FIELD_LOC_KIND_ENUMVAL.
6113 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6114 TYPE_CODE_ENUM.
6115 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6116 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6117 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6118 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6119 field enumval.
6120 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6121 accommodate enumval.
6122 (struct call_site): Adjust loc_kind to accommodate enumval.
6123 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6124 (TYPE_FIELD_ENUMVAL): New macros.
6125 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6126 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6127 TYPE_CODE_ENUM.
6128 * p-typeprint.c (pascal_type_print_base): Likewise.
6129 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6130 enumval.
6131 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6132 * python/py-type.c (convert_field): New variable addrstring. Use
6133 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6134 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6135 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6136 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6137 TYPE_CODE_ENUM.
6138 * valprint.c (generic_val_print): Likewise.
6139
380bca97
DE
61402012-04-17 Doug Evans <dje@google.com>
6141
dcc07052
DE
6142 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6143
380bca97
DE
6144 * dwarf2read.c: Whitespace fixes.
6145 (lookup_signatured_type): Tweak comment.
6146 (get_die_type_at_offset): Fix comment.
6147
ec92004f
JB
61482012-04-17 Joel Brobecker <brobecker@adacore.com>
6149
6150 * xcoffread.c (xcoff_secnum_to_sections): New function.
6151 (secnum_to_section, secnum_to_bfd_section): Reimplement
6152 using xcoff_secnum_to_sections. Rename "secnum" parameter
6153 into "n_scnum".
6154 (RECORD_MINIMAL_SYMBOL): Delete.
6155 (record_minimal_symbol): New function.
6156 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6157 by call to record_minimal_symbol and set misc_func_recorded
6158 to 1. Set last_csect_sec to the XCOFF section index instead
6159 of GDB's section_offset index. Update calls to
6160 prim_record_minimal_symbol_and_info to pass the BFD section
6161 as well.
6162
40301fb7
JB
61632012-04-17 Joel Brobecker <brobecker@adacore.com>
6164
6165 * xcoffread.c (read_xcoff_symtab): Delete variables
6166 last_csect_val and last_csect_sec and associated code.
6167
e0088cfd
DE
61682012-04-17 Doug Evans <dje@google.com>
6169
58d5e2c3
DE
6170 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6171 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6172 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6173 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6174
c27f5738
DE
6175 * cleanups.h: New file.
6176 * cleanups.c: New file.
6177 * Makefile.in (SFILES): Add cleanups.c.
6178 (HFILES_NO_SRCDIR): Add cleanups.h.
6179 (COMMON_OBS): Add cleanups.o.
6180 * defs.h (struct cleanup): Moved to cleanups.h.
6181 (do_cleanups,do_final_cleanups): Ditto.
6182 (discard_cleanups,discard_final_cleanups): Ditto
6183 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6184 (save_cleanups,save_final_cleanups): Ditto.
6185 (restore_cleanups,restore_final_cleanups): Ditto.
6186 (null_cleanup): Ditto.
6187 (make_my_cleanup,make_my_cleanup2): Ditto.
6188 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6189 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6190 (do_cleanups,do_final_cleanups): Ditto.
6191 (discard_cleanups,discard_final_cleanups): Ditto
6192 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6193 (save_cleanups,save_final_cleanups): Ditto.
6194 (restore_cleanups,restore_final_cleanups): Ditto.
6195 (null_cleanup): Ditto.
6196 (make_my_cleanup,make_my_cleanup2): Ditto.
6197 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6198
e0088cfd
DE
6199 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6200 make_my_cleanup.
6201 (make_cleanup_dyn_string_delete): Ditto.
6202 (make_cleanup_ui_file_delete): Ditto.
6203 (make_cleanup_ui_out_redirect_pop): Ditto.
6204 (make_cleanup_free_section_addr_info): Ditto.
6205 (make_cleanup_restore_integer): Ditto.
6206 (make_cleanup_unpush_target): Ditto.
6207 (make_cleanup_value_free_to_mark): Ditto.
6208 (make_cleanup_value_free): Ditto.
6209 (make_cleanup_free_so): Ditto.
6210
4dc84fd1
JK
62112012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6212
6213 New option "set debug auto-load".
6214 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6215 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6216 (auto_load_safe_path_vec_update)
6217 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6218 if DEBUG_AUTO_LOAD.
6219 (file_is_auto_load_safe): New parameters debug_fmt and ....
6220 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6221 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6222 caller by explanatory string.
6223 (_initialize_auto_load): Register "set debug auto-load".
6224 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6225 and ....
6226 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6227 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6228 by explanatory string.
6229 * main.c (captured_main): Likewise.
6230 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6231 (source_section_scripts): Likewise.
6232
bccbefd2
JK
62332012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6234
6235 New option "set auto-load safe-path".
6236 * NEWS: New commands "set auto-load safe-path"
6237 and "show auto-load safe-path".
6238 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6239 (auto_load_safe_path, auto_load_safe_path_vec)
6240 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6241 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6242 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6243 (source_gdb_script_for_objfile): New variable is_safe. Call
6244 file_is_auto_load_safe. Return if it is not.
6245 (struct loaded_script): New field loaded.
6246 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6247 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6248 output "Missing" to "No".
6249 (_initialize_auto_load): New variable cmd. Initialize
6250 auto_load_safe_path. Register "set auto-load safe-path",
6251 "show auto-load safe-path" and "add-auto-load-safe-path".
6252 * auto-load.h (maybe_add_script): Add parameter loaded.
6253 (file_is_auto_load_safe): New declaration.
6254 * config.in: Regenerate.
6255 * configure: Regenerate.
6256 * configure.ac: New parameters --with-auto-load-safe-path
6257 and --without-auto-load-safe-path.
6258 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6259 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6260 * main.c (captured_main): Check file_is_auto_load_safe for
6261 LOCAL_GDBINIT.
6262 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6263 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6264 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6265 not.
6266
bf88dd68
JK
62672012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6268
6269 auto-load: Implementation.
6270 * NEWS: New descriptions for "info auto-load",
6271 "info auto-load gdb-scripts", "info auto-load python-scripts",
6272 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6273 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6274 and "show auto-load-scripts". New description for "set auto-load",
6275 "show auto-load", "set auto-load gdb-scripts",
6276 "show auto-load gdb-scripts", "set auto-load python-scripts",
6277 "show auto-load python-scripts", "set auto-load local-gdbinit",
6278 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6279 "show auto-load libthread-db".
6280 * auto-load.c: Remove include python/python-internal.h. Add includes
6281 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6282 cli/cli-setshow.h.
6283 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6284 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6285 (gdbpy_global_auto_load): Rename to ...
6286 (global_auto_load): ... here.
6287 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6288 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6289 (script_language_gdb, source_gdb_script_for_objfile): New.
6290 (struct loaded_script): New field language.
6291 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6292 LANGUAGE.
6293 (maybe_add_script): Add parameter language. Drop redundant
6294 entry.full_path initialization. Initialize entry.language and
6295 (*slot)->language.
6296 (auto_load_objfile_script): Change parameter suffix to language.
6297 Remove the call of maybe_add_script.
6298 Call language->source_script_for_objfile.
6299 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6300 New.
6301 (collect_matching_scripts): Adjust it for
6302 struct collect_matching_scripts_data.
6303 (auto_load_info_scripts_pattern_nl): New variable.
6304 (info_auto_load_scripts): Rename to ...
6305 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6306 for struct collect_matching_scripts_data.
6307 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6308 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6309 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6310 (auto_load_info_cmdlist_get): New.
6311 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6312 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6313 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6314 "info auto-load local-gdbinit".
6315 * auto-load.h (struct script_language): New.
6316 (gdbpy_global_auto_load): Rename to ...
6317 (global_auto_load): ... here.
6318 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6319 (auto_load_local_gdbinit_loaded): New declarations.
6320 (maybe_add_script): New parameter language.
6321 (auto_load_objfile_script): Change parameter suffix to language.
6322 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6323 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6324 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6325 declarations.
6326 * linux-thread-db.c: Include auto-load.h and ctype.h.
6327 (auto_load_thread_db, show_auto_load_thread_db): New.
6328 (struct thread_db_info): New field filename.
6329 (delete_thread_db_info): Call xfree for FILENAME.
6330 (try_thread_db_load): Initialize FILENAME.
6331 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6332 if !AUTO_LOAD_THREAD_DB.
6333 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6334 (_initialize_thread_db): Install auto_load_thread_db
6335 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6336 as "info auto-load libthread-db".
6337 * main.c (captured_main): Rename gdbpy_global_auto_load to
6338 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6339 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6340 (print_gdb_help): Extend the help for 'local init file'.
6341 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6342 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6343 (auto_load_scripts): Rename to ...
6344 (auto_load_python_scripts): ... here, update the comment.
6345 (gdbpy_load_auto_script_for_objfile): New declaration.
6346 (show_auto_load_python_scripts, script_language_python)
6347 (gdbpy_load_auto_script_for_objfile): New.
6348 (source_section_scripts): Refactor the code.
6349 (load_auto_scripts_for_objfile): Rename to ...
6350 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6351 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6352 (info_auto_load_python_scripts): New.
6353 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6354 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6355 Register "set auto-load-scripts" as its deprecated alias. Register
6356 "info auto-load python-scripts". Register "info auto-load-scripts" as
6357 its deprecated alias.
6358 (load_auto_scripts_for_objfile): Rename to ...
6359 (gdbpy_load_auto_scripts_for_objfile): ... here.
6360 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6361 (gdbpy_load_auto_scripts_for_objfile): ... here.
6362
e2207b9a
JK
63632012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6364
6365 auto-load: Move files.
6366 * Makefile.in (SFILES): Add auto-load.c.
6367 (HFILES_NO_SRCDIR): Add auto-load.h.
6368 (COMMON_OBS): Add auto-load.o.
6369 (distclean): Change .gdbinit for gdb-gdb.gdb.
6370 * auto-load.c: New file, with parts from python/py-auto-load.c.
6371 * auto-load.h: New file, with parts from python/python.h.
6372 * configure: Regenerate.
6373 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6374 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6375 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6376 * main.c: Include auto-load.h.
6377 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6378 command.h, observer.h and progspace.h to auto-load.c. Add include
6379 auto-load.h.
6380 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6381 (struct loaded_script, auto_load_pspace_data)
6382 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6383 (hash_loaded_script_entry, eq_loaded_script_entry)
6384 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6385 (maybe_add_script): Move to auto-load.c.
6386 (source_section_scripts): Change maybe_add_script parameters passing,
6387 use script_not_found_warning_print.
6388 (clear_section_scripts, auto_load_objfile_script)
6389 (auto_load_new_objfile, loaded_script_ptr)
6390 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6391 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6392 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6393 auto_load_new_objfile and info_auto_load_scripts initizations to
6394 auto-load.c.
6395 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6396
e4ab2fad
JK
63972012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6398
6399 Code cleanup.
6400 * charset.c (find_charset_names): Remove variables ix and elt.
6401 Use free_char_ptr_vec.
6402 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6403 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6404 debugdir_end. New variable debugdir_len.
6405 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6406 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6407 declarations.
6408 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6409 and elt. Use free_char_ptr_vec.
6410 * source.c (add_path): Remove variables argv, arg and argv_index.
6411 New variables dir_vec, back_to, ix and name.
6412 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6413 make_cleanup_freeargv. Remove variable separator. Simplify the code
6414 no longer expecting DIRNAME_SEPARATOR.
6415 (openp): Remove variable p, p1 and len. New variables dir_vec,
6416 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6417 no longer expecting DIRNAME_SEPARATOR.
6418 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6419 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6420 debugdir_end.
6421 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6422 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6423 (dirnames_to_char_ptr_vec): New functions.
6424
5ee4ed9f
JK
64252012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6426
6427 Code cleanup.
6428 * source.c (add_path): Remove always true conditional 'p == 0' and
6429 unindent its code block.
6430
f41f5e61
PA
64312012-04-17 Pedro Alves <palves@redhat.com>
6432
6433 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6434 (FIELD_BITPOS_LVAL): ... this.
6435 (FIELD_BITPOS): New.
6436 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6437 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6438 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6439 SET_FIELD_BITPOS.
6440 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6441 SET_FIELD_BITPOS.
6442 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6443 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6444 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6445 SET_FIELD_BITPOS.
6446
945b3a32
JK
64472012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6448
6449 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6450 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6451 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6452 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6453 * jv-lang.c (java_link_class_type): Likewise, once.
6454 * stabsread.c (read_enum_type): Likewise.
6455
42476b70
YQ
64562012-04-16 Yao Qi <yao@codesourcery.com>
6457
6458 * common/agent.c (agent_run_command): Add one more parameter `len'.
6459 Update callers.
6460 * common/agent.h: Update declaration.
6461 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6462 Update.
6463 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6464
8264ba82
AG
64652012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6466
6467 PR mi/13393
6468 * value.c (value_actual_type): New function.
6469 * value.h (value_actual_type): New declaration.
6470 * varobj.c (update_type_if_necessary): New function.
6471 (varobj_create): Call value_actual_type instead of
6472 value_type.
6473 (install_dynamic_child): distinct changed and type changed MI variable
6474 objects.
6475 (update_dynamic_varobj_children): Updated for install_dynamic_child
6476 change. All callers updated.
a09130f9 6477 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6478 the value changed and RTTI is used to determine the type.
6479 (create_child_with_value): Call value_actual_type instead of
6480 value_type.
a09130f9 6481 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6482 specify whether the given value should be casted to enclosing type.
6483 All callers updated.
6484
55a8c076
YQ
64852012-04-14 Yao Qi <yao@codesourcery.com>
6486
6487 Import gnulib module inttypes from git
6488 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6489 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6490 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6491 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6492 * aclocal.m4, config.in, configure: Regenerated.
6493 * gnulib/Makefile.am: Update.
6494 * gnulib/Makefile.in: Update.
6495 * gnulib/m4/gnulib-cache.m4: Update.
6496 * gnulib/m4/gnulib-comp.m4: Update.
6497 * gnulib/inttypes.in.h: New.
6498 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6499 * gnulib/m4/inttypes.m4: New.
55a8c076 6500
ca7781d2
LM
65012012-04-13 Luis Machado <lgustavo@codesourcery.com>
6502
6503 * infrun.c (resume): Update PC address to the real PC after
6504 preparing to do displaced stepping.
6505
e319fa28
DE
65062012-04-12 Doug Evans <dje@google.com>
6507
6508 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6509 All callers updated.
6510
15add3f5
MK
65112012-04-12 Mark Kettenis <kettenis@gnu.org>
6512
6513 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6514
52dc124a
DE
65152012-04-12 Doug Evans <dje@google.com>
6516
0e50663e
DE
6517 * dwarf2read.c (create_all_type_units): Renamed from
6518 create_debug_types_hash_table. All callers updated.
6519
52dc124a
DE
6520 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6521 local type_sig to sig_type, type_offset to type_offset_in_tu.
6522 (hash_signatured_type): Renamed from hash_type_signature,
6523 all callers updated.
6524 (eq_signatured_type): Renamed from eq_type_signature,
6525 all callers updated.
6526 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6527 (process_enumeration_scope): Ditto.
6528 (lookup_signatured_type_at_offset): Ditto.
6529 (load_full_type_unit, read_signatured_type): Ditto.
6530
248fd3bf
YQ
65312012-04-12 Yao Qi <yao@codesourcery.com>
6532
6533 * remote.c (async_remote_interrupt): Correct function name in
6534 debug message.
6535 (async_remote_interrupt_twice): Ditto.
6536
bc3aa6c3
DE
65372012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6538
6539 * source.c (find_and_open_source): Consistently pass resulting
6540 full path through xfullpath.
6541
9e529e1d
JK
65422012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6543
6544 Provide more specific displaced-stepping memory error message.
6545 * infrun.c (displaced_step_prepare): New variable status. Call
6546 target_read_memory instead of read_memory, provide more specific
6547 error message.
6548
82e0cec1
TG
65492012-04-11 Tristan Gingold <gingold@adacore.com>
6550
6551 PR gdb/13901
6552 * darwin-nat.c (darwin_execvp): Revert previous patch.
6553
d987a266
TG
65542012-04-11 Tristan Gingold <gingold@adacore.com>
6555
6556 PR gdb/13901
6557 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6558 in case of change.
6559
016b7430
TG
65602012-04-11 Tristan Gingold <gingold@adacore.com>
6561
6562 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6563 warning.
6564
06fc020f
SCR
65652012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6566
6567 New command 'explore' which helps explore values and types in
6568 scope.
6569 * NEWS: Add an entry about the new 'explore' command.
6570 * data-directory/Makefile.in: Add gdb/command/explore.py
6571 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6572 command using the GDB Python API.
06fc020f 6573
de0919f8 65742012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
6575
6576 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6577 extension in jump target calculation.
6578
de0919f8 65792012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
6580
6581 * mips-tdep.c (mips32_next_pc): Handle JALX.
6582
2f26ef89
YQ
65832012-04-10 Yao Qi <yao@codesourcery.com>
6584
6585 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6586
2e505b66
YQ
65872012-04-10 Yao Qi <yao@codesourcery.com>
6588
6589 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6590 and gnulib/m4/gnulib-tool.m4.
6591
0d99eb77
DE
65922012-04-10 Doug Evans <dje@google.com>
6593
6594 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6595 (load_partial_dies): Clarify comment.
6596 (find_partial_die): Support rereading type units.
6597 Clarify CU handling, if we know offset is in CU, don't search for the
6598 containing CU. Add comment regarding memory waste.
6599
9a82b8ff
L
66002012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6601
6602 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6603 i386/x32-avx and i386/x32-avx-linux.
6604 (i386/x32-expedite): New.
6605 (i386/x32-linux-expedite): Likewise.
6606 (i386/x32-avx-expedite): Likewise.
6607 (i386/x32-avx-linux-expedite): Likewise.
6608 ($(outdir)/i386/x32.dat): Likewise.
6609 ($(outdir)/i386/x32-linux.dat): Likewise.
6610 ($(outdir)/i386/x32-avx.dat): Likewise.
6611 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6612
6613 * features/i386/x32-avx-linux.xml: New file.
6614 * features/i386/x32-avx.xml: Likewise.
6615 * features/i386/x32-core.xml: Likewise.
6616 * features/i386/x32-linux.xml: Likewise.
6617 * features/i386/x32.xml: Likewise.
6618
6619 * features/i386/x32-avx-linux.c: New. Generated.
6620 * features/i386/x32-avx.c: Likewise.
6621 * features/i386/x32-linux.c: Likewise.
6622 * features/i386/x32.c: Likewise.
6623 * regformats/i386/x32-avx-linux.dat: Likewise.
6624 * regformats/i386/x32-avx.dat: Likewise.
6625 * regformats/i386/x32-linux.dat: Likewise.
6626 * regformats/i386/x32.dat: Likewise.
6627
ee41036f
TG
66282012-04-10 Tristan Gingold <gingold@adacore.com>
6629
6630 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6631 code to kill the inferior.
6632
a7aa5b8a
MK
66332012-04-09 Mark Kettenis <kettenis@gnu.org>
6634
6635 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6636 defines.
6637 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6638 defines.
a09130f9 6639 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
6640 (yyvsp): New defines.
6641 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6642 defines.
6643 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6644 defines.
6645 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6646 defines.
6647 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6648 defines.
6649 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6650 defines.
6651
fb57d452
MK
66522012-04-09 Mark Kettenis <kettenis@gnu.org>
6653
a09130f9 6654 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
6655 (sparc64_store_arguments): Fix coding style.
6656
cdc7b32f
MK
66572012-04-07 Mark Kettenis <kettenis@gnu.org>
6658
6659 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6660 complex floats, adjust some related comments and tighten a related
6661 assertion.
6662 (sparc64_extract_return_value): Handle complex floats.
6663
7adf1e79
DE
66642012-04-07 Doug Evans <dje@google.com>
6665
6666 * dwarf2read.c (load_partial_dies): Change condition to assert.
6667
50f1ae7b
DE
66682012-04-06 Doug Evans <dje@google.com>
6669
6670 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6671 "mov %rsp,%rbp".
6672
55fa75c3
KB
66732012-04-05 Kevin Buettner <kevinb@redhat.com>
6674
6675 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6676 fencepost error.
6677 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6678 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6679 architecture.
6680
40e084e1
KS
66812012-04-05 Keith Seitz <keiths@redhat.com>
6682
6683 * linespec.c (decode_compound): Remove.
6684 (enum offset_relative_sign): New enum.
6685 (struct line_offset): New struct.
6686 (struct linespec): New struct.
6687 (struct linespec_state): Move file_symtabs,
6688 user_filename, and user_function into struct linespec.
6689 Make result an anonymous struct holding vectors of
6690 symbolp and minsym_and_objfile_d.
6691 Add language member.
6692 (enum ls_token_type): New enum.
6693 (linespec_keywords): New array.
6694 (struct ls_token): New struct.
6695 (struct ls_parser): New struct.
6696 (linespec_lexer_lex_number): New function.
6697 (linespec_lexer_lex_keyword): New function.
6698 (is_ada_operator): New function.
6699 (skip_quote_char): New function.
6700 (copy_token_string): New function.
6701 (is_closing_quote_enclosed): New function.
6702 (find_parameter_list_end): New function.
6703 (linespec_lexer_lex_string): New function.
6704 (linespec_lexer_lex_one): New function.
6705 (linespec_lexer_consume_token): New function.
6706 (linespec_lexer_peek_token): New function.
6707 (cplusplus_error): Remove unused function.
6708 (find_methods): Update comment.
6709 (find_toplevel_char): Return const.
6710 (is_objc_method_format): Remove unused function.
6711 (find_toplevel_string): New function.
6712 (is_linespec_boundary): Remove.
6713 (symbol_not_found_error): New function.
6714 (find_method_overload_end): Remove function.
6715 (unexpected_linespec_error): New function.
6716 (keep_name_info): Remove.
6717 (linespec_parse_line_offset): New function.
6718 (linespec_parse_basic): New function.
6719 (canonicalize_linespec): New function.
6720 (decode_line_internal): Remove.
6721 (create_sals_line_offset): New function adapted from
6722 decode_all_digits.
6723 (convert_linespec_to_sals): New function.
6724 (parse_linespec): New function.
6725 (linespec_parser_new): New function.
6726 (linespec_state_destructor): Change parameter type to
6727 struct linespec_state *.
6728 Add language parameter.
6729 Remove freeing of moved members.
6730 (linespec_parser_delete): New function.
6731 (decode_line_full): Use parse_linespec and linespec_parser_new.
6732 (decode_line_1): Likewise.
6733 (decode_indirect): Rename to ...
6734 (linespec_expression_to_pc): ... this and rewrite
6735 to simply find CORE_ADDR, storing this result for later
6736 conversion to SALs.
6737 (locate_first_half): Remove.
6738 (deocde_objc): Add parameter LS.
6739 Initialize new struct collect_info members.
6740 Handle minimal symbols, too.
6741 (decode_compound): Delete.
6742 (lookup_prefix_sym): Rewrite.
6743 (compare_msymbols): New function.
6744 (find_method): Rewrite.
6745 Do not call cplusplus_error.
6746 (symtabs_from_filename): Rewrite.
6747 (collect_function_symbols): Delete.
6748 (find_function_symbols): Rewrite without ARGPTR-style
6749 processing.
6750 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6751 (decode_dollar): Adapted and renamed to ...
6752 (linespec_parse_variable): ... this.
6753 (find_linespec_symbols): New function.
6754 (decode_label): Adapted and renamed to ...
6755 (find_label_symbols): ... this.
6756 (decode_digits_list_mode): Add and use LS argument.
6757 (decode_digits_ordinary): Likewise.
6758 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6759 If in list mode, allow any symbol class. Otherwise, only
6760 permit LOC_BLOCK symbols.
6761 (minsym_found): Update comments.
6762 (search_minsyms_for_name): Do not convert the matching symbol
6763 into a SAL. Simply push the symbol and objfile into the
6764 result vector.
6765 (decode_variable): Delete. Contents adapted into
6766 find_linespec_symbols.
6767
6768 * cp-support.c (SKIP_SPACE): Remove.
6769 (operator_tokens): Remove unused global.
6770 (cp_validate_operator): Remove.
6771 * cp-support.h (cp_validate_operator): Remove declaration.
6772
a72c8f6a
JK
67732012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6774
6775 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6776 for TYPE_VPTR_FIELDNO.
6777 * valprint.c (valprint_check_validity): Make it global, move the
6778 function comment ...
6779 * value.h (valprint_check_validity): ... to this new declaration.
6780
cf9bb588
TG
67812012-04-02 Tristan Gingold <gingold@adacore.com>
6782
6783 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6784 the STATE32 api for i386 state.
6785 (i386_darwin_store_inferior_registers): Likewise.
6786
17092398
TG
67872012-04-02 Tristan Gingold <gingold@adacore.com>
6788
6789 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6790 SS offset.
6791 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6792 format_string.
6793
ece0061f
TG
67942012-04-02 Tristan Gingold <gingold@adacore.com>
6795
6796 PR gdb/13901
d987a266 6797 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 6798
cf65ecd3
JK
67992012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6800
6801 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6802
9bc3523d
TT
68032012-03-30 Tom Tromey <tromey@redhat.com>
6804
6805 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6806 of TRY_CATCH. Fix error handling.
6807 * python/py-value.c (convert_value_from_python): Move 'old'
6808 declaration to innermost scope.
6809
b1ed564a
JB
68102012-03-29 Joel Brobecker <brobecker@adacore.com>
6811 Andrey Smirnov <andrew.smirnov@gmail.com>
6812
6813 -Wshadow warning fix.
6814 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6815 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6816 Adjust code accordingly.
6817
cb8e9b97
JB
68182012-03-29 Joel Brobecker <brobecker@adacore.com>
6819
6820 * ada-lang.c (symbol_completion_add): Rename parameter
6821 "encoded" into "encoded_p". Ajust code and documentation
6822 accordingly.
6823
c0af1706
JB
68242012-03-29 Joel Brobecker <brobecker@adacore.com>
6825 Andrey Smirnov <andrew.smirnov@gmail.com>
6826
6827 -Wshadow warning fix.
6828 * ada-lang.c (symbol_completion_add): Rename parameter
6829 "wild_match" into wild_match_p. Update code and documentation
6830 accordingly.
6831
6ea35997
JB
68322012-03-29 Joel Brobecker <brobecker@adacore.com>
6833
6834 * ada-lang.c (symbol_completion_match): Rename parameter
6835 "encoded" into "encoded_p". Ajust code and documentation
6836 accordingly.
6837
e701b3c0
JB
68382012-03-29 Joel Brobecker <brobecker@adacore.com>
6839 Andrey Smirnov <andrew.smirnov@gmail.com>
6840
6841 -Wshadow warning fix.
6842 * ada-lang.c (symbol_completion_match): Rename parameter
6843 "wild_match" into "wild_match_p". Adjust code and function
6844 documentation accordingly.
6845
5e2336be
JB
68462012-03-29 Joel Brobecker <brobecker@adacore.com>
6847 Andrey Smirnov <andrew.smirnov@gmail.com>
6848
6849 -Wshadow warning fix.
6850 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6851 "symbol_info" into "info". Adjust code accordingly.
6852 (ada_lookup_symbol): Likewise.
6853
9f88c959
JB
68542012-03-29 Joel Brobecker <brobecker@adacore.com>
6855
6856 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6857 of this function's documentation.
6858
82ccd55e
JB
68592012-03-29 Joel Brobecker <brobecker@adacore.com>
6860 Andrey Smirnov <andrew.smirnov@gmail.com>
6861
6862 -Wshadow warning fix.
6863 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6864 variable into "wild_match_p". Adjust code accordingly.
6865
d0a8ab18
JB
68662012-03-29 Joel Brobecker <brobecker@adacore.com>
6867 Andrey Smirnov <andrew.smirnov@gmail.com>
6868
6869 -Wshadow warning fix.
6870 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6871 parameter into "wild_match_p". Adjust code accordingly.
6872 Document this parameter in the function description.
6873
48b78332
JB
68742012-03-29 Joel Brobecker <brobecker@adacore.com>
6875 Andrey Smirnov <andrew.smirnov@gmail.com>
6876
6877 -Wshadow warning fix.
6878 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6879 "wild_match" parameter to "wild_match_p" (-Wshadow).
6880
2e6e0353
JB
68812012-03-29 Joel Brobecker <brobecker@adacore.com>
6882
6883 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6884 in function documentation.
6885
dc4024cd
JB
68862012-03-29 Joel Brobecker <brobecker@adacore.com>
6887 Andrey Smirnov <andrew.smirnov@gmail.com>
6888
6889 -Wshadow warning fix.
6890 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6891 variable into wild_match_p. Adjust code accordingly.
6892
6c88661c
JB
68932012-03-29 Joel Brobecker <brobecker@adacore.com>
6894 Andrey Smirnov <andrew.smirnov@gmail.com>
6895
6896 * ada-valprint.c (ada_val_print_1): Move the code handling
6897 TYPE_CODE_ENUM inside its own lexical block. Declare
6898 variables len and val there, instead of in the function's
6899 top level block. Avoid declaring deref_val again in a way
6900 that shadows another variable of the same name declared
6901 in one of the up-level blocks. Just re-use the up-level
6902 variable instead.
6903
4e5c77fe
JB
69042012-03-29 Joel Brobecker <brobecker@adacore.com>
6905
6906 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6907 Replace block_found argument by symbol_info. Adjust
6908 implementation accordingly. Add function documentation.
6909 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6910 Fix documentation.
6911 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6912 * ada-exp.y (write_object_renaming): Adjust to new
6913 ada_lookup_encoded_symbol API.
6914
1c0ac8c7
JB
69152012-03-29 Joel Brobecker <brobecker@adacore.com>
6916
6917 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6918 documentation.
6919
2aaed979
KB
69202012-03-28 Rathish C <rathish.c@kpitcummins.com>
6921
6922 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6923 (v850_register_name): Add the mpu and fpu register names.
6924 (v850e_register_name): Add the mpu and fpu register names.
6925 (v850e2_register_name): New function.
a09130f9 6926 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
6927 bfd_mach_v850e2v3.
6928
927fbba6
JB
69292012-03-28 Joel Brobecker <brobecker@adacore.com>
6930
6931 * NEWS: Add entry for Ada varobj support.
6932
d32cafc7
JB
69332012-03-28 Joel Brobecker <brobecker@adacore.com>
6934
6935 * varobj.c (default_value_is_changeable_p): New function,
6936 extracted from varobj_value_is_changeable_p. Add declaration.
6937 (ada_value_is_changeable_p): New function, extracted from
6938 varobj_value_is_changeable_p. Add declaration.
6939 (struct language_specific): New field "value_is_changeable_p".
6940 (languages): Add entries for new field.
6941 (varobj_create): Set language before calling install_new_value.
6942 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6943 "value_is_changeable_p" language callback.
6944
181875a4
JB
69452012-03-28 Joel Brobecker <brobecker@adacore.com>
6946
6947 * ada-varobj.h, ada-varobj.c: New files.
6948 * Makefile.in (SFILES): Add ada-varobj.c.
6949 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6950 (COMMON_OBS): Add ada-varobj.o.
6951
7a290c40
JB
69522012-03-28 Joel Brobecker <brobecker@adacore.com>
6953
6954 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6955 (struct language_specific): New field "value_has_mutated".
6956 (languages): Set field "value_has_mutated" in each entry of array.
6957 (varobj_value_has_mutated): New function.
6958 (varobj_udpdate): Add handling of type mutation.
6959 (value_of_root): Add handling of type mutation.
6960 (ada_value_has_mutated): New function.
6961
ca9b8b9c
PA
69622012-03-28 Pedro Alves <palves@redhat.com>
6963
6964 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6965 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6966
cc0265cd
TT
69672012-03-28 Tom Tromey <tromey@redhat.com>
6968
6969 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6970 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6971 before returning.
6972
3ad2ec6f
TT
69732012-03-28 Tom Tromey <tromey@redhat.com>
6974
6975 * .dir-locals.el: New file.
6976
4a6510ba
PA
69772012-03-28 Pedro Alves <palves@redhat.com>
6978
6979 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6980
5a75128f
JB
69812012-03-28 Joel Brobecker <brobecker@adacore.com>
6982
6983 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6984 handling for r0.
6985
f99d8bf4
PA
69862012-03-27 Pedro Alves <palves@redhat.com>
6987
6988 Eliminate struct ui_stream.
6989
6990 * ui-out.h (struct ui_stream): Delete.
6991 (ui_out_field_stream): Adjust prototype.
6992 (ui_out_stream_new, ui_out_stream_delete)
6993 (make_cleanup_ui_out_stream_delete): Delete declarations.
6994 * ui-out.c (ui_out_field_stream): Change prototype to take a
6995 ui_file instead of a ui_stream. Adjust.
6996 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6997 (make_cleanup_ui_out_stream_delete): Delete.
6998 * breakpoint.c (print_breakpoint_location)
6999 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7000 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7001 * disasm.c (dump_insns): Ditto.
7002 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7003 prototype.
7004 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7005 ui_stream/ui_out_stream_new.
7006 * infcmd.c (print_return_value): Ditto.
7007 * osdata.c (info_osdata_command): Don't allocate a local
7008 ui_stream.
7009 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7010 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7011 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7012 allocate a local ui_stream.
7013 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7014 instead of ui_stream/ui_out_stream_new.
7015 (list_args_or_locals): Don't allocate a local ui_stream.
7016 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7017 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7018 ui_stream/ui_out_stream_new.
7019 * cli/cli-setshow.c (do_setshow_command): Ditto.
7020
6350a066 70212012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7022
6350a066
PA
7023 * arm-linux-tdep.c (arm_linux_init_abi): Call
7024 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7025 * arm-tdep.c (arm_process_record): New function.
7026 (deallocate_reg_mem): New function.
7027 (decode_insn): New function.
7028 (thumb_record_branch): New function.
7029 (thumb_record_ldm_stm_swi(): New function.
7030 (thumb_record_misc): New function.
7031 (thumb_record_ld_st_stack): New function.
7032 (thumb_record_ld_st_imm_offset): New function.
7033 (thumb_record_ld_st_reg_offset(): New function.
7034 (thumb_record_add_sub_cmp_mov): New function.
7035 (thumb_record_shift_add_sub): New function.
7036 (arm_record_coproc_data_proc): New function.
7037 (arm_record_coproc): New function.
7038 (arm_record_b_bl): New function.
7039 (arm_record_ld_st_multiple): New function.
7040 (arm_record_ld_st_reg_offset): New function.
7041 (arm_record_ld_st_imm_offset): New function.
7042 (arm_record_data_proc_imm): New function.
7043 (arm_record_data_proc_misc_ld_str): New function.
7044 (arm_record_extension_space): New function.
7045 (arm_record_strx): New function.
7046 (sbo_sbz): New function.
7047 (struct insn_decode_record): New structure for arm insn record.
7048 (REG_ALLOC): New macro for reg allocations.
7049 (MEM_ALLOC): New macro for memory allocations.
7050 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7051
89e028e2
AS
70522012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7053
7054 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7055 (store_register): Likewise.
7056
6350a066 70572012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7058
6350a066 7059 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7060
5b43fab2
JK
70612012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7062
7063 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7064 Describe also the option "auto".
7065
b5453b95
RH
70662012-03-22 Richard Henderson <rth@redhat.com>
7067
7068 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7069 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7070
227ee7fc
RH
70712012-03-22 Richard Henderson <rth@redhat.com>
7072
7073 * jit.c (jit_read_code_entry): Compute alignment and offset of
7074 int64_t member before computing entry_size.
7075
7b282c5a
SCR
70762012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7077
7078 Python scripting: Add new method Value.referenced_value to
7079 gdb.Value which can dereference pointer as well as reference
7080 values.
7081 * NEWS: Add entry under 'Python scripting' about the new method
7082 Value.referenced_value on gdb.Value objects.
7083 * python/py-value.c (valpy_referenced_value): New function
7084 defining a new method on gdb.Value objects which can dereference
7085 pointer and reference values.
7086
0c83539f
SCR
70872012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7088
7089 * MAINTAINERS (Write After Approval): Add myself to the list.
7090
7ccffd7c
KB
70912012-03-21 Kevin Buettner <kevinb@redhat.com>
7092
7093 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7094 in addition to "main".
7095
bd0b9f9e
JB
70962012-03-21 Joel Brobecker <brobecker@adacore.com>
7097
7098 * expression.h (op_name): Add declaration.
7099 * expprint.c (op_name): Remove declaration. Make non-static.
7100 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7101
a5362b9a
TS
71022012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7103
7104 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7105 of struct siginfo.
7106 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7107 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7108 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7109 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7110 (linux_nat_get_siginfo): Likewise.
7111 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7112 (linux_nat_get_siginfo): Likewise.
7113 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7114 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7115 * procfs.c (gdb_siginfo_t): Likewise.
7116
adcadaab
MF
71172012-03-21 Mike Frysinger <vapier@gentoo.org>
7118
7119 * .gitignore: Ignore more files.
7120
e278ad5b
PA
71212012-03-20 Pedro Alves <palves@redhat.com>
7122
7123 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7124 returns.
7125
741e63d7
YQ
71262012-03-20 Yao Qi <yao@codesourcery.com>
7127
7128 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7129 comment.
7130
b64f50a1
JK
71312012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7132
7133 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7134 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7135 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7136 sect_offset.
7137 * dwarf2expr.h (cu_offset, sect_offset): New types.
7138 (struct dwarf_expr_context_funcs) <dwarf_call>
7139 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7140 sect_offset.
7141 (struct dwarf_expr_context) <len>: Improve the comment.
7142 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7143 cu_offset and sect_offset.
7144 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7145 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7146 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7147 * dwarf2loc.h: Include dwarf2expr.h.
7148 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7149 and sect_offset.
7150 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7151 Improve the comment.
7152 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7153 (struct signatured_type, struct line_header, struct partial_die_info)
7154 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7155 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7156 (get_die_type_at_offset, create_cus_from_index)
7157 (create_signatured_type_table_from_index, dw2_get_file_names)
7158 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7159 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7160 (create_debug_types_hash_table, process_psymtab_comp_unit)
7161 (load_partial_comp_unit, create_all_comp_units)
7162 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7163 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7164 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7165 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7166 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7167 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7168 (find_partial_die, read_attribute_value, lookup_die_type)
7169 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7170 (is_ref_attr): New function comment.
7171 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7172 Use cu_offset and sect_offset.
7173 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7174 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7175 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7176 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7177 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7178 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7179 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7180 sect_offset.
7181
e97a38f7
JK
71822012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7183
7184 Code cleanup.
7185 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7186 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7187 with xfree.
7188 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7189
8320cc4f
JK
71902012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7191
7192 * NEWS: Describe new options --init-command=FILE, -ix and
7193 --init-eval-command=COMMAND, -iex.
7194 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7195 CMDARG_INIT_COMMAND.
7196 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7197 "init-command", "init-eval-command", "ix" and "iex" to the variable
7198 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7199 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7200 (print_gdb_help): Describe --init-command=FILE, -ix and
7201 --init-eval-command=COMMAND, -iex.
7202
26743505
JK
72032012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7204
7205 Code cleanup.
7206 * main.c (struct cmdarg): Move it here from main. Add more comments.
7207 (cmdarg_s, VEC (cmdarg_s)): New.
7208 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7209 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7210 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7211 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7212 of CMDARG.
7213
5ff5c7b4
TT
72142012-03-19 Tom Tromey <tromey@redhat.com>
7215
7216 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7217
ab260dad
JK
72182012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7219
7220 PR symtab/13777
7221 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7222 GCC >=4.5.
7223
c366c1f0
TT
72242012-03-16 Chris January <chris.january@allinea.com>
7225
7226 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7227 of clear.
7228
e16edb45
TT
72292012-03-16 Chris January <chris.january@allinea.com>
7230
7231 * source.c (add_path): Use memmove instead of strcpy because the
7232 strings overlap.
7233
53ba8333
JB
72342012-03-16 Joel Brobecker <brobecker@adacore.com>
7235
7236 * value.h (set_value_parent): Add declaration.
7237 * value.c (set_value_parent): New function.
7238 (value_address): If VALUE->PARENT is not NULL, then use it as
7239 the base address instead of VALUE->LOCATION.address.
7240 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7241 the same as OBJ's address. Adjust V's offset accordingly.
7242 Set V's parent.
7243
481860b3
GB
72442012-03-16 Gary Benson <gbenson@redhat.com>
7245
7246 PR breakpoints/10738
7247 * dwarf2read.c (use_deprecated_index_sections): New global.
7248 (struct partial_die_info): New member may_be_inlined.
7249 (read_partial_die): Set may_be_inlined where appropriate.
7250 (add_partial_subprogram): Add partial symbols for partial
7251 DIEs that may be inlined.
7252 (new_symbol_full): Add inlined subroutines to the current
7253 scope.
7254 (write_psymtabs_to_index): Bump version number.
7255 (dwarf2_read_index): Read only version 6 indices unless
7256 use_deprecated_index_sections is set.
7257 * linespec.c (symbol_and_data_callback): New structure.
7258 (iterate_inline_only): New function.
7259 (iterate_over_all_matching_symtabs): New argument
7260 "include_inline". If nonzero, also call the callback for
7261 symbols representing inlined subroutines.
7262 (lookup_prefix_sym): Pass extra argument to the above.
7263 (find_function_symbols): Likewise.
7264 (add_matching_symbols_to_info): Likewise.
7265 * NEWS: Mention that GDB can now set breakpoints on inlined
7266 functions.
7267
d0e7e15a
PM
72682012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7269
7270 * p-typeprint.c (pascal_type_print_method_args):
7271 Fix display of parameter of methods.
7272
3d354654
PM
72732012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7274
7275 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7276 Add missing prototype.
7277
cafe75b0
JK
72782012-03-16 Yao Qi <yao@codesourcery.com>
7279 Jan Kratochvil <jan.kratochvil@redhat.com>
7280
7281 Fix false compilation warning.
7282 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7283
25f8c692
JL
72842012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7285 Pedro Alves <pedro@codesourcery.com>
7286
7287 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7288 (arm_register_g_packet_guesses): New function.
7289 (arm_gdbarch_init): Don't force a target description with
7290 registers when the executable is detected as M-profile. Instead
7291 set gdbarch->tdep->is_m. Register `g' packet guesses.
7292 (_initialize_arm_tdep): Initialize the new target description.
7293 * features/arm-with-m-fpa-layout.xml: New description.
7294 * features/arm-with-m-fpa-layout.c: New, generated.
7295
35c63cd8
JB
72962012-03-15 Joel Brobecker <brobecker@adacore.com>
7297
7298 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7299 Update function description.
7300 (insert_bp_location): Do not wipe bl->target_info out.
7301 * mem-break.c: #include "gdb_string.h".
7302 (default_memory_insert_breakpoint): Do not call target_read_memory
7303 with a pointer to the breakpoint's shadow_contents buffer. Use
7304 a local buffer instead.
7305 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7306
57651221
TT
73072012-03-15 Tom Tromey <tromey@redhat.com>
7308
7309 * NEWS: Mention "info vtbl", not "info vtable".
7310 * cp-support.c (info_vtbl_command): Fix comment.
7311 (_initialize_cp_support): Fix text.
7312
410528f0
TT
73132012-03-15 Tom Tromey <tromey@redhat.com>
7314
7315 * cp-valprint.c (cp_print_value_fields): Use
7316 print_function_pointer_address for vtable slot.
7317
c4aeac85
TT
73182012-03-15 Tom Tromey <tromey@redhat.com>
7319
7320 * gnu-v3-abi.c (struct value_and_voffset): New.
7321 (hash_value_and_voffset, eq_value_and_voffset)
7322 (compare_value_and_voffset, compute_vtable_size)
7323 (print_one_vtable, gnuv3_print_vtable): New functions.
7324 (init_gnuv3_ops): Initialize 'print_vtable' field.
7325 * cp-support.c (info_vtbl_command): New function.
7326 (_initialize_cp_support): Add "info vtbl".
7327 * cp-abi.h (cplus_print_vtable): Declare.
7328 (struct cp_abi_ops) <print_vtable>: New field.
7329 * cp-abi.c (cplus_print_vtable): New function.
7330 * NEWS: Update.
7331
95cbceff
TT
73322012-03-15 Tom Tromey <tromey@redhat.com>
7333
7334 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7335 iterate_over_symbols.
7336
589b4a32
DE
73372012-03-14 Doug Evans <dje@google.com>
7338
7339 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7340 DW_OP_GNU_parameter_ref.
7341
e837f12a
JK
73422012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7343
7344 Fix double prompt of 'interpreter-exec mi'.
7345 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7346 (mi_interpreter_resume): use it.
7347 (mi_execute_command_input_handler): New function.
7348 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7349 mi_execute_command_input_handler.
7350
ff1e4526 73512012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
7352
7353 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7354 prototype.
7355 (darwin_debug_port_info): Make static.
7356 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7357 * machoread.c (_initialize_machoread): Add prototype.
7358 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7359 (i386_darwin_set_control, i386_darwin_get_control)
7360 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7361 i386_darwin_get_status, i386_darwin_get_control):
7362 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7363
d8a5d6ee
JB
73642012-03-13 Joel Brobecker <brobecker@adacore.com>
7365
7366 * ax-gdb.c (gen_usual_unary): Remove special handling of
7367 enum and bool types.
7368
af381b8c
JB
73692012-03-13 Joel Brobecker <brobecker@adacore.com>
7370
7371 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7372
786c562f
JB
73732012-03-13 Joel Brobecker <brobecker@adacore.com>
7374
7375 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7376
e3ebf1bb
JB
73772012-03-13 Chris January <chris.january@allinea.com>
7378
7379 * aix-thread.c (fill_sprs): Store the floating point registers
7380 at the correct offsets into vals.
7381
c5b7e1cb
DE
73822012-03-13 Doug Evans <dje@google.com>
7383
16899756
DE
7384 * NEWS: Mention symbol-reloading has been deleted.
7385 * symfile.c (symbol_reloading): Delete.
7386 (show_symbol_reloading): Delete.
7387 (_initialize_symfile): Delete set/show symbol-reloading.
7388
c5b7e1cb
DE
7389 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7390 read_in_chain until we have successfully read it in.
7391 (load_full_comp_unit): Ditto.
7392 (read_signatured_type): Add comment.
7393
46cb6474
JB
73942012-03-13 Chris January <chris.january@allinea.com>
7395
7396 * stabsread.c (fix_common_block): Change type of valu argument
7397 to CORE_ADDR.
7398
76219d77
JB
73992012-03-13 Chris January <chris.january@allinea.com>
7400
7401 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7402 instruction.
7403
87b0bb13
JK
74042012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7405
7406 * common/linux-procfs.c (linux_proc_get_int): New, from
7407 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7408 field.
7409 (linux_proc_get_tgid): Only call linux_proc_get_int.
7410 (linux_proc_get_tracerpid): New.
7411 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7412 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7413 linux_proc_pid_has_state.
7414 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7415 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7416 (linux_ptrace_attach_warnings): New.
7417 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7418 New declaration.
7419 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7420 (linux_nat_attach): New variables ex, buffer, message and message_s.
7421 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7422
5f572dec
JK
74232012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7424
7425 * Makefile.in (linux-ptrace.o): New.
7426 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7427 from linux-nat.c.
7428 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7429 * common/linux-ptrace.c: New file.
7430 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7431 * config/arm/linux.mh: Likewise.
7432 * config/i386/linux.mh: Likewise.
7433 * config/i386/linux64.mh: Likewise.
7434 * config/ia64/linux.mh: Likewise.
7435 * config/m32r/linux.mh: Likewise.
7436 * config/m68k/linux.mh: Likewise.
7437 * config/mips/linux.mh: Likewise.
7438 * config/pa/linux.mh: Likewise.
7439 * config/powerpc/linux.mh: Likewise.
7440 * config/powerpc/ppc64-linux.mh: Likewise.
7441 * config/powerpc/spu-linux.mh: Likewise.
7442 * config/s390/s390.mh: Likewise.
7443 * config/sparc/linux.mh: Likewise.
7444 * config/sparc/linux64.mh: Likewise.
7445 * config/xtensa/linux.mh: Likewise.
7446 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7447 common/linux-procfs.c.
7448 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7449
44f238bb
PA
74502012-03-13 Hui Zhu <teawater@gmail.com>
7451 Pedro Alves <palves@redhat.com>
7452
7453 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7454 CREATE_BREAKPOINT_FLAGS_INSERTED.
7455 (create_breakpoint_sal, create_breakpoints_sal)
7456 (base_breakpoint_create_breakpoints_sal)
7457 (tracepoint_create_breakpoints_sal)
7458 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7459 down.
7460 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7461 (ftrace_command, strace_command): Adjust.
7462 (create_tracepoint_from_upload): Pass
7463 CREATE_BREAKPOINT_FLAGS_INSERTED.
7464 * breakpoint.h (enum breakpoint_create_flags): New.
7465 (create_breakpoint): New flags parameter.
7466 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7467 * python/py-breakpoint.c (bppy_init): Adjust.
7468 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7469 * spu-tdep.c (spu_catch_start): Adjust.
7470
1e51243a
PA
74712012-03-13 Pedro Alves <palves@redhat.com>
7472 Hui Zhu <teawater@gmail.com>
7473 Yao Qi <yao@codesourcery.com>
7474
7475 * remote.c (struct remote_state): New field `starting_up'.
7476 (remote_start_remote): Set and clear it.
7477 (remote_can_download_tracepoint): If starting up, return false.
7478
fa3064dd
YQ
74792012-03-13 Yao Qi <yao@codesourcery.com>
7480
7481 * inferior.h (struct inferior): Remove fields any_syscall_count,
7482 syscalls_counts and total_syscalls_count. Move them to new
7483 struct catch_syscall_inferior_data in breakpoint.c.
7484 * breakpoint.c: Call DEF_VEC_I(int).
7485 (struct catch_syscall_inferior_data): New.
7486 (get_catch_syscall_inferior_data): New.
7487 (catch_syscall_inferior_data_cleanup): New.
7488 (insert_catch_syscall): Update to access data in
7489 struct catch_syscall_inferior_data.
7490 (insert_catch_syscall): Likewise.
7491 (remove_catch_syscall): Likewise.
7492 (remove_catch_syscall): Likewise.
7493 (is_syscall_catchpoint_enabled): Likewise.
7494 (add_catch_command): Likewise.
7495 (_initialize_breakpoint): Register cleanup.
7496 * breakpoint.h: Removed DEF_VEC_I(int).
7497 * dwarf2loc.c: Call DEF_VEC_I(int).
7498 * mi/mi-main.c: Likewise.
7499
460fac3c
MK
75002012-03-12 Mark Kettenis <kettenis@gnu.org>
7501
7502 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7503
e1aca11e
JB
75042012-03-12 Chris January <chris.january@allinea.com>
7505
7506 * aix-thread.c (_initialize_aix_thread): Add prototype.
7507 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7508 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7509
649c7061
JB
75102012-03-12 Joel Brobecker <brobecker@adacore.com>
7511
7512 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7513 include of "amd64-nat.h".
7514
0b49e518
TT
75152012-03-12 Tom Tromey <tromey@redhat.com>
7516
7517 * buildsym.c (record_pending_block): Now static.
7518 * buildsym.h: (record_pending_block): Remove.
7519
fd24fa94
AT
75202012-03-12 Andreas Tobler <andreast@fgznet.ch>
7521
7522 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7523
ba919b58
TT
75242012-03-09 Tom Tromey <tromey@redhat.com>
7525
7526 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7527 producer_is_gxx_lt_4_6>: New fields.
7528 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7529
a48e046c
TT
75302012-03-09 Tom Tromey <tromey@redhat.com>
7531
7532 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7533
6f5e9362
JB
75342012-03-08 Joel Brobecker <brobecker@adacore.com>
7535
7536 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7537 prototype.
7538
8d037db9
JB
75392012-03-08 Joel Brobecker <brobecker@adacore.com>
7540
7541 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7542
4e841acf
JK
75432012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7544
7545 Fix -Wmissing-prototypes build.
7546 * arm-linux-nat.c (get_thread_id): Make it static.
7547 * xtensa-linux-nat.c (get_thread_id): Likewise.
7548
c6030312
JB
75492012-03-08 Joel Brobecker <brobecker@adacore.com>
7550
7551 * server.c (process_point_options): If a conditional expression
7552 is found, only print a message if remote_debug is nonzero.
7553
52323be9
LM
75542012-03-08 Luis Machado <lgustavo@codesourcery.com>
7555
7556 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7557 of internal error for unknown/unsupported types.
7558
7fe25d9b
JK
75592012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7560
7561 Fix CU relative vs. absolute DIE offsets.
7562 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7563 offset to offset_in_cu.
7564 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7565 TYPE_OFFSET.
7566 (dwarf2_fetch_die_location_block): Rename parameter offset to
7567 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7568
05e7c244
JK
75692012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7570
7571 * libunwind-frame.c: Rename to ...
7572 * ia64-libunwind-tdep.c: ... here.
7573 * libunwind-frame.h: Rename to ...
7574 * ia64-libunwind-tdep.h: ... here.
7575 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7576 ia64-libunwind-tdep.h.
7577 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7578 * README (--with-libunwind): Rename to ...
7579 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7580 * config.in: Regenerate.
7581 * configure: Regenerate.
7582 * configure.ac: New option --with-libunwind-ia64, make the
7583 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7584 Remove AC_DEFINE for HAVE_LIBUNWIND.
7585 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7586 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7587 Rename libunwind-frame in the general comment.
7588 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7589 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7590 Move forward declarations inside #ifndef. Rename libunwind-frame in
7591 the general comment.
7592 * ia64-tdep.c: Rename libunwind-frame.h #include to
7593 ia64-libunwind-tdep.h.
7594 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7595 (ia64_libunwind_descr): Rename libunwind-frame to
7596 ia64-libunwind-tdep in these function comments.
7597 * ia64-tdep.h: Rename libunwind-frame.h #include to
7598 ia64-libunwind-tdep.h.
7599 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7600 ia64-libunwind-tdep in that data comment.
7601
3755cbfd
JK
76022012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7603
7604 * libunwind-frame.h (struct frame_unwind): New declaration.
7605
d1cda5d9
JB
76062012-03-08 Joel Brobecker <brobecker@adacore.com>
7607
7608 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7609 "set breakpoint condition-evaluation" command.
7610
a0ba0aa2
TG
76112012-03-08 Tristan Gingold <gingold@adacore.com>
7612
7613 * sparc-stub.c: Move to stubs/
7614 * sh-stub.c: Likewise.
7615 * m68k-stub.c: Likewise.
7616 * m32r-stub.c: Likewise.
7617 * i386-stub.c: Likewise.
7618
7b8b6d6d
AS
76192012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7620
007cafee
AS
7621 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7622 linux_get_siginfo_type.
7623
7b8b6d6d
AS
7624 * m68klinux-nat.c: Include "gdb_proc_service.h".
7625 (PTRACE_GET_THREAD_AREA): Define.
7626 (ps_get_thread_area): New function.
7627
bba74b36
YQ
76282012-03-08 Yao Qi <yao@codesourcery.com>
7629
7630 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7631 `xsnprintf'.
7632 (remote_query_attached): Likewise.
7633 (remote_static_tracepoint_marker_at): Likewise.
7634 (remote_set_permissions): Likewise.
7635 (remote_detach_1, extended_remote_attach_1): Likewise.
7636 (send_g_packet, remote_vkill): Likewise.
7637 (extended_remote_disable_randomization): Likewise.
7638 (remote_add_target_side_condition): Likewise.
7639 (remote_insert_breakpoint): Likewise.
7640 (remote_remove_breakpoint): Likewise.
7641 (remote_insert_watchpoint): Likewise.
7642 (remote_remove_watchpoint): Likewise.
7643 (remote_insert_hw_breakpoint): Likewise.
7644 (remote_insert_hw_breakpoint): Likewise.
7645 (remote_remove_hw_breakpoint): Likewise.
7646 (remote_download_command_source): Likewise.
7647 (remote_download_tracepoint): Likewise.
7648 (remote_download_trace_state_variable): Likewise.
7649 (remote_disable_tracepoint): Likewise.
7650 (remote_trace_set_readonly_regions): Likewise.
7651 (remote_get_tracepoint_status): Likewise.
7652 (remote_trace_find): Likewise.
7653 (remote_get_trace_state_variable_value): Likewise.
7654 (remote_set_disconnected_tracing): Likewise.
7655 (remote_set_circular_trace_buffer): Likewise.
7656 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7657 (remote_use_agent): Likewise.
7658 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7659 Update callers.
7660
9b224c5e
PA
76612012-03-07 Pedro Alves <palves@redhat.com>
7662
7663 * NEWS: Mention QProgramSignals.
7664 * inferior.h (update_signals_program_target): Declare.
7665 * infrun.c: (update_signals_program_target): New.
7666 (handle_command): Update the target of the new program signals
7667 array changes.
7668 * remote.c (PACKET_QProgramSignals): New enum.
7669 (last_program_signals_packet): New global.
7670 (remote_program_signals): New.
7671 (remote_start_remote): Update the target with the program signals
7672 list.
7673 (remote_protocol_features): Add entry for QPassSignals.
7674 (remote_open_1): Free anc clear last_program_signals_packet.
7675 (init_remote_ops): Install remote_program_signals.
7676 * target.c (update_current_target): Adjust.
7677 (target_program_signals): New.
7678 * target.h (struct target_ops) <to_program_signals>: New field.
7679 (target_program_signals): Declare.
7680
74c48cbb
PA
76812012-03-07 Pedro Alves <palves@redhat.com>
7682
7683 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7684 extensions.
7685
0c13fc49
AS
76862012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7687
7688 * m68klinux-nat.c (getregs_supplies): Make static.
7689 (getfpregs_supplies): Likewise.
7690 (have_ptrace_getregs): Likewise.
7691
1281d2a3
JB
76922012-03-06 Joel Brobecker <brobecker@adacore.com>
7693
7694 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7695 in call to get_die_type_at_offset.
7696
2b03b41d
SS
76972012-03-06 Stan Shebs <stan@codesourcery.com>
7698
7699 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7700 * mi/mi-cmd-disas.c: Ditto.
7701 * mi/mi-cmd-env.c: Ditto.
7702 * mi/mi-cmd-file.c: Ditto.
7703 * mi/mi-cmd-stack.c: Ditto.
7704 * mi/mi-cmd-target.c: Ditto.
7705 * mi/mi-cmd-var.c: Ditto.
7706 * mi/mi-cmds.c: Ditto.
7707 * mi/mi-cmds.h: Ditto.
7708 * mi/mi-console.c: Ditto.
7709 * mi/mi-getopt.c: Ditto.
7710 * mi/mi-getopt.h: Ditto.
7711 * mi/mi-interp.c: Ditto.
7712 * mi/mi-main.c: Ditto.
7713 * mi/mi-out.c: Ditto.
7714 * mi/mi-parse.c: Ditto.
7715 * mi/mi-parse.h: Ditto.
7716 * mi/mi-symbol-cmds.c: Ditto.
7717
7718 * mi/mi-getopt.h: Move mi_opt struct up.
7719 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7720 return.
7721 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7722
c988ad87
TT
77232012-03-06 Tom Tromey <tromey@redhat.com>
7724
7725 * proc-service.c (ps_pglobal_lookup): Set the current program
7726 space.
7727
1b7c1b10
PA
77282012-03-06 Pedro Alves <palves@redhat.com>
7729
7730 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7731
3c182069
JB
77322012-03-05 Joel Brobecker <brobecker@adacore.com>
7733
7734 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7735
2e794194
JK
77362012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7737
7738 Code cleanup.
7739 * common/linux-osdata.c (linux_common_core_of_thread): New function
7740 comment.
7741 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7742 call by linux_common_core_of_thread.
7743 (linux_nat_core_of_thread_1): Remove.
7744 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7745 * linux-thread-db.c: Include linux-osdata.h.
7746 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7747 linux_common_core_of_thread.
7748
9f9f1f31
TT
77492012-03-05 Tom Tromey <tromey@redhat.com>
7750
7751 * value.c (value_primitive_field): Don't fetch contents for
7752 non-virtual bases.
7753
b7b189f3
TT
77542012-03-05 Tom Tromey <tromey@redhat.com>
7755
7756 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7757
05b8a789 77582012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 7759
5538f557
JB
7760 * s390-nat.c: Include "gregset.h".
7761
75528772
JK
77622012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7763
7764 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7765 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7766 (libunwind_load): New variable so_error, use it for dlerror. Try to
7767 load also LIBUNWIND_SO_7.
7768
275418ae
PA
77692012-03-05 Pedro Alves <palves@redhat.com>
7770
7771 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7772 is not NULL, and remove resulting dead code.
7773
5cbb9812
TS
77742012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7775
7776 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7777 prologue to sh_analyze_prologue.
7778 (sh_analyze_prologue): Make better use of such an upper limit, and
7779 generally be more cautious about accessing memory.
7780
541515ad
TT
77812012-03-05 Tom Tromey <tromey@redhat.com>
7782
7783 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7784 _initialize_ia64_hpux_tdep.
7785
b4d36fb8
PA
77862012-03-05 Pedro Alves <palves@redhat.com>
7787
24490249
PA
7788 PR gdb/13766
7789
b4d36fb8
PA
7790 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7791 the register state is clear, supply explicit zero, instead of
7792 marking the register unavailable.
7793
60c9a3c0
TG
77942012-03-05 Tristan Gingold <gingold@adacore.com>
7795
7796 * NEWS: Mention OpenVMS ia64 new target.
7797
696759ad
TG
77982012-03-05 Tristan Gingold <gingold@adacore.com>
7799
7800 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7801 (ia64_unw_accessors, ia64_unw_rse_accessors)
7802 (ia64_libunwind_descr): Declare.
7803 * ia64-vms-tdep.c: New file.
7804 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7805 (ia64_libunwind_descr): Make them public.
7806 * configure.tgt: Add ia64-*-*vms*.
7807 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7808 (ALLDEPFILES): Add ia64-vms-tdep.c
7809
34864976
TG
78102012-03-05 Tristan Gingold <gingold@adacore.com>
7811
169081d0
TG
7812 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7813 * remote.c (PACKET_qXfer_uib): New enum value.
7814 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7815 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7816 (_initialize_remote): Call add_packet_config_cmd for
7817 xfer:uib packet.
7818
78192012-03-05 Tristan Gingold <gingold@adacore.com>
7820
7821 * osabi.c (gdb_osabi_names): Add OpenVMS.
7822 (generic_elf_osabi_sniffer): Likewise.
7823 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 7824
6597b100
JK
78252012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7826
7827 Removed unused code.
7828 * libunwind-frame.c (libunwind_frame_unwind)
7829 (libunwind_frame_base_address): Remove.
7830 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7831
87399aa1
YQ
78322012-03-04 Yao Qi <yao@codesourcery.com>
7833
7834 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7835 remove trailing new line.
7836 (agent_run_command, agent_run_command): Add _ markup.
7837 (agent_capability_check): Likewise.
7838
abf1152a
JK
78392012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7840
7841 * breakpoint.c (set_condition_evaluation_mode): Set
7842 CONDITION_EVALUATION_MODE unconditionally.
7843
5808517f
YQ
78442012-03-03 Yao Qi <yao@codesourcery.com>
7845
7846 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7847 * common/agent.h: Update declaration.
7848 * inf-child.c (inf_child_use_agent): New.
7849 (inf_child_can_use_agent): New.
7850 (inf_child_target): Initialize fields `to_use_agent'
7851 and `to_can_use_agent'.
7852 * agent.c (agent_new_objfile): New.
89b7509a 7853 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
7854 observer.
7855
7856 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7857 New.
89b7509a 7858 (linux_target_install_ops): Initialize field
5808517f
YQ
7859 `to_static_tracepoint_markers_by_strid'.
7860 * remote.c (free_current_marker): Move it to ...
7861 * tracepoint.c (free_current_marker): ... here. New.
7862 (cleanup_target_stop): New.
7863 * tracepoint.h: Declare free_current_marker.
7864 * NEWS: Add one entry about `info static-tracepoint-marker'.
7865
58b4daa5
YQ
78662012-03-03 Yao Qi <yao@codesourcery.com>
7867
7868 * common/agent.c (agent_loaded_p): New.
89b7509a 7869 (agent_look_up_symbols): New global.
58b4daa5
YQ
7870 * common/agent.h: Declare agent_loaded_p.
7871
8ffcbaaf
YQ
78722012-03-03 Yao Qi <yao@codesourcery.com>
7873
7874 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7875 (agent_capability_check, agent_capability_invalidate): New.
7876 (symbol_list): New array element.
7877 * common/agent.h (enum agent_capa): New.
7878 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7879
d1feda86
YQ
78802012-03-03 Yao Qi <yao@codesourcery.com>
7881
7882 * target.h (struct target_ops) <to_use_agent>: New field.
7883 (struct target_ops) <to_can_use_agent>: New field.
7884 (target_use_agent, target_can_use_agent): New macro.
7885 * target.c (update_current_target): Update.
7886 * remote.c: New enum `PACKET_QAgent'.
7887 (remote_protocol_features): Add a new element.
7888 (remote_use_agent, remote_can_use_agent): New.
7889 (init_remote_ops): Initialize field `can_use_agent' with
7890 remote_can_use_agent. Intiailize field `use_agent' with
7891 remote_use_agent.
7892 * common/agent.c (use_agent): New global.
7893 * common/agent.h: Declare it.
7894 * tracepoint.c (info_static_tracepoint_markers_command): Add
7895 comment.
7896 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7897 (COMMON_OBS): Add common/agent.o and agent.o
7898 (common-agent.o): New rule.
7899 * agent.c: New.
7900
2fa291ac
YQ
79012012-03-03 Yao Qi <yao@codesourcery.com>
7902
7903 * common/agent.c: New.
7904 * common/agent.h: New.
7905 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7906 AC_CHECK_HEADERS.
7907 * configure, configh.in: Regenerated.
7908
9fc05685
KB
79092012-03-02 Kevin Buettner <kevinb@redhat.com>
7910
7911 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7912 unless it exists for this architecture.
7913
a5ee536b
JB
79142012-03-02 Joel Brobecker <brobecker@adacore.com>
7915
7916 * language.h (struct language_defn): New "method" la_read_var_value.
7917 * findvar.c: #include "language.h".
7918 (default_read_var_value): Renames read_var_value. Rewrite
7919 function description.
7920 (read_var_value): New function.
7921 * value.h (default_read_var_value): Add prototype.
7922 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7923 New functions.
7924 (ada_language_defn): Add entry for la_read_var_value.
7925 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7926 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7927 language_defn structures to add entry for new la_read_var_value
7928 field.
7929
f59f708a
PA
79302012-03-02 Tom Tromey <tromey@redhat.com>
7931 Pedro Alves <palves@redhat.com>
7932
7933 PR breakpoints/13776:
7934 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7935 breakpoints.
7936 (delete_longjmp_breakpoint_at_next_stop): New.
7937 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7938 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7939 before deleting the inferior. Add comments.
7940 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7941 breakpoints immediately, but only on next stop. Move that code
7942 next to where we mark other breakpoints for deletion.
7943
44099a67
JB
79442012-03-02 Joel Brobecker <brobecker@adacore.com>
7945
7946 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7947 marker.
7948 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7949 violation.
7950
2a2ef594
PA
79512012-03-02 Pedro Alves <palves@redhat.com>
7952
7953 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7954
b261e0c5
UW
79552012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7956
7957 Fix -Wmissing-prototypes build.
7958 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7959 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7960 (gdbsim_has_memory): Likewise.
7961
a95babbf
YQ
79622012-03-02 Yao Qi <yao@codesourcery.com>
7963
7964 Fix -Wmissing-prototypes build.
7965 * charset.c (phony_iconv_open): Make static.
7966 (phony_iconv_close, phony_iconv): Likewise.
7967 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7968 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7969 prototype.
7970 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7971 * ser-mingw.c (create_select_thread): Make static.
7972 * windows-termcap.c (tgetent): New prototype.
7973 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7974
d603d4b3
JK
79752012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7976
7977 Fix -Wmissing-prototypes build.
7978 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7979 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7980 (_initialize_loadable): New prototypes.
7981
7fb3ad1f
DE
79822012-03-02 Doug Evans <dje@google.com>
7983
7984 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7985 abbrev table, read_comp_unit will do it.
7986
693be288
JK
79872012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7988
7989 Fix -Wmissing-prototypes build.
7990 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7991 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7992 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7993 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7994 (_initialize_arm_symbian_tdep): New prototype.
7995 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7996 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7997 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7998 static.
7999 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8000 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8001 prototype.
8002 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8003 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8004 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8005 static.
8006 * moxie-tdep.c (moxie_process_record): Likewise.
8007 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8008 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8009 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8010 (_initialize_rl78_tdep): New prototype.
8011 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8012 (_initialize_rx_tdep): New prototype.
8013 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8014 (_initialize_darwin_solib): New prototype.
8015 * solib-spu.c: Include solib-spu.h.
8016 (_initialize_spu_solib): New prototype.
8017 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8018 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8019 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8020 (tic6x_software_single_step): Make it static.
8021 (_initialize_tic6x_tdep): New prototype.
8022
638234e5
JK
80232012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8024
8025 Fix -Wmissing-prototypes build.
8026 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8027 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8028
f4a6f16d
JK
80292012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8030
8031 Fix -Wmissing-prototypes build.
8032 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8033 (frv_have_stopped_data_address): Remove.
8034
04dcf5fa
JK
80352012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8036
8037 Fix -Wmissing-prototypes build.
8038 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8039 * sh-tdep.c: Include sh64-tdep.h.
8040 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8041 * sh64-tdep.c: Include sh64-tdep.h.
8042 * sh64-tdep.h: New file.
8043
19080931
MR
80442012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8045
8046 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8047
9aac7884
MR
80482012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8049
8050 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8051 sp_regnum once the gdbarch_init_osabi hook has been called.
8052
a385295e
MR
80532012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8054
8055 * mips-tdep.c (mips32_bc1_pc): New function.
8056 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8057 BPOSGE32 and BPOSGE64 instructions.
8058 (deal_with_atomic_sequence): Likewise.
8059 (mips32_instruction_has_delay_slot): Likewise.
8060
1faeff08 80612012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8062 Chris Dearman <chris@mips.com>
8063 Maciej W. Rozycki <macro@codesourcery.com>
8064 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8065
8066 * features/mips-dsp.xml: New file.
8067 * features/mips64-dsp.xml: New file.
8068 * features/mips-dsp-linux.xml: New file.
8069 * features/mips64-dsp-linux.xml: New file.
8070 * features/Makefile (WHICH): Add mips-dsp-linux and
8071 mips64-dsp-linux.
8072 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8073 * features/mips-dsp-linux.c: New file.
8074 * features/mips64-dsp-linux.c: New file.
8075 * regformats/mips-dsp-linux.dat: New file.
8076 * regformats/mips64-dsp-linux.dat: New file.
8077 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8078 registers.
8079 (mips64_linux_register_addr): Likewise.
8080 (mips64_linux_regsets_fetch_registers): Likewise.
8081 (mips64_linux_regsets_store_registers): Likewise.
8082 (mips64_linux_fetch_registers): Update call to
8083 mips64_linux_regsets_fetch_registers.
8084 (mips64_linux_store_registers): Update call to
8085 mips64_linux_regsets_store_registers.
8086 (mips_linux_read_description): Probe for DSP registers.
8087 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8088 and initialize_tdesc_mips64_dsp_linux.
8089 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8090 Remove padding of no longer used embedded register slots.
8091 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8092 (MIPS_RESTART_REGNUM): Redefine enum value.
8093 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8094 strings.
8095 (mips_tx39_reg_names): Likewise.
8096 (mips_linux_reg_names): New array of register names for Linux
8097 targets.
8098 (mips_register_name): Check for a null pointer in
8099 mips_processor_reg_names and return an empty string.
8100 (mips_register_type): Exclude embedded registers for the IRIX
8101 and Linux ABIs.
8102 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8103 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8104 DSP registers.
8105 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8106 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8107 (mips_gdbarch_init): Likewise. Initialize internal register
8108 indices for the Linux ABI. Use dynamic numbers to refer to
8109 registers, as applicable, while parsing the target description.
8110 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8111
263689d8
JB
81122012-03-01 Joel Brobecker <brobecker@adacore.com>
8113
8114 * frame.h (read_frame_register_unsigned): Fix typo in function
8115 description.
8116
f3b4f45c
PA
81172012-03-01 Pedro Alves <palves@redhat.com>
8118
8119 * jit-reader.in [!__cplusplus]
8120 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8121
b03a2011
PA
81222012-03-01 Pedro Alves <palves@redhat.com>
8123
8124 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8125 * configure: Regenerate.
8126
70221824
PA
81272012-03-01 Pedro Alves <palves@redhat.com>
8128
8129 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8130 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8131 (ftrace_command, strace_command): Make static.
8132 * d-lang.c (_initialize_d_language): Declare.
8133 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8134 * dwarf2loc.c (_initialize_dwarf2loc):
8135 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8136 * exec.c (exec_get_section_table): Make static.
8137 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8138 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8139 * inferior.c (remove_inferior_command, add_inferior_command)
8140 (clone_inferior_command): Make static.
8141 * linux-nat.c (linux_nat_thread_address_space)
8142 (linux_nat_core_of_thread): Make static.
8143 * linux-tdep.c (_initialize_linux_tdep): Declare.
8144 * objc-lang.c (_initialize_objc_lang): Declare.
8145 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8146 Make static.
8147 (_initialize_opencl_language): Declare.
8148 * record.c (_initialize_record): Declare.
8149 * remote.c (demand_private_info, remote_get_tib_address)
8150 (remote_supports_cond_tracepoints)
8151 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8152 Make static.
8153 * skip.c (_initialize_step_skip): Declare.
8154 * symtab.c (skip_prologue_using_lineinfo): Make static.
8155 * tracepoint.c (delete_trace_state_variable)
8156 (trace_variable_command, delete_trace_variable_command)
8157 (get_uploaded_tsv, find_matching_tracepoint_location)
8158 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8159 Make static.
8160 * value.c (pack_unsigned_long): Make static.
8161 * varobj.c (varobj_ensure_python_env): Make static.
8162 * windows-tdep.c (_initialize_windows_tdep): Declare.
8163 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8164
33fbcbee
PA
81652012-03-01 Pedro Alves <palves@redhat.com>
8166
8167 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8168 gdbarch parameter.
8169 (linux_init_abi): Install it as has_shared_address_space gdbarch
8170 callback.
8171
44d0cd3b
PA
81722012-03-01 Pedro Alves <palves@redhat.com>
8173
8174 * observer.c (observer_test_first_notification_function)
8175 (observer_test_second_notification_function)
8176 (observer_test_third_notification_function): Add declarations.
8177
ed01b82c
PA
81782012-03-01 Pedro Alves <palves@redhat.com>
8179
8180 * common/signals.c (default_target_signal_to_host)
8181 (default_target_signal_from_host): Move ...
8182 * arch-utils.c: ... here.
8183 * arch-utils.h (default_target_signal_to_host)
8184 (default_target_signal_from_host): Declare.
8185
8186 * common/signals.c (target_signal_from_command): Move ...
8187 * infrun.c: ... here.
8188 * inferior.h (target_signal_from_command): Declare.
8189 * target.h (target_signal_from_command)
8190 (default_target_signal_from_host, default_target_signal_to_host):
8191 Delete declarations.
8192
8193 * common/signals.c (_initialize_signals): Delete.
8194
c9b87335
PA
81952012-03-01 Pedro Alves <palves@redhat.com>
8196
8197 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8198 both __cplusplus and !__cplusplus.
8199
9340a6c0
PA
82002012-03-01 Pedro Alves <palves@redhat.com>
8201
8202 * psymtab.c (find_and_open_source): Delete declaration.
8203 * source.c (find_and_open_source): Move comment ...
8204 * source.h (find_and_open_source): ... to this new declaration.
8205
e451c4a1
PA
82062012-03-01 Pedro Alves <palves@redhat.com>
8207
8208 * inline-frame.c: Include inline-frame.h.
8209
983fb104
PA
82102012-03-01 Pedro Alves <palves@redhat.com>
8211
8212 * tui/tui-data.c (set_gen_win_origin): Delete.
8213 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8214 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8215
5fbce5df
PA
82162012-03-01 Pedro Alves <palves@redhat.com>
8217
8218 * remote.c (encode_actions): Delete declaration.
8219 * tracepoint.c (encode_actions): Make extern.
8220 * tracepoint.h (encode_actions): Declare.
8221
49a8461d
PA
82222012-03-01 Pedro Alves <palves@redhat.com>
8223
8224 * python/py-breakpoint.c: Include python.h.
8225 * python/py-continueevent.c (create_continue_event_object): Make
8226 static.
8227 * python/py-lazy-string.c (stpy_get_type): Make static.
8228 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8229 Make static.
8230 * python/py-utils.c (unicode_to_target_python_string): Make
8231 static.
8232 * python/py-value.c: Include python.h.
8233
9079102f
PA
82342012-03-01 Pedro Alves <palves@redhat.com>
8235
8236 * inferior.c (delete_threads_of_inferior): Delete.
8237
a298c5e8
PA
82382012-03-01 Pedro Alves <palves@redhat.com>
8239
8240 Import fallback definitions from glibc.
8241
8242 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8243 ps_prochandle): Forward declare.
8244 (ps_err_e): Use glibc's comments.
8245 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8246 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8247 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8248 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8249 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8250 (struct ps_prochandle): Adjust comment.
8251
e3084549
PA
82522012-03-01 Pedro Alves <palves@redhat.com>
8253
8254 * ada-lang.c (ada_modulus_from_name): Delete.
8255 * ada-lex.l (lexer_init): Make static.
8256
ad5f7d6e
PA
82572012-03-01 Pedro Alves <palves@redhat.com>
8258
8259 PR gdb/13767
8260
8261 * frame.c (read_frame_register_unsigned): New.
8262 * frame.h (read_frame_register_unsigned): Declare.
8263 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8264 Handle it.
8265 (print_i387_control_word): New parameter `control_p'. Handle it.
8266 (i387_print_float_info): Handle unavailable float registers.
8267
e0a4d108
KS
82682012-03-01 Keith Seitz <keiths@redhat.com>
8269
8270 * linespec.c (decode_line_2): Sort the list of methods
8271 alphabetically before presenting the user with a selection
8272 menu.
8273
122d1940
DE
82742012-03-01 Doug Evans <dje@google.com>
8275
8276 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8277 has_namespace_info.
8278 (dwarf2_read_abbrevs): Remove corresponding initialization.
8279
7d74f244
DE
82802012-03-01 Scott J. Goldman <scottjg@vmware.com>
8281
8282 * NEWS: Mention new python command class gdb.COMMAND_USER.
8283 * cli/cli-cmds.c (show_user): Print error when used on a python
8284 command.
8285 (init_cli_cmds): Update documentation strings for "show user" and
8286 "set/show max-user-call-depth" to clarify that it does not apply to
8287 python commands.
8288 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8289 error check.
8290 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8291 gdb python api.
8292 * top.c (execute_command): Only execute a user-defined command as a
8293 legacy macro if c->user_commands is set.
8294
e88acd96
TT
82952012-03-01 Tom Tromey <tromey@redhat.com>
8296
8297 * valprint.h (struct generic_val_print_decorations): New.
8298 (generic_val_print): Declare.
8299 * valprint.c (generic_val_print): New function.
8300 * p-valprint.c (p_decorations): New global.
8301 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8302 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8303 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8304 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8305 * m2-valprint.c (m2_decorations): New global.
8306 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8307 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8308 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8309 TYPE_CODE_ERROR>: Call generic_val_print.
8310 * f-valprint.c (f_decorations): New global.
8311 (f_val_print): Use print_function_pointer_address.
8312 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8313 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8314 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8315 generic_val_print.
8316 * c-valprint.c (c_decorations): New global.
8317 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8318 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8319 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8320 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8321 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8322 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8323 case.
8324
d3eab38a
TT
83252012-03-01 Tom Tromey <tromey@redhat.com>
8326
8327 * valprint.c (val_print): Update.
8328 * p-valprint (pascal_val_print): Return void.
8329 * p-lang.h (pascal_val_print): Return void.
8330 * m2-valprint.c (m2_val_print): Return void.
8331 * m2-lang.h (m2_val_print): Return void.
8332 * language.h (struct language_defn) <la_val_print>: Return void.
8333 * language.c (unk_lang_val_print): Return void.
8334 * jv-valprint.c (java_val_print): Return void.
8335 * jv-lang.h (java_val_print): Return void.
8336 * f-valprint.c (f_val_print): Return void.
8337 * f-lang.h (f_val_print): Return void.
8338 * d-valprint.c (d_val_print): Return void.
8339 (dynamic_array_type): Update.
8340 * d-lang.h (d_val_print): Return void.
8341 * c-valprint.c (c_val_print): Return void.
8342 * c-lang.h (c_val_print): Return void.
8343 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8344 void.
8345 * ada-lang.h (ada_val_print): Return void.
8346
35c0084b
TT
83472012-03-01 Tom Tromey <tromey@redhat.com>
8348
8349 * value.h (val_print): Return void.
8350 * valprint.c (val_print): Return void.
8351
a1f5dd1b
TT
83522012-03-01 Tom Tromey <tromey@redhat.com>
8353
8354 * value.h (common_val_print): Return void.
8355 * valprint.c (common_val_print): Return void.
8356
8e069a98
TT
83572012-03-01 Tom Tromey <tromey@redhat.com>
8358
8359 * value.h (value_print): Return void.
8360 * valprint.c (value_print): Return void.
8361 * p-valprint.c (pascal_value_print): Return void.
8362 * p-lang.h (pascal_value_print): Return void.
8363 * language.h (struct language_defn) <la_value_print>: Return
8364 void.
8365 * language.c (unk_lang_value_print): Return void.
8366 * jv-valprint.c (java_value_print): Return void.
8367 * jv-lang.h (java_value_print): Return void.
8368 * f-valprint.c (c_value_print): Don't declare.
8369 Include c-lang.h.
8370 * c-valprint.c (c_value_print): Return void.
8371 * c-lang.h (c_value_print): Return void.
8372 * ada-valprint.c (ada_value_print): Return void.
8373 * ada-lang.h (ada_value_print): Return void.
8374
be335936
TT
83752012-03-01 Tom Tromey <tromey@redhat.com>
8376
8377 * value.c (value_primitive_field): Handle virtual base classes.
8378
b0db66a7
TT
83792012-03-01 Tom Tromey <tromey@redhat.com>
8380
8381 * gdbtypes.h (struct vbase): Remove.
8382
132c57b4
TT
83832012-03-01 Tom Tromey <tromey@redhat.com>
8384
8385 * c-valprint.c (print_function_pointer_address): Move...
8386 * valprint.c: ... here. Make non-static.
8387 * m2-valprint.c (print_function_pointer_address): Remove.
8388 * valprint.h (print_function_pointer_address): Declare.
8389
e41eec66
JB
83902012-03-01 Joel Brobecker <brobecker@adacore.com>
8391
8392 * NEWS: Document the fact that one can provide a condition when
8393 creating an Ada exception catchpoint.
8394
19c37f24
TT
83952012-03-01 Tom Tromey <tromey@redhat.com>
8396
8397 * valprint.c (val_print_type_code_flags): Fix placement of
8398 trailing brace.
8399
f0fed3a3
JB
84002012-03-01 Joel Brobecker <brobecker@adacore.com>
8401
8402 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8403 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8404 environment variable before calling update-copyright.
8405
8ba85d85
JB
84062012-03-01 Joel Brobecker <brobecker@adacore.com>
8407
8408 * gnulib/extra/update-copyright: Update to the latest from
8409 gnulib's git repository.
8410 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8411 variable to 2 instead of 1.
8412
8219b1e8
JB
84132012-02-29 Joel Brobecker <brobecker@adacore.com>
8414
8415 * varobj.c (c_value_of_variable): Remove dead code.
8416
718cb7da
JB
84172012-02-29 Joel Brobecker <brobecker@adacore.com>
8418
8419 * ada-lex.p (processId): Do not modify already encoded IDs.
8420 Update function documentation.
8421
739593e0
JB
84222012-02-29 Joel Brobecker <brobecker@adacore.com>
8423
8424 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8425 "name" with "struct symbol *name_sym".
8426 * ada-exp.y (write_var_or_type): Update call to
8427 ada_find_renaming_symbol.
8428 "name" with "struct symbol *name_sym". Adjust Implementation
8429 accordingly. Adjust the function documentation.
8430
852dff6c
JB
84312012-02-29 Joel Brobecker <brobecker@adacore.com>
8432
8433 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8434 * ada-lang.c (ada_find_any_type): Add advance declaration.
8435 Make static. Replace ada_find_any_symbol by
8436 ada_find_any_type_symbol.
8437 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8438 Improve function description. Make static.
8439 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8440 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8441
1b611343
JB
84422012-02-29 Joel Brobecker <brobecker@adacore.com>
8443
8444 * ada-lang.c (struct tag_args): Delete.
8445 (ada_get_tsd_type): Function body moved up in source file.
8446 (ada_tag_name_1, ada_tag_name_2): Delete.
8447 (ada_get_tsd_from_tag): New function.
8448 (ada_tag_name_from_tsd): New function.
8449 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8450 to determine the tag name.
8451
41246937
JB
84522012-02-29 Joel Brobecker <brobecker@adacore.com>
8453
8454 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8455 declaration.
8456 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8457 function.
8458
ffde82bf
JB
84592012-02-29 Joel Brobecker <brobecker@adacore.com>
8460
8461 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8462
2ad01556
JB
84632012-02-29 Joel Brobecker <brobecker@adacore.com>
8464
8465 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8466 full searches.
8467
99b1c762
JB
84682012-02-29 Joel Brobecker <brobecker@adacore.com>
8469
8470 * ada-lang.c (constrained_packed_array_type): If there is a
8471 parallel XA type, use it to determine the array index type.
8472
2d4a02ee
JB
84732012-02-29 Joel Brobecker <brobecker@adacore.com>
8474
8475 * ada-valprint.c (ada_val_print_1): If our value is a reference
8476 to an array descriptor, dereference it before converting it
8477 to a simple array.
8478
c48db5ca
JB
84792012-02-29 Joel Brobecker <brobecker@adacore.com>
8480
8481 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8482 creating fixed value.
8483 (ada_value_ind, ada_coerce_ref, assign_component)
8484 (ada_evaluate_subexp): Remove call to unwrap_value before
8485 call to ada_to_fixed_value.
8486
2e6fda7d
JB
84872012-02-29 Joel Brobecker <brobecker@adacore.com>
8488
8489 * ada-lang.c (to_fixed_array_type): Set result's type name.
8490
5845583d
JB
84912012-02-29 Joel Brobecker <brobecker@adacore.com>
8492
8493 * ada-lang.c (catch_ada_exception_command_split): Add new
8494 argument cond_string. Add support for condition at end of
8495 "catch exception" commands.
8496 (ada_decode_exception_location): Add new argument cond_string.
8497 Update call to catch_ada_exception_command_split.
8498 (create_ada_exception_catchpoint): Add new argument cond_string.
8499 Set the breakpoint condition if needed.
8500 (catch_ada_exception_command): Update call to
8501 ada_decode_exception_location.
8502 (ada_decode_assert_location): Add function documentation.
8503 Add support for condition at end of "catch assert" command.
8504 (catch_assert_command): Update calls to ada_decode_assert_location
8505 and create_ada_exception_catchpoint.
8506
9a7f938f
JK
85072012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8508
8509 Fix disp-step-syscall.exp: fork: single step over fork.
8510 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8511 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8512 comment, change parameters gdbarch and ptid to regcache. Remove
8513 parameter regcache, initialize gdbarch from regcache here.
8514 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8515 New functions.
8516 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8517 instead.
8518 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8519 'syscall'. Make the 'int' check more strict.
8520
ffdf6de5
JK
85212012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8522
8523 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8524 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8525 (i386_linux_intx80_sysenter_syscall_record): ... here.
8526 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8527 Use the renamed function name.
8528
c70a6932
JK
85292012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8530
8531 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8532 * breakpoint.c (until_break_command): Likewise.
8533 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8534 * infcall.c (call_function_by_hand): Likewise.
8535 * infcmd.c (finish_forward): Likewise.
8536 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8537
05b8a789 85382012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8539
d4cd3da9
JB
8540 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8541 avoid variable assignments inside condition.
8542
6425366c
JK
85432012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8544
8545 Fix static analysis issue found by cppcheck.
8546 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8547 uninitialized BUF for size 2.
8548
c8cef75f 85492012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8550 Nathan Froyd <froydnj@codesourcery.com>
8551 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8552
8553 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8554 (mips16_instruction_has_delay_slot): Likewise.
8555 (mips_segment_boundary): Likewise.
8556 (mips_adjust_breakpoint_address): Likewise.
8557 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8558
473347ad 85592012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8560 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8561
8562 * infrun.c (handle_inferior_event): Don't proceed through
8563 shared library trampolines if stepping at the machine
8564 instruction level.
8565
cf233303
MR
85662012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8567
8568 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8569 too.
8570
cb2cf4ce
TS
85712012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8572
8573 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8574 (sh_stub_unwind_sniffer): New functions.
8575 (sh_stub_unwind): New variable.
8576 (sh_gdbarch_init): Wire everything.
8577
644cebc9
PA
85782012-02-27 Pedro Alves <palves@redhat.com>
8579
8580 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8581 (linux_nat_post_attach_wait): Adjust to use
8582 linux_proc_pid_is_stopped.
8583 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8584 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8585 based on pid_is_stopped from both linux-nat.c and
8586 gdbserver/linux-low.c, and renamed.
8587
283002cf
MR
85882012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8589
8590 * remote.c (remote_watchpoint_addr_within_range): New function.
8591 (init_remote_ops): Use it.
8592
9b3e86b1
MR
85932012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8594
8595 * target.h (target_watchpoint_addr_within_range): Document macro.
8596
e36930bb
PA
85972012-02-24 Pedro Alves <palves@redhat.com>
8598
8599 * stack.c (set_last_displayed_sal): Issue internal_error instead
8600 of warning, and issue it after clearing the last displayed sal.
8601
883bc8d1
PA
86022012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8603 Pedro Alves <palves@redhat.com>
8604
8605 * breakpoint.c (until_break_command): Install breakpoints after
8606 all frame manipulations.
8607
b775012e
LM
86082012-02-24 Luis Machado <lgustavo@codesourcery.com>
8609
8610 * remote.c (remote_supports_cond_breakpoints): New forward
8611 declaration.
8612 (remote_add_target_side_condition): New function.
8613 (remote_insert_breakpoint): Add target-side breakpoint
8614 conditional if supported.
8615 (remote_insert_hw_breakpoint): Likewise.
8616 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8617 hook.
8618
8619 * target.c (update_current_target): Inherit
8620 to_supports_evaluation_of_breakpoint_conditions.
8621 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8622
8623 * target.h (struct target_ops)
8624 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8625 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8626
8627 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8628 (condition_evaluation_both, condition_evaluation_auto,
8629 condition_evaluation_host, condition_evaluation_target,
8630 condition_evaluation_enums, condition_evaluation_mode_1,
8631 condition_evaluation_mode): New static globals.
8632 (translate_condition_evaluation_mode): New function.
8633 (breakpoint_condition_evaluation_mode): New function.
8634 (gdb_evaluates_breakpoint_condition_p): New function.
8635 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8636 (mark_breakpoint_modified): New function.
8637 (mark_breakpoint_location_modified): New function.
8638 (set_condition_evaluation_mode): New function.
8639 (show_condition_evaluation_mode): New function.
8640 (bp_location_compare_addrs): New function.
8641 (get_first_location_gte_addr): New helper function.
8642 (set_breakpoint_condition): Free condition bytecode if locations
8643 has become unconditional. Call mark_breakpoint_modified (...).
8644 (condition_command): Call update_global_location_list (1) for
8645 breakpoints.
8646 (breakpoint_xfer_memory): Use is_breakpoint (...).
8647 (is_breakpoint): New function.
8648 (parse_cond_to_aexpr): New function.
8649 (build_target_condition_list): New function.
8650 (insert_bp_location): Handle target-side conditional
8651 breakpoints and call build_target_condition_list (...).
8652 (update_inserted_breakpoint_locations): New function.
8653 (insert_breakpoint_locations): Handle target-side conditional
8654 breakpoints.
8655 (bpstat_check_breakpoint_conditions): Add comment.
8656 (bp_condition_evaluator): New function.
8657 (bp_location_condition_evaluator): New function.
8658 (print_breakpoint_location): Print information on where the condition
8659 will be evaluated.
8660 (print_one_breakpoint_location): Likewise.
8661 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8662 breakpoint location.
8663 (force_breakpoint_reinsertion): New functions.
8664 (update_global_location_list): Handle target-side breakpoint
8665 conditions.
8666 Reinsert locations that are already inserted if conditions have
8667 changed.
8668 (bp_location_dtor): Free agent expression bytecode.
8669 (disable_breakpoint): Call mark_breakpoint_modified (...).
8670 Call update_global_location_list (...) with parameter 1 for breakpoints.
8671 (disable_command): Call mark_breakpoint_location_modified (...).
8672 Call update_global_location_list (...) with parameter 1 for breakpoints.
8673 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8674 (enable_command): mark_breakpoint_location_modified (...).
8675 (_initialize_breakpoint): Update documentation and add
8676 condition-evaluation breakpoint subcommand.
8677
8678 * breakpoint.h: Include ax.h.
8679 (condition_list): New data structure.
8680 (condition_status): New enum.
8681 (bp_target_info) <cond_list>: New field.
8682 (bp_location) <condition_changed, cond_bytecode>: New fields.
8683 (is_breakpoint): New prototype.
8684
3788aec7
LM
86852012-02-24 Luis Machado <lgustavo@codesourcery.com>
8686
8687 * remote.c (remote_state) <cond_breakpoints>: New field.
8688 (PACKET_ConditionalBreakpoints): New enum.
8689 (remote_cond_breakpoint_feature): New function.
8690 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8691 (remote_supports_cond_breakpoints): New function.
8692 (_initialize_remote): Add new packet configuration for
8693 target-side conditional breakpoints.
8694
72895ff6
LM
86952012-02-24 Luis Machado <lgustavo@codesourcery.com>
8696
8697 * NEWS: Mention target-side conditional breakpoint support,
8698 new condition-evaluation breakpoint subcommand and remote
8699 packet extensions.
8700
dea2aa5f
LM
87012012-02-24 Luis Machado <lgustavo@codesourcery.com>
8702
8703 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8704 number.
8705
8a8bc27f
TS
87062012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8707
8708 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8709 (after_prologue): Remove.
8710
6b446fdf
TT
87112012-02-23 Tom Tromey <tromey@redhat.com>
8712
8713 * jv-valprint.c (java_val_print): Remove dead code.
8714
ef59abfb
TG
87152012-02-23 Tristan Gingold <gingold@adacore.com>
8716
a09130f9
PA
8717 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8718 known_tasks_element and known_tasks_length fields.
8719 (read_known_tasks_array): Change argument type. Use pointer type
8720 and number of elements from DATA. Adjust.
8721 (read_known_tasks_list): Likewise.
8722 (get_known_tasks_addr): Remove.
8723 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8724 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8725 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 8726
def166f6
JK
87272012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8728
8729 PR backtrace/13716
8730 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8731 it after set_momentary_breakpoint.
8732
aeaa2474
SA
87332012-02-22 Sterling Augustine <saugustine@google.com>
8734
8735 PR 13689:
8736 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8737
feea76c2
GB
87382012-02-22 Gary Benson <gbenson@redhat.com>
8739
8740 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8741 (find_slot_in_mapped_hash): Likewise.
8742
f06e05e0
JK
87432012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8744
8745 PR build/13638
8746 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8747 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8748 * configure: Regenerate.
8749
b54a8fd7
PA
87502012-02-21 Tristan Gingold <gingold@adacore.com>
8751 Pedro Alves <palves@redhat.com>
8752
8753 * ia64-tdep.c: Do not include libunwind-ia64.h.
8754 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8755 Include libunwind-ia64.h instead of libunwind.h.
8756 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8757 for libunwind.h existence.
8758 * configure, config.in: Regenerate.
8759
dfcee124
AG
87602012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8761
8762 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8763 instead of value_rtti_target_type.
8764 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8765 instead of value_rtti_target_type.
8766 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8767 value_rtti_target_type.
8768 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8769 (value_rtti_target_type): Rename to ...
8770 (value_rtti_indirect_type): ... here and make it indirect. Update
8771 function comment.
8772 * value.c (readjust_indirect_value_type): New function.
8773 (coerce_ref): Support for enclosing type setting for references
8774 with readjust_indirect_value_type.
8775 * value.h (readjust_value_type): New declaration.
8776 (value_rtti_target_type): Rename to ...
8777 (value_rtti_indirect_type): ... here.
8778
02568277
AG
87792012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8780
8781 * MAINTAINERS (Write After Approval): Add myself to the list.
8782
10c07b7e 87832012-02-20 Doug Evans <dje@google.com>
28ee876a 8784
d82ea6a8
DE
8785 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8786 Rename objfile_p_char parameter to objfilep.
8787 (build_objfile_section_table): Result is now void. All callers
8788 updated.
8789 * objfiles.h (struct objfile): Tweak comments, whitespace.
8790 (build_objfile_section_table): Update.
8791
28ee876a
DE
8792 * elfread.c (elf_symfile_segments): Fix warning text.
8793
24c79950
TT
87942012-02-20 Tom Tromey <tromey@redhat.com>
8795
8796 PR gdb/13498:
8797 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8798 particular set of file names once.
8799 (dw2_map_symbol_filenames): Likewise.
8800
3a9b40b6
JK
88012012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8802
8803 Code cleanup.
8804 * main.c (write_files): Remove the declaration.
8805 (external_editor_command): Move the declaration ...
8806 [GDBTK] (external_editor_command): ... here. Fix the comment.
8807
4d0795ca
TT
88082012-02-20 Tom Tromey <tromey@redhat.com>
8809
8810 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8811 extraneous block.
8812
637fd620
TG
88132012-02-20 Tristan Gingold <gingold@adacore.com>
8814
8815 * darwin-nat.h (enum darwin_msg_state): Add comments.
8816
6f124894
TG
88172012-02-20 Tristan Gingold <gingold@adacore.com>
8818
8819 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8820 value.
8821
2e6e3d9c
JB
88222012-20-18 Joel Brobecker <brobecker@adacore.com>
8823
8824 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8825 between function description and implementation.
8826
2e8265fd
TT
88272012-02-17 Tom Tromey <tromey@redhat.com>
8828
8829 PR python/12070:
8830 * python/py-event.c (event_object_getset): New global.
8831 (event_object_type): Reference it.
8832 * python/py-type.c (field_object_getset): New global.
8833 (field_object_type): Reference it.
8834 * python/python-internal.h (gdb_py_generic_dict): Declare.
8835 * python/py-utils.c (gdb_py_generic_dict): New function.
8836
8544a150 88372012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 8838
8544a150 8839 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 8840
ca193e27
TS
88412012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8842
8843 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8844 TYPE_CALLING_CONVENTION annotation.
8845
e5586183
KB
88462012-02-16 Kevin Buettner <kevinb@redhat.com>
8847
8848 * MAINTAINERS: Add rx to target ISA section.
8849 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8850 (ALLDEPFILES): Add rx-tdep.c.
8851
7dcd53a0
TT
88522012-02-16 Tom Tromey <tromey@redhat.com>
8853
8854 * symfile.c (symbol_file_add_main_1): Use inferior's
8855 symfile_flags.
8856 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8857 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8858 inferior.
8859 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8860 inferior.
8861 (follow_exec): Use inferior's symfile_flags.
8862 * inferior.h (struct inferior) <symfile_flags>: New field.
8863
ddd60447
MF
88642012-02-16 Mike Frysinger <vapier@gentoo.org>
8865
8866 PR gdb/9734:
8867 * remote-sim.c (gdbsim_create_inferior): Call error() when
8868 sim_create_inferior() fails.
8869
b0d32fb6
TG
88702012-02-16 Josh Matthews <josh@joshmatthews.net>
8871
8872 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8873
9addecb9
TT
88742012-02-16 Tom Tromey <tromey@redhat.com>
8875
8876 PR c++/13653:
8877 * thread.c (struct current_thread_cleanup) <was_removable>: New
8878 field.
8879 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8880 (make_cleanup_restore_current_thread): Initialize new field.
8881
a58b110a
KB
88822012-02-15 Kevin Buettner <kevinb@redhat.com>
8883
8884 * MAINTAINERS: Add rl78 to target ISA section.
8885 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8886 (ALLDEPFILES): Add rl78-tdep.c.
8887 * NEWS: Mention rl78 as a new target.
8888
4cb6da1c
AR
88892012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8890
8891 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8892 data.
8893 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8894
3af2590d
TT
88952012-02-15 Tom Tromey <tromey@redhat.com>
8896
8897 PR gdb/12659:
8898 * infcmd.c (registers_info): Print just the current register's
8899 name.
8900
c6910659
TT
89012012-02-15 Tom Tromey <tromey@redhat.com>
8902
8903 * python/py-symbol.c (sympy_value): Use _().
8904
7cee1e54
PA
89052012-02-15 Pedro Alves <palves@redhat.com>
8906
8907 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8908 output to be like native targets'.
8909 (remote_pid_to_str): Special case the null ptid.
8910
816338b5
SS
89112012-02-14 Stan Shebs <stan@codesourcery.com>
8912
8913 * NEWS: Mention enable count command.
8914 * breakpoint.h (struct breakpoint): New field enable_count.
8915 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8916 (enable_breakpoint): Add arg to call.
8917 (struct disp_data): New struct.
8918 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8919 (do_map_enable_once_breakpoint): Create a struct and pass it.
8920 (do_map_enable_delete_breakpoint): Ditto.
8921 (do_map_enable_count_breakpoint): New function.
8922 (enable_count_command): New function.
8923 (bpstat_stop_status): Decrement enable_count.
8924 (print_one_breakpoint_location): Report enable count.
8925 (_initialize_breakpoint): Add enable count command.
8926
c47a44f4
KB
89272012-02-14 Kevin Buettner <kevinb@redhat.com>
8928
8929 * rl78-tdep.c (reggroups.h): Include.
8930 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8931 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8932 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8933 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8934 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8935 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8936 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8937 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8938 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8939 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8940 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8941 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8942 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8943 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8944 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8945 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8946 beginning of register list.
8947 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8948 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8949 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8950 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8951 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8952 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8953 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8954 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8955 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8956 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8957 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8958 the pseudo registers. Rearrange other pseudo registers too so
8959 that the bank registers appear at the end.
8960 (rl78_register_type): Account for the fact that the byte sized
8961 bank registers are now pseudo-registers.
8962 (rl78_register_name): Rearrange the register name array. Make
8963 initial set of raw banked registers inaccessible.
8964 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8965 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8966 case for copying bytes back and forth between raw and pseudo
8967 versions of the banked registers. Update other cases to reflect
8968 the changed names.
8969 (rl78_return_value): Update to account for changed names of
8970 raw registers.
8971 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8972 rl78_register_sim_regno().
8973
e4569f1e
KB
89742012-02-14 Kevin Buettner <kevinb@redhat.com>
8975
8976 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8977 the name parameter being passed to find_pc_partial_function().
8978
7a05aae7
JK
89792012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8980
8981 * MAINTAINERS: Step down from being ia64 target maintainer.
8982
11fde611
JK
89832012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8984
8985 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8986 compilation warning.
8987
57008375
JK
89882012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8989
8990 Fix crash on loaded shlibs without loaded exec_bfd.
8991 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8992 (set_section_command): Replace exec_bfd by p->bfd.
8993
ff3c9849
TT
89942012-02-10 Tom Tromey <tromey@redhat.com>
8995
8996 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8997 when we have a C++ qualified name.
8998
db2b9fdd
PA
89992012-02-10 Pedro Alves <palves@redhat.com>
9000
9001 * inferior.c (inferior_pid_to_str): New.
9002 (print_inferior, inferior_command): Use it.
9003
12cd34f3
PA
90042012-02-10 Pedro Alves <palves@redhat.com>
9005
9006 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9007 the test CFLAGS.
9008 * configure: Regenerate.
9009
e871429d
JK
90102012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9011
9012 * linespec.c (decode_line_internal): Fix comment correctness.
9013
1916efaf
PA
90142012-02-09 Valery Khromov <valery.khromov@gmail.com>
9015
9016 PR gdb/12953
9017 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9018 * amd64bsd-nat.c: Add support for debug registers (adapted from
9019 i386bsd-nat.c).
9020 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9021 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9022 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9023 (amd64bsd_dr_get_control): New functions.
9024 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9025 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9026 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9027 watchpoints initialization.
9028 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9029
f4859d94
JK
90302012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9031
9032 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9033 flds_bnds.fields.
9034 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9035
c56a97f9
JK
90362012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9037
9038 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9039
1a119f36
JB
90402012-02-08 Joel Brobecker <brobecker@adacore.com>
9041
9042 * language.h (symbol_name_cmp_ftype): Renames
9043 symbol_name_match_p_ftype.
9044 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9045 la_get_symbol_name_match_p.
9046 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9047 ada_get_symbol_name_match_p. Update comment.
9048 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9049 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9050 Renames symbol_name_match_p. Update field type.
9051 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9052 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9053 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9054 "la_get_symbol_name_cmp" in comments.
9055 * language.c: Likewise.
9056
c71bb1cf
RO
90572012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9058
9059 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9060 %eflags offset.
9061 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9062 (amd64_sol2_gregset32_reg_offs): Likewise.
9063
4b2d20a5
TG
90642012-02-08 Joel Brobecker <brobecker@adacore.com>
9065
9066 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9067 of the returned BFD is allocated by GDB.
9068
f0823d2c
TT
90692012-02-07 Tom Tromey <tromey@redhat.com>
9070
9071 PR python/12027:
9072 * python/python-internal.h (frame_object_type): Declare.
9073 * python/py-symbol.c (sympy_needs_frame): New function.
9074 (sympy_value): New function.
9075 (symbol_object_getset): Add "needs_frame".
9076 (symbol_object_methods): Add "value".
9077 * python/py-frame.c (frame_object_type): No longer static.
9078
64e7d9dd
TT
90792012-02-07 Tom Tromey <tromey@redhat.com>
9080
9081 PR python/13599:
9082 * python/py-symbol.c (sympy_line): New function.
9083 (symbol_object_getset): Add "line".
9084
1d6b2d2b
TT
90852012-02-07 Tom Tromey <tromey@redhat.com>
9086
9087 * charset.c (find_charset_names): Check 'in' against NULL.
9088
0d5cff50
DE
90892012-02-06 Doug Evans <dje@google.com>
9090
9091 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9092 and fields.name members from char * to const char *. All uses updated.
9093 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9094 from char * to const char *. All uses updated.
9095 (type_name_no_tag): Update.
9096 (lookup_unsigned_typename, lookup_signed_typename): Update.
9097 * gdbtypes.c (type_name_no_tag): Change result type
9098 from char * to const char *. All callers updated.
9099 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9100 name parameter from char * to const char *.
9101 * symtab.h (struct cplus_specific): Change type of demangled_name
9102 member from char * to const char *. All uses updated.
9103 (struct general_symbol_info): Change type of name and
9104 mangled_lang.demangled_name members from char * to const char *.
9105 All uses updated.
9106 (symbol_get_demangled_name, symbol_natural_name): Update.
9107 (symbol_demangled_name, symbol_search_name): Update.
9108 * symtab.c (symbol_get_demangled_name): Change result type
9109 from char * to const char *. All callers updated.
9110 (symbol_natural_name, symbol_demangled_name): Ditto.
9111 (symbol_search_name): Ditto.
9112 (completion_list_add_name): Change type of symname,sym_text,
9113 text,word parameters from char * to const char *.
9114 (completion_list_objc_symbol): Change type of sym_text,
9115 text,word parameters from char * to const char *.
9116 * ada-lang.c (find_struct_field): Change type of name parameter
9117 from char * to const char *.
9118 (encoded_ordered_before): Similarly for N0,N1 parameters.
9119 (old_renaming_is_invisible): Similarly for function_name parameter.
9120 (ada_type_name): Change result type from char * to const char *.
9121 All callers updated.
9122 * ada-lang.h (ada_type_name): Update.
9123 * buildsym.c (hashname): Change type of name parameter
9124 from char * to const char *.
9125 * buildsym.h (hashname): Update.
9126 * dbxread.c (end_psymtab): Change type of include_list parameter
9127 from char ** to const char **.
9128 * dwarf2read.c (determine_prefix): Change result type
9129 from char * to const char *. All callers updated.
9130 * f-lang.c (find_common_for_function): Change type of name, funcname
9131 parameters from char * to const char *.
9132 * f-lang.c (find_common_for_function): Update.
9133 * f-valprint.c (list_all_visible_commons): Change type of funcname
9134 parameters from char * to const char *.
9135 * gdbarch.sh (static_transform_name): Change type of name parameter
9136 and result from char * to const char *.
9137 * gdbarch.c: Regenerate.
9138 * gdbarch.h: Regenerate.
9139 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9140 of name parameter from char * to const char *.
9141 * jv-lang.c (java_primitive_type_from_name): Ditto.
9142 (java_demangled_signature_length): Similarly for signature parameter.
9143 (java_demangled_signature_copy): Ditto.
9144 (java_demangle_type_signature): Ditto.
9145 * jv-lang.h (java_primitive_type_from_name): Update.
9146 (java_demangle_type_signature): Update.
9147 * objc-lang.c (specialcmp): Change type of a,b parameters
9148 from char * to const char *.
9149 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9150 from char * to const char *. All callers updated.
9151 * p-lang.h (is_pascal_string_type): Update.
9152 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9153 of name parameter from char * to const char *.
9154 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9155 * utils.c (fprintf_symbol_filtered): Ditto.
9156 * defs.h (fprintf_symbol_filtered): Update.
9157 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9158 * stabsread.h (end_psymtab): Update.
9159 * stack.c (find_frame_funname): Change type of funname parameter
9160 from char ** to const char **.
9161 * stack.h (find_frame_funname): Update.
9162 * typeprint.c (type_print): Change type of varstring parameter
9163 from char * to const char *.
9164 * value.h (type_print): Update.
9165 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9166 from char * to const char *. All callers updated.
9167 (xcoff_end_psymtab): Change type of include_list parameter
9168 from char ** to const char **. All callers updated.
9169 (swap_sym): Similarly for name parameter. All callers updated.
9170 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9171 Use xstrdup.
9172 (process_coff_symbol): Use xstrdup.
9173 * stabsread.c (stabs_method_name_from_physname): Renamed from
9174 update_method_name_from_physname. Change result type from void
9175 to char *. All callers updated.
9176 (read_member_functions): In has_destructor case, store name in objfile
9177 obstack instead of malloc space. In !has_stub case, fix mem leak.
9178
5579a92e
TT
91792012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9180
9181 * configure: Rebuild.
9182 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9183 LDFLAGS.
9184
9058f767
KB
91852012-02-03 Kevin Buettner <kevinb@redhat.com>
9186
9187 * configure.tgt (rl78-*-elf): New target.
9188 * rl78-tdep.c: New file.
9189
5b37825d
PW
91902012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9191
9192 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9193 and continue the loop. Add QUIT statement.
9194
e009ee71
TT
91952012-02-03 Tom Tromey <tromey@redhat.com>
9196
9197 PR gdb/13596:
9198 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9199 bfd_lookup_symbol_from_symtab.
9200 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9201 gdb_bfd_lookup_symbol_from_symtab.
9202
f7e44f65
JB
92032012-02-03 Joel Brobecker <brobecker@adacore.com>
9204
9205 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9206 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9207 symbol. Add assertion that sym2 is never NULL.
9208
2c02bd72
DE
92092012-02-02 Doug Evans <dje@google.com>
9210
9211 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9212 "name" parameter to const char ** from char **. All callers updated.
9213 (find_pc_partial_function): Ditto.
9214 (cache_pc_function_name): Change type to const char * from char *.
9215 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9216 (find_pc_partial_function): Update.
9217 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9218 type of "name" parameter to const char * from char *.
9219 All uses updated.
9220 * arch-utils.c (generic_in_solib_return_trampoline): Change
9221 type of "name" parameter to const char * from char *.
9222 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9223 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9224 type of "name" parameter to const char * from char *.
9225 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9226 * gdbarch.c: Regenerate.
9227 * gdbarch.h: Regenerate.
9228 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9229 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9230 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9231 type of "name" parameter to const char * from char *.
9232 * skip.c (skip_function_pc): Ditto.
9233 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9234 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9235 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9236 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9237 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9238 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9239 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9240 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9241 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9242
e886a173
PA
92432012-02-02 Pedro Alves <palves@redhat.com>
9244
9245 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9246 the current inferior has no execution. Make sure the current
9247 remote process matches gdb's current inferior.
9248
c709a7c2
TT
92492012-02-02 Tom Tromey <tromey@redhat.com>
9250
9251 PR gdb/13405:
9252 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9253 read-only memory.
9254
f149aabd
TT
92552012-02-02 Tom Tromey <tromey@redhat.com>
9256
9257 PR gdb/9307:
9258 * symtab.c (lookup_language_this): Set block_found.
9259
03bef283
TT
92602012-02-01 Tom Tromey <tromey@redhat.com>
9261
9262 PR gdb/13431:
9263 * jit.c (struct jit_inferior_data): Rewrite.
9264 (struct jit_objfile_data): New.
9265 (get_jit_objfile_data): New function.
9266 (add_objfile_entry): Update.
9267 (jit_read_descriptor): Return int. Replace descriptor_addr
9268 argument with inf_data. Update. Don't call error.
9269 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9270 descriptor here.
9271 (jit_inferior_init): Don't look up descriptor. Don't call error.
9272 (jit_reset_inferior_data_and_breakpoints)
9273 (jit_inferior_created_observer): Remove.
9274 (jit_inferior_exit_hook): Update.
9275 (jit_executable_changed_observer): Remove.
9276 (jit_event_handler): Update.
9277 (free_objfile_data): Reset inferior data if needed.
9278 (_initialize_jit): Update.
9279
f0bbc364
TT
92802012-02-01 Tom Tromey <tromey@redhat.com>
9281
9282 * jit.c (bfd_open_from_target_memory): Move higher in file.
9283
47c1316c
TG
92842012-02-01 Tristan Gingold <gingold@adacore.com>
9285
9286 * libunwind-frame.c (libunwind_load): Display message if dlopen
9287 failed.
9288
8e704927
GB
92892012-02-01 Gary Benson <gbenson@redhat.com>
9290
09c7a31f 9291 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9292 (iterate_over_symbols): Use the above.
9293 * symtab.c (iterate_over_symbols): Likewise.
9294 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9295 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9296 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9297 (iterate_name_matcher): Document return values.
9298 (collect_one_symbol): Likewise.
9299 (collect_function_symbols): Likewise.
9300 (collect_symbols): Likewise.
9301
d9680e73
TT
93022012-02-01 Tom Tromey <tromey@redhat.com>
9303
9304 * ada-lang.c (resolve_subexp): Update.
9305 (ada_lookup_symbol_list): Add 'full_search' argument.
9306 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9307 ada_lookup_symbol_list.
9308 (ada_lookup_encoded_symbol): Update.
9309 (get_var_value): Update.
9310 * ada-exp.y (block_lookup): Update.
9311 (write_var_or_type): Update.
9312 (write_name_assoc): Update.
9313 * ada-lang.h (ada_lookup_symbol_list): Update.
9314
72e1143f
TT
93152012-01-31 Tom Tromey <tromey@redhat.com>
9316
9317 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9318 comment.
9319
ab2d2ad3
DE
93202012-01-31 Doug Evans <dje@google.com>
9321
9322 * symtab.h: Remove outdated comment.
e9111bf7 9323 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 9324
bc884eba
JB
93252012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9326
9327 Fix build error in Darwin port.
9328 * i386-darwin-nat.c: Include i386-nat.h.
9329
8fc3fc34
TT
93302012-01-30 Tom Tromey <tromey@redhat.com>
9331
9332 PR breakpoints/13568:
9333 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9334 argument. Check for recursive includes.
9335 (dwarf_decode_macros): Create an include hash.
9336
5d853008
ME
93372012-01-30 Michael Eager <eager@eagercon.com>
9338
9339 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9340 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 9341 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
9342 (powerpc_linux_in_plt_stub): New function.
9343 (powerpc_linux_in_dynsym_resolve_code): New function.
9344 (ppc_skip_trampoline_code): New function.
9345 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9346 Use glibc_skip_solib_resolver.
9347
40478521
JK
93482012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9349
9350 Code cleanup: Make 1440 bytes of data segment read-only.
9351 * arch-utils.c (endian_enum): Make it const char *const [].
9352 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9353 Likewise.
9354 * breakpoint.c (always_inserted_enums): Likewise.
9355 * cli/cli-cmds.c (script_ext_enums): Likewise.
9356 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9357 enumlist parameter const char *const *.
9358 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9359 const char *const *.
9360 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9361 parameter const char *const *.
9362 * cris-tdep.c (cris_modes): Make it const char *const [].
9363 * filesystem.c (target_file_system_kinds): Likewise.
9364 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9365 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9366 (can_use_displaced_stepping_enum, scheduler_enums)
9367 (exec_direction_names): Likewise.
9368 * language.c (_initialize_language): Make the type_or_range_names and
9369 case_sensitive_names variables const char *const [].
9370 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9371 * python/python.c (python_excp_enums): Likewise.
9372 * remote.c (interrupt_sequence_modes): Likewise.
9373 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9374 * serial.c (logbase_enums): Likewise.
9375 * sh-tdep.c (sh_cc_enum): Likewise.
9376 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9377 Likewise.
9378 * symtab.c (multiple_symbols_modes): Likewise.
9379 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9380 Likewise.
9381 * utils.c (internal_problem_modes): Likewise.
9382
b3b8b934
JK
93832012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9384
9385 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9386 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9387 result.
9388
8c85a4e2
DE
93892012-01-27 Doug Evans <dje@google.com>
9390
9391 * configure.ac (with_python): Fix absolute path handling for win32.
9392 * configure: Regenerate.
9393
78d8b4d7
DE
93942012-01-26 Doug Evans <dje@google.com>
9395
eca864fe
DE
9396 * symtab.c: Whitespace cleanup, no code changes.
9397
7e082072
DE
9398 * symtab.c (lookup_symbol_in_language): Improve comment.
9399 (lookup_symbol_aux): Fix comment.
9400
7dc25483
DE
9401 * psymtab.c (add_psymbol_to_list): Result is now "void".
9402 * psympriv.h (add_psymbol_to_list): Update.
9403
78d8b4d7
DE
9404 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9405
4c63965b
JK
94062012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9407
9408 Do not open script filenames twice.
9409 * cli/cli-cmds.c (source_script_from_stream): Pass to
9410 source_python_script also STREAM.
9411 * python/py-auto-load.c (source_section_scripts): Pass to
9412 source_python_script_for_objfile also STREAM.
9413 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9414 also INPUT.
9415 * python/python-internal.h (source_python_script_for_objfile): New
9416 parameter file, rename parameter file to filename.
9417 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9418 instead if !_WIN32. Update the function comment.
9419 (source_python_script, source_python_script_for_objfile)
9420 (source_python_script): New parameter file, rename parameter file to
9421 filename. Pass FILENAME to python_run_simple_file.
9422 * python/python.h (source_python_script): New parameter file, rename
9423 parameter file to filename.
9424
88f38a04
PA
94252012-01-26 Pedro Alves <palves@redhat.com>
9426
9427 * corelow.c (core_has_fake_pid): Delete.
9428 (core_close): Delete references to `core_has_fake_pid'.
9429 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9430 (core_open): Delete references to `core_has_fake_pid'.
9431 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9432 the removed global.
9433
e078317b
JB
94342012-01-26 Joel Brobecker <brobecker@adacore.com>
9435
9436 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9437 Remove language parameter from name_matcher. Adjust the comment.
9438 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9439 Remove language parameter.
9440 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9441 * linespec.c (iterate_name_matcher): Likewise.
9442 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9443 name_matcher. Adjust call accordingly.
9444 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9445 (maintenance_check_symtabs): Adjust type of parameter "fun".
9446 * psymtab.h (maintenance_check_symtabs): Likewise.
9447
74ccd7f5
JB
94482012-01-26 Joel Brobecker <brobecker@adacore.com>
9449
9450 * language.h (symbol_name_match_p_ftype): New typedef.
9451 (struct language_defn): Replace field la_symbol_name_compare
9452 by la_get_symbol_name_match_p.
9453 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9454 (ada_language_defn): Use it.
9455 * linespec.c (struct symbol_matcher_data): New type.
9456 (iterate_name_matcher): Rewrite.
9457 (iterate_over_all_matching_symtabs): Pass a pointer to
9458 a symbol_matcher_data struct to expand_symtabs_matching
9459 instead of just the lookup name.
9460 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9461 opencl-lang.c, p-lang.c, language.c: Delete field
9462 la_symbol_name_compare, and replace by NULL for new field
9463 la_get_symbol_name_match_p.
9464 * symfile.h (struct quick_symbol_functions): Update comment.
9465
5d268276
TT
94662012-01-25 Tom Tromey <tromey@redhat.com>
9467
9468 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9469 dereferencing.
9470
edcc5120
TT
94712012-01-24 Tom Tromey <tromey@redhat.com>
9472
9473 PR symtab/12406:
9474 * solib.c (update_solib_list): Update the program space's
9475 added_solibs and deleted_solibs fields.
9476 * progspace.h (struct program_space) <added_solibs,
9477 deleted_solibs>: New fields.
9478 (clear_program_space_solib_cache): Declare.
9479 * progspace.c (release_program_space): Call
9480 clear_program_space_solib_cache.
9481 (clear_program_space_solib_cache): New function.
9482 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9483 bpstat_stop_status. Use handle_solib_event.
9484 * breakpoint.c: Include gdb_regex.h.
9485 (print_solib_event): New function.
9486 (bpstat_print): Use print_solib_event.
9487 (bpstat_stop_status): Add special case for bp_shlib_event.
9488 (handle_solib_event): New function.
9489 (bpstat_what): Use handle_solib_event.
9490 (struct solib_catchpoint): New.
9491 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9492 (breakpoint_hit_catch_solib, check_status_catch_solib)
9493 (print_it_catch_solib, print_one_catch_solib)
9494 (print_mention_catch_solib, print_recreate_catch_solib): New
9495 functions.
9496 (catch_solib_breakpoint_ops): New global.
9497 (catch_load_or_unload, catch_load_command_1)
9498 (catch_unload_command_1): New functions.
9499 (internal_bkpt_check_status): Add special case for
9500 bp_shlib_event.
9501 (internal_bkpt_print_it): Use print_solib_event.
9502 (initialize_breakpoint_ops): Initialize
9503 catch_solib_breakpoint_ops.
9504 (_initialize_breakpoint): Register "catch load" and "catch
9505 unload".
9506 * breakpoint.h (handle_solib_event): Declare.
9507 * NEWS: Add entry for "catch load" and "catch unload".
9508
fa864999
TT
95092012-01-24 Tom Tromey <tromey@redhat.com>
9510
9511 * ada-lang.c: Include gdb_vecs.h.
9512 * charset.c: Include gdb_vecs.h.
9513 * tracepoint.h: Include gdb_vecs.h.
9514 * gdb_vecs.h: New file.
9515
f90263c1
TT
95162012-01-24 Pedro Alves <pedro@codesourcery.com>
9517
9518 * breakpoint.c (breakpoint_hit_catch_fork)
9519 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9520 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9521 * infrun.c (inferior_has_forked, inferior_has_vforked)
9522 (inferior_has_execd, inferior_has_called_syscall): Delete.
9523 (handle_syscall_event): Get syscall_number from the execution
9524 control state's wait status.
9525 (wait_for_inferior): Don't clear syscall_number.
9526
09ac7c10
TT
95272012-01-24 Pedro Alves <palves@redhat.com>
9528
9529 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9530 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9531 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9532 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9533 `ws' parameter.
9534 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9535 false for events other than TARGET_SIGNAL_TRAP.
9536 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9537 Add `ws' parameter.
9538 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9539 events other than TARGET_SIGNAL_TRAP.
9540 (tracepoint_breakpoint_hit): Add `ws' parameter.
9541 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9542 parameter.
9543 (bpstat_stop_status): Same.
9544 (pc_at_non_inline_function): Same.
9545 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9546 to pass the current event's waitstatus to bpstat_stop_status
9547 and pc_at_non_inline_function.
9548
86eb7e95
JK
95492012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9550
9551 Code cleanup.
9552 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9553 Update the function comment for it.
9554 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9555 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9556 for STREAM.
9557
a9b3a50f
PA
95582012-01-24 Pedro Alves <palves@redhat.com>
9559
9560 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9561 outside `bs->stop' block.
9562 (bpstat_what): Rework bp_shlib_event handling.
9563 (internal_bkpt_check_status): If the breakpoint is a
9564 bp_shlib_event, then set bs->stop and bs->print if
9565 stop_on_solib_events is set.
9566
53fe1783
GB
95672012-01-24 Gary Benson <gbenson@redhat.com>
9568
9569 Delete #if 0'd out code.
9570 * stack.c (print_frame_label_vars): Remove.
9571 (catch_info): Likewise.
9572 (_initialize_stack): Remove "info catch" command.
9573 * NEWS: Mention the above.
9574
49c62f2e
PA
95752012-01-24 Pedro Alves <palves@redhat.com>
9576
9577 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9578 it.
9579 (remote_notice_new_inferior): If the remote end doesn't support
9580 the multiprocess extensions, then the PID is fake.
9581 (add_current_inferior_and_thread): New.
9582 (remote_start_remote): Use it.
9583 (extended_remote_attach_1): Adjust.
9584 (extended_remote_create_inferior_1): Use
9585 add_current_inferior_and_thread.
9586
d0d8b0c6
JK
95872012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9588
9589 Fix watchpoints to be specific for each inferior.
9590 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9591 current_program_space.
9592 * i386-nat.c (i386_inferior_data_cleanup): New.
9593 (i386_inferior_data_get): Replace variable inf_data_local by an
9594 inferior_data call.
9595 (i386_use_watchpoints): Initialize i386_inferior_data.
9596 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9597 specific iterate_over_lwps.
9598
4403d8e9
JK
95992012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9600
9601 Fix watchpoints across inferior fork.
9602 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9603 comment for linux_nat_iterate_watchpoint_lwps.
9604 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9605 linux_nat_iterate_watchpoint_lwps.
9606 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9607 * i386-linux-nat.c (update_debug_registers_callback): Update the
9608 comment for linux_nat_iterate_watchpoint_lwps.
9609 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9610 linux_nat_iterate_watchpoint_lwps.
9611 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9612 * i386-nat.c: Include inferior.h.
9613 (dr_mirror): Remove.
9614 (i386_inferior_data, struct i386_inferior_data)
9615 (i386_inferior_data_get): New.
9616 (i386_debug_reg_state): Use i386_inferior_data_get.
9617 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9618 (i386_insert_watchpoint, i386_remove_watchpoint)
9619 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9620 (i386_remove_hw_breakpoint): New variable state, use
9621 i386_debug_reg_state instead of DR_MIRROR.
9622 * linux-nat.c (delete_lwp): New declaration.
9623 (num_lwps): Move here from downwards.
9624 (delete_lwp_cleanup): New.
9625 (linux_child_follow_fork): Create new child_lp, call
9626 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9627 PTRACE_DETACH.
9628 (num_lwps): Move upwards.
9629 (linux_nat_iterate_watchpoint_lwps): New.
9630 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9631 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9632
2992c9a7 96332012-01-24 Joel Brobecker <brobecker@adacore.com>
9634
9635 GDB 7.4 released.
9636
e360902b
PA
96372012-01-23 Pedro Alves <palves@redhat.com>
9638
9639 * top.c (caution): Rename to ...
9640 (confirm): ... this.
9641 (show_caution): Rename to ...
9642 (show_confirm): ... this.
9643 (quit_cover): Adjust.
9644 (init_main): Adjust.
9645 * top.h (caution): Rename to ...
9646 (confirm): ... this.
9647 * utils.c (internal_vproblem, defaulted_query): Adjust.
9648
050a2e1d
PA
96492012-01-23 Pedro Alves <palves@redhat.com>
9650
9651 * top.c (caution): Update comment.
9652 (execute_command): Don't consider the current value of `caution'.
9653
77a35dd8
JK
96542012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9655
9656 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9657
a71b5a38
UW
96582012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9659
9660 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9661 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9662 * target.c (target_fileio_pwrite): Remove buffer address from
9663 debug output.
9664 (target_fileio_pread): Likewise.
9665
d99bd577
UW
96662012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9667
9668 * NEWS: Document remote "info proc" and "generate-core-file".
9669
35c2fab7
UW
96702012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9671
9672 * gdbarch.sh (find_memory_regions): New callback.
9673 * gdbarch.c, gdbarch.h: Regenerate.
9674
9675 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9676 callback before falling back to target method.
9677
9678 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9679 (linux_target_install_ops): No longer install it.
9680
9681 * linux-tdep.c (linux_find_memory_regions): New function.
9682 (linux_init_abi): Install it.
9683
6432734d
UW
96842012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9685
9686 * gdbarch.sh (make_corefile_notes): New architecture callback.
9687 * gdbarch.c: Regenerate.
9688 * gdbarch.h: Likewise.
9689
9690 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9691 before target_make_corefile_notes. If NULL is returned, the
9692 target does not support core file generation.
9693
9694 * linux-nat.c: Include "linux-tdep.h".
9695 (find_signalled_thread, find_stop_signal): Remove.
9696 (linux_nat_do_thread_registers): Likewise.
9697 (struct linux_nat_corefile_thread_data): Likewise.
9698 (linux_nat_corefile_thread_callback): Likewise.
9699 (iterate_over_spus): Likewise.
9700 (struct linux_spu_corefile_data): Likewise.
9701 (linux_spu_corefile_callback): Likewise.
9702 (linux_spu_make_corefile_notes): Likewise.
9703 (linux_nat_collect_thread_registers): New function.
9704 (linux_nat_make_corefile_notes): Replace contents by call to
9705 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9706 as native-only callback.
9707
9708 * linux-tdep.h: Include "bfd.h".
9709 (struct regcache): Add forward declaration.
9710 (linux_collect_thread_registers_ftype): New typedef.
9711 (linux_make_corefile_notes): Add prototype.
9712 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9713 "regset.h", and "elf-bfd.h".
9714 (find_signalled_thread, find_stop_signal): New functions.
9715 (linux_spu_make_corefile_notes): Likewise.
9716 (linux_collect_thread_registers): Likewise.
9717 (struct linux_corefile_thread_data): New data structure.
9718 (linux_corefile_thread_callback): New funcion.
9719 (linux_make_corefile_notes): Likewise.
9720 (linux_make_corefile_notes_1): Likewise.
9721 (linux_init_abi): Install it.
9722
3030c96e
UW
97232012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9724
9725 * gdbarch.sh (info_proc): New callback.
9726 * gdbarch.c, gdbarch.h: Regenerate.
9727
9728 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9729 before falling back to the target info_proc callback.
9730
9731 * linux-nat.c: Do not include "cli/cli-utils.h".
9732 (linux_nat_info_proc): Remove.
9733 (linux_target_install_ops): No longer install it.
9734
9735 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9736 (read_mapping): New function.
9737 (linux_info_proc): Likewise.
9738 (linux_init_abi): Install it.
9739
145b16a9
UW
97402012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9741
9742 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9743 * infcmd.c: (info_proc_cmd_1): New function.
9744 (info_proc_cmd): New function, moved here from equivalent routine
9745 orignally in linux-nat.c.
9746 (info_proc_cmd_mappings): Likewise.
9747 (info_proc_cmd_stat): Likewise.
9748 (info_proc_cmd_status): Likewise.
9749 (info_proc_cmd_cwd): Likewise.
9750 (info_proc_cmd_cmdline): Likewise.
9751 (info_proc_cmd_exe): Likewise.
9752 (info_proc_cmd_all): Likewise.
9753 (_initialize_infcmd): Install "info proc" command and subcommands.
9754
9755 * target.h (struct target_ops): Add to_info_proc.
9756 (target_info_proc): Add prototype.
9757 * target.c (target_info_proc): New function.
9758
9759 * procfs.c (procfs_info_proc): Add prototype.
9760 (info_proc_cmd): Rename into ...
9761 (procfs_info_proc): ... this. Update argument types as appropriate
9762 for a to_info_proc implementation. Handle "what" argument.
9763 (procfs_target): Install procfs_info_proc.
9764 (_initialize_procfs): No longer install "info proc" command.
9765
9766 * linux-nat.c: (enum info_proc_what): Remove.
9767 (linux_nat_info_proc_cmd_1): Rename into ...
9768 (linux_nat_info_proc): ... this. Update argument types as appropriate
9769 for a to_info_proc implementation.
9770 (linux_nat_info_proc_cmd): Remove.
9771 (linux_nat_info_proc_cmd_mappings): Likewise.
9772 (linux_nat_info_proc_cmd_stat): Likewise.
9773 (linux_nat_info_proc_cmd_status): Likewise.
9774 (linux_nat_info_proc_cmd_cwd): Likewise.
9775 (linux_nat_info_proc_cmd_cmdline): Likewise.
9776 (linux_nat_info_proc_cmd_exe): Likewise.
9777 (linux_nat_info_proc_cmd_all): Likewise.
9778 (linux_target_install_ops): Install linux_nat_info_proc.
9779 (_initialize_linux_nat): No longer install "info proc" command
9780 and subcommands.
9781
b9e7b9c3
UW
97822012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9783
9784 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9785 * config.in, configure: Regenerate.
9786
9787 * target.h (struct target_ops): Add to_fileio_readlink.
9788 (target_fileio_readlink): Add prototype.
9789 * target.c (target_fileio_readlink): New function.
9790
9791 * inf-child.c: Conditionally include <sys/param.h>.
9792 (inf_child_fileio_readlink): New function.
9793 (inf_child_target): Install it.
9794
9795 * remote.c (PACKET_vFile_readlink): New enum value.
9796 (remote_hostio_readlink): New function.
9797 (init_remote_ops): Install it.
9798 (_initialize_remote): Handle vFile:readlink packet type.
9799
7313baad
UW
98002012-01-20 Pedro Alves <palves@redhat.com>
9801 Ulrich Weigand <ulrich.weigand@linaro.org>
9802
9803 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9804 * config.in, configure: Regenerate.
9805
9806 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9807 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9808 (target_fileio_open): Add prototype.
9809 (target_fileio_pwrite): Likewise.
9810 (target_fileio_pread): Likewise.
9811 (target_fileio_close): Likewise.
9812 (target_fileio_unlink): Likewise.
9813 (target_fileio_read_alloc): Likewise.
9814 (target_fileio_read_stralloc): Likewise.
9815
9816 * target.c: Include "gdb/fileio.h".
9817 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9818 (default_fileio_target): New function.
9819 (target_fileio_open): Likewise.
9820 (target_fileio_pwrite): Likewise.
9821 (target_fileio_pread): Likewise.
9822 (target_fileio_close): Likewise.
9823 (target_fileio_unlink): Likewise.
9824 (target_fileio_close_cleanup): Likewise.
9825 (target_fileio_read_alloc_1): Likewise.
9826 (target_fileio_read_alloc): Likewise.
9827 (target_fileio_read_stralloc): Likewise.
9828
9829 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9830 <fcntl.h>, and <unistd.h>.
9831 (inf_child_fileio_open_flags_to_host): New function.
9832 (inf_child_errno_to_fileio_error): Likewise.
9833 (inf_child_fileio_open): Likewise.
9834 (inf_child_fileio_pwrite): Likewise.
9835 (inf_child_fileio_pread): Likewise.
9836 (inf_child_fileio_close): Likewise.
9837 (inf_child_fileio_unlink): Likewise.
9838 (inf_child_target): Install to_fileio routines.
9839
9840 * remote.c (init_remote_ops): Install to_fileio routines.
9841
901f9912
UW
98422012-01-20 Pedro Alves <palves@redhat.com>
9843 Ulrich Weigand <ulrich.weigand@linaro.org>
9844
9845 * remote.c (remote_multi_process_p): Only check for multi-process
9846 protocol feature, do not check for extended protocol.
9847 (remote_supports_multi_process): Check for extended protocol here.
9848 (set_general_process): Likewise.
9849 (extended_remote_kill): Likewise.
9850 (remote_pid_to_str): Likewise.
9851 (remote_query_supported): Always query multiprocess mode.
9852
e714e1bf
UW
98532012-01-20 Pedro Alves <palves@redhat.com>
9854 Ulrich Weigand <ulrich.weigand@linaro.org>
9855
9856 * inferior.h (struct inferior): Add fake_pid_p.
9857 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9858 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9859 magic_null_ptid since the remote side doesn't provide a real PID.
9860
50897289
TT
98612012-01-19 Tom Tromey <tromey@redhat.com>
9862
9863 * NEWS: Combine the two Python sections.
9864
1afc2033
JK
98652012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9866
9867 * target.h (target_close): Update comment on the target's unpush state.
9868
305436e0
PA
98692012-01-19 Pedro Alves <palves@redhat.com>
9870
9871 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9872 linux_nat_async directly instead of going through the target
9873 vector.
9874 * target.c (unpush_target): Close target after unpushing it, not
9875 before.
9876
49323895
GB
98772012-01-19 Gary Benson <gbenson@redhat.com>
9878
9879 * mdebugread.c (sort_blocks): Replace integer constants with ones
9880 derived from FIRST_LOCAL_BLOCK.
9881
1db33378
PP
98822012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9883 Jan Kratochvil <jan.kratochvil@redhat.com>
9884
9885 PR gdb/9538
9886 * symfile.c (find_separate_debug_file): New function.
9887 (terminate_after_last_dir_separator): Likewise.
9888 (find_separate_debug_file_by_debuglink): Also try realpath.
9889 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9890 * configure: Regenerate.
9891 * config.in: Regenerate.
9892
f83d8a90
DE
98932012-01-18 Doug Evans <dje@google.com>
9894
9895 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9896 (main.o): Remove rule.
9897 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9898 (--with-sysroot): Rewrite.
9899 * configure: Regenerate.
9900 * config.in: Regenerate.
9901
2dbca4d6
SDJ
99022012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9903
9904 * parse.c (initialize_expout): New function.
9905 (reallocate_expout): Likewise.
9906 (parse_exp_in_context): Use `initialize_expout' and
9907 `reallocate_expout' when appropriate.
9908
0695b514
PA
99092012-01-18 Pedro Alves <palves@redhat.com>
9910
9911 * record.c (struct record_breakpoint, record_breakpoint_p)
9912 (record_breakpoints): New.
9913 (record_insert_breakpoint, record_remove_breakpoint): Manage
9914 record breakpoints list. Only remove breakpoints from the
9915 inferior if they had been inserted there in the first place.
9916
136e1c30
DE
99172012-01-17 Doug Evans <dje@google.com>
9918
9919 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9920 if we know we don't have a file name to look for.
9921
c0bf857d
PA
99222012-01-17 Pedro Alves <palves@redhat.com>
9923
9924 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9925 the frame's stop reason is UNWIND_UNAVAILABLE.
9926
b486de60
JK
99272012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9928
9929 Fix compilation error.
9930 * m2-exp.y (yyerror): Use ANSI C prototype.
9931
d04550a6
SDJ
99322012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9933
9934 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9935 (growbuf_by_size): Likewise.
9936 (yyerror): Likewise.
9937 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9938 (modblock): Remove variable (was #if 0'ed).
9939 (parse_number): Convert prototype from K&R to ANSI C.
9940 (yyerror): Likewise.
9941 * objc-exp.y (parse_number): Likewise.
9942 (yyerror): Likewise.
9943 (yylex): Remove #if 0'ed code.
9944 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9945 (yyerror): Likewise.
9946
4aac40c8
TT
99472012-01-16 Tom Tromey <tromey@redhat.com>
9948
9949 * NEWS: Add item.
9950 * symtab.h (compare_filenames_for_search): Declare.
9951 * symtab.c (compare_filenames_for_search): New function.
9952 (iterate_over_some_symtabs): Use it.
9953 * symfile.h (struct quick_symbol_functions)
9954 <map_symtabs_matching_filename>: Change spec.
9955 * psymtab.c (partial_map_symtabs_matching_filename): Use
9956 compare_filenames_for_search. Update for new spec.
9957 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9958 compare_filenames_for_search. Update for new spec.
9959 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9960
cafec441
TT
99612012-01-16 Tom Tromey <tromey@redhat.com>
9962
9963 PR python/13281:
9964 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9965 (struct main_type) <flag_flag_enum>: New field.
9966 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9967 * NEWS: Add entries.
9968 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9969 enums.
9970 * python/lib/gdb/printing.py (_EnumInstance): New class.
9971 (FlagEnumerationPrinter): Likewise.
9972
983af33b
SDJ
99732012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9974
9975 * breakpoint.c (create_sals_from_address_default): New function.
9976 (create_breakpoints_sal_default): Likewise.
9977 (decode_linespec_default): Likewise.
9978 (is_marker_spec): Removed.
9979 (strace_marker_p): New function.
9980 (init_breakpoint_sal): Using `strace_marker_p' instead of
9981 `is_marker_spec'.
9982 (create_breakpoint): Call method `create_sals_from_address' from
9983 breakpoint_ops, replacing code that created SALs conditionally
9984 on the type of the breakpoint. Call method `create_breakpoints_sal',
9985 replacing code that created breakpoints conditionally on the type
9986 wanted.
9987 (base_breakpoint_create_sals_from_address): New function.
9988 (base_breakpoint_create_breakpoints_sal): Likewise.
9989 (base_breakpoint_decode_linespec): Likewise.
9990 (base_breakpoint_ops): Add methods
9991 `base_breakpoint_create_sals_from_address',
9992 `base_breakpoint_create_breakpoints_sal' and
9993 `base_breakpoint_decode_linespec'.
9994 (bkpt_create_sals_from_address): New function.
9995 (bkpt_create_breakpoints_sal): Likewise.
9996 (bkpt_decode_linespec): Likewise.
9997 (tracepoint_create_sals_from_address): Likewise.
9998 (tracepoint_create_breakpoints_sal): Likewise.
9999 (tracepoint_decode_linespec): Likewise.
10000 (strace_marker_create_sals_from_address): Likewise.
10001 (strace_marker_create_breakpoints_sal): Likewise.
10002 (strace_marker_decode_linespec): Likewise.
10003 (strace_marker_breakpoint_ops): New variable.
10004 (addr_string_to_sals): Remove `marker_spec'. Call method
10005 `decode_linespec' from breakpoint_ops, replacing code that decoded
10006 an address string into a SAL. Use `strace_marker_p' instead of
10007 `marker_spec'.
10008 (strace_command): Decide whether we are dealing with a static
10009 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10010 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10011 * breakpoint.h (linespec_result, linespec_sals): New forward
10012 declarations.
10013 (breakpoint_ops) <create_sals_from_address>,
10014 <create_breakpoints_sal>, <decode_linespec>: New methods.
10015
4795f398
DE
100162012-01-14 Doug Evans <dje@google.com>
10017
10018 * NEWS: Update text for "maint set python print-stack".
10019 It is deprecated in gdb 7.4 and deleted in 7.5.
10020
ee5106fe
EZ
100212012-01-13 Eli Zaretskii <eliz@gnu.org>
10022
10023 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10024 including curses.h.
10025
b161e06f
JK
100262012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10027
10028 * configure: Regenerate.
10029 * config.in: Regenerate.
10030
85254831
KS
100312012-01-12 Keith Seitz <keiths@redhat.com>
10032
10033 PR mi/10586
10034 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10035 (ANONYMOUS_UNION_NAME): Define.
10036 (is_path_expr_parent): New function.
10037 (get_path_expr_parent): New function.
10038 (is_anonymous_child): New function.
10039 (create_child_with_value): If the child is anonymous and without
10040 a name, assign an object name to it.
10041 (c_describe_child): Use get_path_expr_parent to determine
10042 the parent expression.
10043 If there field represents an anonymous struct or union and
10044 has no name, set an appropriate display name and expression.
10045 (cplus_describe_child): Likewise.
10046
620fa63a
PA
100472012-01-12 Pedro Alves <palves@redhat.com>
10048
10049 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10050 available when %ebp is found to be zero (outermost).
10051
2efa2c79
AT
100522012-01-11 Andreas Tobler <andreast@fgznet.ch>
10053
10054 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10055 an internal gdb_static_assert.
10056 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10057
88e7d25d
TT
100582012-01-11 Tom Tromey <tromey@redhat.com>
10059
10060 PR gdb/9598:
10061 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10062 catch" and "catch throw".
10063
72384ba3
PH
100642012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10065
10066 * blockframe.c (block_innermost_frame): Start search from selected
10067 frame, if present, or otherwise the current frame.
10068
10069 * c-exp.y (variable): Update innermost_block for
10070 'block COLONCOLON NAME' clause.
10071 * m2-exp.y (variable): Ditto.
10072 * objc-exp.y (variable): Ditto.
10073
065a711f
TT
100742012-01-10 Tom Tromey <tromey@redhat.com>
10075
10076 PR python/13199:
10077 * python/python.c (finish_python_initialization): Set sys.argv.
10078
f3f5162e
DE
100792012-01-10 Doug Evans <dje@google.com>
10080
10081 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10082 "want_line_info". All callers updated.
10083 (dwarf_decode_lines_1): New function.
10084 (handle_DW_AT_stmt_list): Add function comment.
10085 New arg "want_line_info". All callers updated.
10086 (read_file_scope,read_type_unit_scope): Move comment from
10087 handle_DW_AT_stmt_list to here.
10088
9934703b
JK
100892012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10090
10091 Fix regression after libiberty/ update for GCC PR 6057 and others.
10092 * c-exp.y (operator) <OPERATOR DELETE>
10093 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10094 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10095 (make_builtin_type, make_name): New variable i, add gdb_assert.
10096 (operator) <OPERATOR NEW>: Update ARGS to 3.
10097 (operator) <OPERATOR DELETE>: Add trailing space.
10098 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10099 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10100 * cp-support.c (cp_canonicalize_string): Check NULL from
10101 cp_comp_to_string, call warning and return.
10102
06b9f45f
JK
101032012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10104
10105 Fix duplicate .o files after omitting libbfd.a.
10106 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10107 (SFILES): Add corelow.c.
10108 (COMMON_OBS): Add corelow.o.
10109 (ALLDEPFILES): Remove corelow.c.
10110 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10111 * config/alpha/alpha-osf3.mh: Likewise.
10112 * config/alpha/fbsd.mh: Likewise.
10113 * config/arm/nbsdaout.mh: Likewise.
10114 * config/arm/nbsdelf.mh: Likewise.
10115 * config/i386/i386gnu.mh: Likewise.
10116 * config/ia64/hpux.mh: Likewise.
10117 * config/ia64/linux.mh: Likewise.
10118 * config/m32r/linux.mh: Likewise.
10119 * config/m68k/linux.mh: Likewise.
10120 * config/mips/irix5.mh: Likewise.
10121 * config/mips/irix6.mh: Likewise.
10122 * config/pa/hpux.mh: Likewise.
10123 * config/pa/linux.mh: Likewise.
10124 * config/powerpc/aix.mh: Likewise.
10125 * config/sparc/linux.mh: Likewise.
10126 * config/sparc/linux64.mh: Likewise.
10127 * config/sparc/sol2.mh: Likewise.
10128 * config/vax/vax.mh: Likewise.
10129 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10130 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10131 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10132 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10133 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10134 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10135 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10136 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10137 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10138 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10139 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10140 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10141 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10142 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10143 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10144 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10145 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10146 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10147 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10148 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10149 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10150 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10151 corelow.o from gdb_target_obs.
10152 * corefile.c (core_target): Update the comment on NULL value.
10153 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10154 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10155 MATCHES. Drop YUMMY set on NULL.
10156 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10157 reclaim CORE_DATA if it is already NULL.
10158
34365054
DE
101592012-01-09 Doug Evans <dje@google.com>
10160
10161 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10162 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10163
696166a3
KS
101642012-01-09 Keith Seitz <keiths@redhat.com>
10165
10166 * breakpoint.c (wrapper.h): Don't include.
10167
8e7b59a5
KS
101682012-01-09 Keith Seitz <keiths@redhat.com>
10169
10170 * Makefile.in (SFILES): Remove wrapper.c.
10171 (HFILES_NO_SRCDIR): Remove wrapper.h.
10172 (COMMON_OBS): Remove wrapper.o.
10173 * cli/cli-interp.c: Don't inlude wrapper.h.
10174 * corelow.c: Likewise.
10175 (core_open): Replace gdb_target_find_new_threads with
10176 TRY_CATCH around target_find_new_threads.
10177 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10178 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10179 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10180 evaluate_expression.
10181 (varobj_set_value): Likewise for evaluate_expression and
10182 value_assign.
10183 (install_new_variable): Likewise for value_fetch_lazy.
10184 (adjust_value_for_child_access): Likewise for value_ind.
10185 (c_describe_child): Likewise for value_subscript and
10186 value_ind.
10187 (c_value_of_root): Likewise for evaluate_expression.
10188 * wrapper.c: Remove.
10189 * wrapper.h: Remove.
10190
1a4eeb98
DE
101912012-01-09 Doug Evans <dje@google.com>
10192
9ff913ba
DE
10193 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10194 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10195 "abfd" args with "section". All callers updated.
10196 Error checking code moved ...
10197 (error_check_comp_unit_head): ... here. New function.
10198 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10199 Delete arg "abfd". New arg "type_offset". All callers updated.
10200 (create_debug_types_hash_table): Simplify by using
10201 read_and_check_type_unit_head.
10202
1a4eeb98
DE
10203 * parser-defs.h (namecopy): Delete.
10204 * parse.c (namecopy, namecopy_size): Move into copy_name.
10205
2e6af8c0
JK
102062012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10207
10208 Partially fix duplicate .o files after omitting libbfd.a.
10209 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10210 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10211 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10212 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10213 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10214 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10215 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10216
9f2f828a
PA
102172012-01-09 Pedro Alves <palves@redhat.com>
10218
10219 * MAINTAINERS: Update my email address.
10220
4d72c0bc
DE
102212012-01-08 Doug Evans <dje@google.com>
10222
d467dd73
DE
10223 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10224 n_type_units. Rename type_comp_units to all_type_units.
10225 All uses updated.
10226 (add_signatured_type_cu_to_table): Renamed from
10227 add_signatured_type_cu_to_list. All callers updated.
10228
4d72c0bc
DE
10229 * gdbtypes.h (struct cplus_struct_type): Delete member
10230 nfn_fields_total. All uses removed.
10231
21b2bd31
DE
102322012-01-06 Doug Evans <dje@google.com>
10233
10234 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10235 to top of file.
10236 (dwarf2_find_comp_unit): Delete.
10237 (process_psymtab_comp_unit): Make result "void".
10238 Delete args buffer, info_ptr, buffer_size, and replace with
10239 "section". All callers updated.
10240 (dwarf2_build_psymtabs_hard): Simplify.
10241
bfd189b1
SDJ
102422012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10243 Thiago Jung Bauermann <bauerman@br.ibm.com>
10244
10245 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10246 before `struct gdb_exception'.
10247 * breakpoint.c (update_global_location_list_nothrow)
10248 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10249 * cp-abi.c (value_rtti_type): Likewise.
10250 * cp-support.c (cp_validate_operator): Likewise.
10251 * infrun.c (insert_exception_resume_breakpoint)
10252 (check_exception_resume, keep_going): Likewise.
10253 * mi-interp.c (mi_breakpoint_created)
10254 (mi_breakpoint_modified): Likewise.
10255 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10256 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10257 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10258
6b07635f
DE
102592012-01-05 Doug Evans <dje@google.com>
10260
0b30b85c
DE
10261 * dwarf2read.c (statement_prologue): Delete, unused.
10262
98714339
DE
10263 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10264 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10265
6b07635f
DE
10266 * dwarf2read.c (comp_unit_header): Delete, unused.
10267
761f4555
UW
102682012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10269
10270 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10271 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10272
2ca0b532
PA
102732012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10274
10275 * infrun.c (normal_stop): Don't skip calling the normal_stop
10276 observers if the thread was doing a multi-step, but stopped for
10277 some reason other than stepping.
10278
50aeff07
PA
102792012-01-05 Pedro Alves <alves.ped@gmail.com>
10280
10281 * cli/cli-decode.h: Add comments.
10282 (CMD_LIST_AMBIGUOUS): Moved to command.h
10283 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10284 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10285 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10286 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10287 (add_com, add_com_alias, add_info, add_info_alias)
10288 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10289 declarations.
10290 * command.h: Add and adjust comments.
10291 (CMD_LIST_AMBIGUOUS): Moved here.
10292 (help_cmd, help_cmd_list): Delete declarations.
10293
5953832c
DE
102942012-01-04 Doug Evans <dje@google.com>
10295
e5fe5e75
DE
10296 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10297 All callers updated.
10298 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10299 Replace all arguments with "per_cu". All callers updated.
10300
28dee7f5
DE
10301 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10302
23745b47
DE
10303 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10304 New arg "per_cu". All callers updated.
10305
5953832c
DE
10306 Delete #if 0'd out code.
10307 * language.c (binop_result_type): Delete.
10308 (simple_type, ordered_type, same_type, integral_type): Delete.
10309 (numeric_type, character_type, string_type, boolean_type): Delete.
10310 (float_type, structured_type): Delete.
10311 * language.h: Update.
10312
0f5b7562
TT
103132012-01-04 Tom Tromey <tromey@redhat.com>
10314
10315 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10316
78218f56
JB
103172012-01-04 Joel Brobecker <brobecker@adacore.com>
10318
10319 * corefile.c (close_exec_file): Delete.
10320 (reopen_exec_file): Remove commented out code that seems related
10321 to close_exec_file, which is being deleted here.
10322 * inferior.h (close_exec_file): Delete.
10323 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10324
0fcd72ba
JB
103252012-01-04 Joel Brobecker <brobecker@adacore.com>
10326
10327 * ada-lang.c: #include "cli/cli-utils.h".
10328 (get_selections): Use skip_spaces.
10329 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10330 (catch_ada_exception_command_split): Use skip_spaces.
10331 (ada_decode_assert_location): Likewise.
10332
1dabb4c4
JB
103332012-01-04 Joel Brobecker <brobecker@adacore.com>
10334
10335 * linespec.c (decode_line_internal): Check for C++ or Java
10336 compound constructs only if the current language is C, C++
10337 or Java.
10338
5931a2fa
JK
103392012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10340
10341 Revert:
10342 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10343 Joel Brobecker <brobecker@adacore.com>
10344 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10345 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10346 3 times.
10347 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10348 fall through into AT_ENTRY_POINT.
10349 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10350 DUMMY_ADDR with it.
10351 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10352 PPC_INSN_SIZE skip to 3 times.
10353
1a2da5ee
JB
103542012-01-04 Joel Brobecker <brobecker@adacore.com>
10355
10356 * linespec.c (add_minsym): Preserve function descriptors.
10357
8645ff69
UW
103582012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10359
10360 * breakpoint.c (all_locations_are_pending): Consider locations
10361 in program spaces executing during startup pending as well.
10362
0b302171
JB
103632012-01-04 Joel Brobecker <brobecker@adacore.com>
10364
10365 Copyright year update in most files of the GDB Project.
10366
8ba098ad
JB
103672012-01-04 Joel Brobecker <brobecker@adacore.com>
10368
10369 * copyright.sh: Delete.
10370 * copyright.py: Rewrite.
10371
09c01c30
JB
103722012-01-04 Joel Brobecker <brobecker@adacore.com>
10373
10374 * gnulib/extra/update-copyright: New file, imported from gnulib.
10375
3c36c0af
JB
103762012-01-04 Joel Brobecker <brobecker@adacore.com>
10377
10378 * README (Copyright and License Notices): New section.
10379
888fe1e1
TT
103802012-01-03 Tom Tromey <tromey@redhat.com>
10381
10382 PR python/12533:
10383 * python/py-value.c (valpy_dereference, valpy_get_address
10384 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10385 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10386 (valpy_absolute, valpy_richcompare): Free intermediate values.
10387
6e681866
JB
103882011-01-03 Joel Brobecker <brobecker@adacore.com>
10389
10390 * ada-lang.c: Reformat the copyright notice.
10391
0cd09acb
JK
103922012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10393
10394 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10395 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10396 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10397 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10398 Revert this part of:
10399 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10400 Build gdb directly from *.o files not using libgdb.a.
10401 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10402
12c3e59c
JB
104032012-01-02 Joel Brobecker <brobecker@adacore.com>
10404
10405 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10406 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10407 Reformat the copyright header.
10408
11bf1490
JK
104092012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10410
10411 Revert this part of:
10412 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10413 Remove the gdbtui binary.
10414 * gdb.c (main): Remove args.interpreter_p initialization.
10415 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10416 * main.h (struct captured_main_args): Remove interpreter_p.
10417
1fef196f
JB
104182012-01-02 Joel Brobecker <brobecker@adacore.com>
10419
10420 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10421
67827812
JB
104222012-01-02 Joel Brobecker <brobecker@adacore.com>
10423
10424 * top.c (print_gdb_version): Update copyright year.
10425
a4d0b831
YQ
104262012-01-02 Yao Qi <yao@codesourcery.com>
10427
10428 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10429
b5914469
JK
104302012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10431 Joel Brobecker <brobecker@adacore.com>
10432
10433 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10434 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10435 3 times.
10436 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10437 fall through into AT_ENTRY_POINT.
10438 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10439 DUMMY_ADDR with it.
10440 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10441 PPC_INSN_SIZE skip to 3 times.
10442
8da828f7
JK
104432012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10444
10445 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10446 the return value.
10447 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10448
8574e74b
JK
104492012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10450
10451 Build gdb directly from *.o files not using libgdb.a.
10452 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10453 (COMMON_OBS): Remove solib-target.o.
10454 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10455 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10456 (LIBGDB_OBS, libgdb.a): Move it above.
10457 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10458 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10459 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10460 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10461 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10462 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10463 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10464 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10465 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10466 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10467 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10468 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10469 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10470 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10471 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10472 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10473 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10474 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10475 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10476 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10477 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10478 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10479 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10480 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10481 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10482 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10483 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10484
217bff3e
JK
104852012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10486
10487 Remove the gdbtui binary.
10488 * .gitignore (/gdbtui): Remove.
10489 * Makefile.in (TUI): Remove.
10490 (SUBDIR_TUI_OBS): Remove tui-main.o.
10491 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10492 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10493 (tui-main.o): Remove.
10494 (all_object_files): Remove tui-main.o.
10495 * NEWS: New note for the gdbtui removal.
10496 * configure: Rebuilt.
10497 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10498 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10499 CONFIG_UNINSTALL respectively.
10500 * gdb.c (main): Remove args.interpreter_p initialization.
10501 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10502 * main.h (struct captured_main_args): Remove interpreter_p.
10503 * tui/tui-main.c: Remove.
10504
9cdd5dbd
DE
105052012-01-01 Doug Evans <dje@google.com>
10506
bb5ed363
DE
10507 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10508 (dwarf2_physname, read_import_statement): Ditto.
10509 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10510 (process_structure_scope read_subroutine_type): Ditto.
10511 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10512 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10513 (dwarf2_fetch_die_location_block): Ditto.
10514 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10515
a0f42c21
DE
10516 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10517 All callers updated.
10518 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10519 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10520 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10521
2dc860c0
DE
10522 * dwarf2read.c (load_cu): Move assert to more useful location.
10523
68dc6402
DE
10524 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10525 All callers updated.
10526
9cdd5dbd
DE
10527 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10528 (dwarf2_elf_names): Minor reformat.
10529 (dwarf2_per_cu_data): Tweak comment.
10530 (dwarf2_read_section): Fix comment.
10531 (create_all_comp_units): Fix comment.
10532 (load_full_comp_unit): Fix comment.
10533 (process_full_comp_unit): Fix comment.
10534 (read_signatured_type): Fix comment.
10535
0c10e53e 10536For older changes see ChangeLog-2011.
c906108c
SS
10537\f
10538Local Variables:
10539mode: change-log
10540left-margin: 8
10541fill-column: 74
10542version-control: never
57da7796 10543coding: utf-8
c906108c 10544End:
This page took 3.083803 seconds and 4 git commands to generate.