Extraneous NULL in linux_target_ops when HAVE_LINUX_BTRACE not defined
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6f937416
PA
12013-03-13 Pedro Alves <palves@redhat.com>
2
3 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
4 fields const.
5 (ada_make_symbol_completion_list): Make "text0" parameter const.
6 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7 * breakpoint.c (condition_completer): Make "text" and "word"
8 parameters const. Adjust.
9 (check_tracepoint_command): Adjust to validate_actionline
10 prototype change.
11 (catch_syscall_completer): Make "text" and "word" parameters
12 const.
13 * cli/cli-cmds.c (show_user): Make "comname" local const.
14 (valid_command_p): Make "command" parameter const.
15 (alias_command): Make "alias_prefix" and "command_prefix" locals
16 const.
17 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
18 (add_alias_cmd): Make "name" and "oldname" parameters const.
19 Adjust. No longer make copy of OLDNAME.
20 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
21 (add_setshow_cmd_full, add_setshow_enum_cmd)
22 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
23 (add_setshow_filename_cmd, add_setshow_string_cmd)
24 (add_setshow_string_noescape_cmd)
25 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
26 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
27 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
28 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
29 Make "name" parameter const.
30 (help_cmd): Rename "command" parameter to "arg". New const local
31 "command".
32 (find_cmd): Make "command" parameter const.
33 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
34 deprecated_cmd_warning prototype change.
35 (undef_cmd_error): Make "cmdtype" parameter const.
36 (lookup_cmd): Make "line" parameter const.
37 (deprecated_cmd_warning): Change type of "text" parameter to
38 pointer to const char, from pointer to pointer to char. Adjust.
39 (lookup_cmd_composition): Make "text" parameter const.
40 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
41 parameters const.
42 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
43 const.
44 * cli/cli-script.c (validate_comname): Make "tem" local const.
45 (define_command): New const local "tem_c". Use it in calls to
46 lookup_cmd.
47 (document_command): Make "tem" and "comfull" locals const.
48 (show_user_1): Make "prefix" and "name" parameters const.
49 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
50 const.
51 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
52 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
53 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
54 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
55 (complete_on_enum, add_setshow_enum_cmd)
56 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
57 (add_setshow_filename_cmd, add_setshow_string_cmd)
58 (add_setshow_string_noescape_cmd)
59 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
60 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
61 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
62 Change prototypes, constifying strings.
63 * completer.c (noop_completer, filename_completer): Make "text"
64 and "prefix" parameters const.
65 (location_completer, expression_completer)
66 (complete_line_internal): Make "text" and "prefix" parameters
67 const and adjust.
68 (command_completer, signal_completer): Make "text" and "prefix"
69 parameters const.
70 * completer.h (noop_completer, filename_completer)
71 (expression_completer, location_completer, command_completer)
72 (signal_completer): Change prototypes.
73 * corefile.c (complete_set_gnutarget): Make "text" and "word"
74 parameters const.
75 * cp-abi.c (cp_abi_completer): Likewise.
76 * expression.h (parse_expression_for_completion): Change
77 prototype.
78 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
79 parameters const.
80 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
81 * infrun.c (handle_completer): Make "text" and "word" parameters
82 const.
83 * interps.c (interpreter_completer): Make "text" and "word"
84 parameters const.
85 * language.h (struct language_defn)
86 <la_make_symbol_completion_list>: Make "text" and "word"
87 parameters const.
88 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
89 (parse_exp_in_context): Rename to ...
90 (parse_exp_in_context_1): ... this.
91 (parse_exp_in_context): Reimplement, with const hack from
92 parse_exp_1.
93 (parse_expression_for_completion): Make "string" parameter const.
94 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
95 to pointer to const char. Adjust.
96 (print_command_1): Make "exp" parameter const.
97 (output_command): Rename to ...
98 (output_command_const): ... this. Make "exp" parameter const.
99 (output_command): Reimplement.
100 (x_command): Adjust.
101 (display_command): Rename "exp" parameter to "arg". New "exp"
102 local, const version of "arg".
103 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
104 "cmd_name" local const.
105 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
106 call.
107 (cmdpy_completer): Make "text" and "word" parameters const.
108 (gdbpy_parse_command_name): Make "prefix_text2" local const.
109 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
110 const.
111 * remote.c (_initialize_remote): Make "cmd_name" local const.
112 * symtab.c (language_search_unquoted_string): Make "text" and "p"
113 parameters const. Adjust.
114 (completion_list_add_fields): Make "sym_text", "text" and "word"
115 parameters const.
116 (struct add_name_data) <sym_text, text, word>: Make fields const.
117 (default_make_symbol_completion_list_break_on): Make "text" and
118 "word" parameters const. Adjust locals.
119 (default_make_symbol_completion_list)
120 (make_symbol_completion_list, make_symbol_completion_type)
121 (make_symbol_completion_list_fn): Make "text" and "word"
122 parameters const.
123 (make_file_symbol_completion_list): Make "text", "word" and
124 "srcfile" parameters const. Adjust locals.
125 (add_filename_to_list): Make "text" and "word" parameters const.
126 (struct add_partial_filename_data) <text, word>: Make fields
127 const.
128 (make_source_files_completion_list): Make "text" and "word"
129 parameters const.
130 * symtab.h (default_make_symbol_completion_list_break_on)
131 (default_make_symbol_completion_list, make_symbol_completion_list)
132 (make_symbol_completion_type enum type_code)
133 (make_symbol_completion_list_fn make_file_symbol_completion_list)
134 (make_source_files_completion_list): Change prototype.
135 * top.c (execute_command): Adjust to pass pointer to pointer to
136 const char to lookup_cmd, and to deprecated_cmd_warning prototype
137 change.
138 (set_verbose): Make "cmdname" local const.
139 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
140 and adjust.
141 (validate_actionline): Make "line" parameter a pointer to const
142 char, and adjust.
143 (encode_actions_1): Make "action_exp" local const, and adjust.
144 (encode_actions): Adjust.
145 (replace_comma): Delete.
146 (trace_dump_actions): Make "action_exp" and "next_comma" locals
147 const, and adjust. Don't frob the action string while splitting
148 it at commas. Instead, make a copy of each split substring in
149 turn.
150 (trace_dump_command): Adjust to validate_actionline prototype
151 change.
152 * tracepoint.h (decode_agent_options, decode_agent_options)
153 (encode_actions, validate_actionline): Change prototypes.
154 * valprint.h (output_command): Delete declaration.
155 (output_command_const): Declare.
156 * value.c (function_destroyer): Cast const away in xfree call.
157
a0bcdaa7
PA
1582013-03-13 Pedro Alves <palves@redhat.com>
159
160 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
161 rather than casting 'const char * const *' to 'const char **'.
162 * ada-lex.l (processInt): Make "trailer" local const. Remove
163 'const char **' cast.
164 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
165 locals, and use those as strtol output pointer, instead than doing
166 invalid casts to from 'const char **' to 'char **'.
167 (_initialize_demangle): Remove cast.
168 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
169 locals, and use those as strtol output pointer, instead than doing
170 invalid casts to from 'const char **' to 'char **'.
171 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
172 casts.
173 * stap-probe.c (stap_parse_register_operand)
174 (stap_parse_single_operand): Likewise.
175
8ddb1965
YQ
1762013-03-13 Yao Qi <yao@codesourcery.com>
177
178 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
179 the last matched 'V' blcok in trace frame.
180
2d450646
JB
1812013-03-12 Joel Brobecker <brobecker@adacore.com>
182
183 * NEWS: Create a new section for the next release branch.
184 Rename the section of the current branch, now that it has
185 been cut.
186
b4b79973 1872013-03-12 Joel Brobecker <brobecker@adacore.com>
188
189 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
190 * version.in: Bump version to 7.6.50.20130312-cvs.
191
ee047554
KS
1922013-03-12 Keith Seitz <keiths@redhat.com>
193
194 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
195 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
196 Remove temporary copy of input string.
197 (mi_execute_command_wrapper): Make "cmd" const.
198 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
199 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
200 Use const strings.
201 (mi_parse): Make "cmd" const.
202 Use const strings.
203 * mi/mi-parse.h (mi_parse): Make "cmd" const.
204
bbc13ae3
KS
2052013-03-12 Keith Seitz <keiths@redhat.com>
206
207 * ada-lang.c (ada_read_renaming_var_value): Pass const
208 pointer to expression string to parse_exp_1.
209 (create_excep_cond_exprs): Likewise.
210 * ax-gdb.c (agent_eval_command_one): Likewise.
211 (maint_agent_printf_command): Likewise.
212 Constify much of the string handling/parsing.
213 * breakpoint.c (set_breakpoint_condition): Pass const
214 pointer to expression string to parse_exp_1.
215 (update_watchpoint): Likewise.
216 (parse_cmd_to_aexpr): Constify string handling.
217 Pass const pointer to parse_exp_1.
218 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
219 (find_condition_and_thread): Likewise.
220 Make TOK const.
221 (watch_command_1): Make "arg" const.
222 Constify string handling.
223 Copy the expression string instead of changing the input
224 string.
225 (update_breakpoint_location): Pass const pointer to
226 parse_exp_1.
227 * eval.c (parse_and_eval_address): Make "exp" const.
228 (parse_to_comma_and_eval): Make "expp" const.
229 (parse_and_eval): Make "exp" const.
230 * expression.h (parse_expression): Make argument const.
231 (parse_exp_1): Make first argument const.
232 * findcmd.c (parse_find_args): Treat "args" as const.
233 * linespec.c (parse_linespec): Pass const pointer to
234 linespec_expression_to_pc.
235 (linespec_expression_to_pc): Make "exp_ptr" const.
236 * parse.c (parse_exp_1): Make "stringptr" const.
237 Make a copy of the expression to pass to parse_exp_in_context until
238 this whole interface can be constified.
239 (parse_expression): Make "string" const.
240 * printcmd.c (ui_printf): Treat "arg" as const.
241 Handle const strings.
242 * tracepoint.c (validate_actionline): Pass const pointer to
243 all calls to parse_exp_1.
244 (encode_actions_1): Likewise.
245 * value.h (parse_to_comma_and_eval): Make argument const.
246 (parse_and_eval_address): Likewise.
247 (parse_and_eval): Likewise.
248 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
249 (varobj_set_value): Likewise.
250 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
251 constify string handling.
252 Pass const pointers to parse_and_eval_address and
253 parse_to_comman_and_eval.
254 * cli/cli-utils.c (skip_to_space): Rename to ...
255 (skip_to_space_const): ... this. Handle const strings.
256 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
257 skip_to_space_const.
258 (skip_to_space_const): Declare.
259 * common/format.c (parse_format_string): Make "arg" const.
260 Handle const strings.
261 * common/format.h (parse_format_string): Make "arg" const.
262 * gdbserver/ax.c (ax_printf): Make "format" const.
263 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
264 of the expression string.
265
f3cec7e6
HZ
2662013-03-12 Hui Zhu <hui@codesourcery.com>
267
268 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
269
9df7235c
HZ
2702013-03-12 Yao Qi <yao@codesourcery.com>
271 Hui Zhu <hui@codesourcery.com>
272
273 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
274 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
275 DW_OP_deref_size.
276
82d049ab
PH
2772013-03-12 Paul Hilfinger <hilfingr@adacore.com>
278
279 * ada-lex.l (rules): Only recognize 'thread' as a
280 delimiter when followed by numerals, as for c-exp.y.
281 Use new rewind_to_char function to rewind the input for
282 expression-delimiting tokens.
283 (rewind_to_char): New function.
284
8c1fb155
JK
2852013-03-11 Pedro Alves <palves@redhat.com>
286 Jan Kratochvil <jan.kratochvil@redhat.com>
287
288 * configure: Regenerate.
289 * configure.ac (check dynamic export flag): Link python test with
290 $PYTHON_LIBS.
291
cc81e1c6
DE
2922013-03-11 Doug Evans <dje@google.com>
293 Keith Seitz <keiths@redhat.com>
294
295 * linespec.c (find_linespec_symbols): Call find_function_symbols
296 first, and then call lookup_prefix_sym/find_method.
297
39086a0e
PA
2982013-03-11 Pedro Alves <palves@redhat.com>
299
300 * charset.c (convert_between_encodings): Don't cast between
301 different pointer to pointer types. Instead, make the 'inp' local
302 be of the type iconv expects.
303 (wchar_iterate): Don't cast between different pointer to pointer
304 types. Instead, use new pointer local of the type iconv expects.
305 * target.c (target_read_stralloc, target_fileio_read_stralloc):
306 Add new local of type char pointer, and use it to get a
307 char/string view of the byte buffer, instead of casting between
308 pointer to pointer types.
309
90585175
HAQ
3102013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
311
312 * remote.c (remote_set_trace_buffer_size): Move != operator
313 to the start of next line to fix an ARI warning.
314
59ea5688
MM
3152013-03-11 Markus Metzger <markus.t.metzger@intel.com>
316
317 * NEWS: Add record changes.
318
946287b7
MM
3192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
320
321 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
322 the instruction history disassembly.
323 * disasm.c (dump_insns): Omit the pc prefix, if requested.
324 * disasm.h (DISASSEMBLY_OMIT_PC): New.
325
afedecd3
MM
3262013-03-11 Markus Metzger <markus.t.metzger@intel.com>
327
328 * Makefile.in (SFILES): Add record-btrace.c
329 (COMMON_OBS): Add record-btrace.o
330 * record-btrace.c: New.
331 * objfiles.c: Include btrace.h.
332 (free_objfile): call btrace_free_objfile.
333
15984c13
MM
3342013-03-11 Markus Metzger <markus.t.metzger@intel.com>
335
336 * target.c (target_call_history, target_call_history_from,
337 target_call_history_range): New.
338 * target.h (target_ops) <to_call_history, to_call_history_from,
339 to_call_history_range>: New fields.
340 (target_call_history, target_call_history_from,
341 target_call_history_range): New declaration.
342 * record.c (get_call_history_modifiers, cmd_record_call_history,
343 record_call_history_size): New.
344 (_initialize_record): Add the "record function-call-history" command.
345 Add "set/show record function-call-history-size" commands.
346 * record.h (record_print_flag): New.
347
67c86d06
MM
3482013-03-11 Markus Metzger <markus.t.metzger@intel.com>
349
350 * target.h (target_ops) <to_insn_history, to_insn_history_from,
351 to_insn_history_range>: New fields.
352 (target_insn_history): New.
353 (target_insn_history_from): New.
354 (target_insn_history_range): New.
355 * target.c (target_insn_history): New.
356 (target_insn_history_from): New.
357 (target_insn_history_range): New.
358 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
359 (record_insn_history_size): New.
360 (get_insn_number): New.
361 (get_context_size): New.
362 (no_chunk): New.
363 (get_insn_history_modifiers): New.
364 (cmd_record_insn_history): New.
365 (_initialize_record): Add "set/show record instruction-history-size"
366 command. Add "record instruction-history" command.
367
7c1687a9
MM
3682013-03-11 Markus Metzger <markus.t.metzger@intel.com>
369
370 * record.h (record_disconnect): New.
371 (record_detach): New.
372 (record_mourn_inferior): New.
373 (record_kill): New.
374 * record-full.c (record_disconnect, record_detach,
375 record_mourn_inferior, record_kill): Move to...
376 * record.c: ...here.
377 (DEBUG): New.
378 (record_stop): New.
379 (record_unpush): New.
380 (cmd_record_stop): Call record_stop. Replace unpush_target
381 call with record_unpush call.
382 (record_disconnect, record_detach): Assert that the target
383 is of record stratum. Call record_unpush, record_stop, and
384 DEBUG.
385 (record_mourn_inferior, record_kill): Assert that the target
386 is of record stratum. Call record_unpush and DEBUG.
387
25ea693b
MM
3882013-03-11 Markus Metzger <markus.t.metzger@intel.com>
389
390 * record-full.h, record-full.c (record_memory_query): Rename
391 to ...
392 (record_full_memory_query): ...this. Update all users.
393 (record_arch_list_add_reg): Rename to ...
394 (record_full_arch_list_add_reg): ...this. Update all users.
395 (record_arch_list_add_mem): Rename to ...
396 (record_full_arch_list_add_mem): ...this. Update all users.
397 (record_arch_list_add_end): Rename to ...
398 (record_full_arch_list_add_end): ...this. Update all users.
399 (record_gdb_operation_disable_set): Rename to ...
400 (record_full_gdb_operation_disable_set): ...this.
401 Update all users.
402
88d1aa9d
MM
4032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
404
405 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
406 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
407 (RECORD_IS_REPLAY): Renamed to ...
408 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
409 (RECORD_FILE_MAGIC): Renamed to ...
410 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
411 (record_mem_entry): Renamed to ...
412 (record_full_mem_entry): ... this. Updated all users.
413 (record_reg_entry): Renamed to ...
414 (record_full_reg_entry): ... this. Updated all users.
415 (record_end_entry): Renamed to ...
416 (record_full_end_entry): ... this. Updated all users.
417 (record_type) <record_end, record_reg, record_mem>: Renamed
418 to ...
419 (record_full_type) <record_full_end, record_full_reg,
420 record_full_mem>: ... this. Updated all users.
421 (record_entry): Renamed to ...
422 (record_full_entry): ... this. Updated all users.
423 (record_core_buf_entry): Renamed to ...
424 (record_full_core_buf_entry): ... this. Updated all users.
425 (record_core_regbuf): Renamed to ...
426 (record_full_core_regbuf): ... this. Updated all users.
427 (record_core_start): Renamed to ...
428 (record_full_core_start): ... this. Updated all users.
429 (record_core_end): Renamed to ...
430 (record_full_core_end): ... this. Updated all users.
431 (record_core_buf_list): Renamed to ...
432 (record_full_core_buf_list): ... this. Updated all users.
433 (record_first): Renamed to ...
434 (record_full_first): ... this. Updated all users.
435 (record_list): Renamed to ...
436 (record_full_list): ... this. Updated all users.
437 (record_arch_list_head): Renamed to ...
438 (record_full_arch_list_head): ... this. Updated all users.
439 (record_arch_list_tail): Renamed to ...
440 (record_full_arch_list_tail): ... this. Updated all users.
441 (record_stop_at_limit): Renamed to ...
442 (record_full_stop_at_limit): ... this. Updated all users.
443 (record_insn_max_num): Renamed to ...
444 (record_full_insn_max_num): ... this. Updated all users.
445 (record_insn_num): Renamed to ...
446 (record_full_insn_num): ... this. Updated all users.
447 (record_insn_count): Renamed to ...
448 (record_full_insn_count): ... this. Updated all users.
449 (record_ops): Renamed to ...
450 (record_full_ops): ... this. Updated all users.
451 (record_core_ops): Renamed to ...
452 (record_full_core_ops): ... this. Updated all users.
453 (set_record_cmdlist): Renamed to ...
454 (set_record_full_cmdlist): ... this. Updated all users.
455 (show_record_cmdlist): Renamed to ...
456 (show_record_full_cmdlist): ... this. Updated all users.
457 (record_cmdlist): Renamed to ...
458 (record_full_cmdlist): ... this. Updated all users.
459 (record_beneath_to_resume_ops): Renamed to ...
460 (record_full_beneath_to_resume_ops): ... this. Updated all users.
461 (record_beneath_to_resume): Renamed to ...
462 (record_full_beneath_to_resume): ... this. Updated all users.
463 (record_beneath_to_wait_ops): Renamed to ...
464 (record_full_beneath_to_wait_ops): ... this. Updated all users.
465 (record_beneath_to_wait): Renamed to ...
466 (record_full_beneath_to_wait): ... this. Updated all users.
467 (record_beneath_to_store_registers_ops): Renamed to ...
468 (record_full_beneath_to_store_registers_ops): ... this.
469 Updated all users.
470 (record_beneath_to_store_registers): Renamed to ...
471 (record_full_beneath_to_store_registers): ... this.
472 Updated all users.
473 (record_beneath_to_xfer_partial_ops): Renamed to ...
474 (record_full_beneath_to_xfer_partial_ops): ... this.
475 Updated all users.
476 (record_beneath_to_xfer_partial): Renamed to ...
477 (record_full_beneath_to_xfer_partial): ... this.
478 Updated all users.
479 (record_beneath_to_insert_breakpoint): Renamed to ...
480 (record_full_beneath_to_insert_breakpoint): ... this.
481 Updated all users.
482 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
483 (record_full_beneath_to_stopped_by_watchpoint): ... this.
484 Updated all users.
485 (record_beneath_to_stopped_data_address): Renamed to ...
486 (record_full_beneath_to_stopped_data_address): ... this.
487 Updated all users.
488 (record_beneath_to_async): Renamed to ...
489 (record_full_beneath_to_async): ... this. Updated all users.
490 (record_goto_insn): Renamed to ...
491 (record_full_goto_insn): ... this. Updated all users.
492 (record_save): Renamed to ...
493 (record_full_save): ... this. Updated all users.
494 (record_reg_alloc): Renamed to ...
495 (record_full_reg_alloc): ... this. Updated all users.
496 (record_reg_release): Renamed to ...
497 (record_full_reg_release): ... this. Updated all users.
498 (record_mem_alloc): Renamed to ...
499 (record_full_mem_alloc): ... this. Updated all users.
500 (record_mem_release): Renamed to ...
501 (record_full_mem_release): ... this. Updated all users.
502 (record_end_alloc): Renamed to ...
503 (record_full_end_alloc): ... this. Updated all users.
504 (record_end_release): Renamed to ...
505 (record_full_end_release): ... this. Updated all users.
506 (record_entry_release): Renamed to ...
507 (record_full_entry_release): ... this. Updated all users.
508 (record_list_release): Renamed to ...
509 (record_full_list_release): ... this. Updated all users.
510 (record_list_release_following): Renamed to ...
511 (record_full_list_release_following): ... this.
512 Updated all users.
513 (record_list_release_first): Renamed to ...
514 (record_full_list_release_first): ... this. Updated all users.
515 (record_arch_list_add): Renamed to ...
516 (record_full_arch_list_add): ... this. Updated all users.
517 (record_get_loc): Renamed to ...
518 (record_full_get_loc): ... this. Updated all users.
519 (record_check_insn_num): Renamed to ...
520 (record_full_check_insn_num): ... this. Updated all users.
521 (record_arch_list_cleanups): Renamed to ...
522 (record_full_arch_list_cleanups): ... this. Updated all users.
523 (record_message): Renamed to ...
524 (record_full_message): ... this. Updated all users.
525 (record_message_wrapper): Renamed to ...
526 (record_full_message_wrapper): ... this. Updated all users.
527 (record_message_wrapper_safe): Renamed to ...
528 (record_full_message_wrapper_safe): ... this. Updated all users.
529 (record_gdb_operation_disable): Renamed to ...
530 (record_full_gdb_operation_disable): ... this. Updated all users.
531 (record_hw_watchpoint): Renamed to ...
532 (record_full_hw_watchpoint): ... this. Updated all users.
533 (record_exec_insn): Renamed to ...
534 (record_full_exec_insn): ... this. Updated all users.
535 (record_restore): Renamed to ...
536 (record_full_restore): ... this. Updated all users.
537 (record_async_inferior_event_token): Renamed to ...
538 (record_full_async_inferior_event_token): ... this.
539 Updated all users.
540 (record_async_inferior_event_handler): Renamed to ...
541 (record_full_async_inferior_event_handler): ... this.
542 Updated all users.
543 (record_core_open_1): Renamed to ...
544 (record_full_core_open_1): ... this. Updated all users.
545 (record_open_1): Renamed to ...
546 (record_full_open_1): ... this. Updated all users.
547 (record_open): Renamed to ...
548 (record_full_open): ... this. Updated all users.
549 (record_close): Renamed to ...
550 (record_full_close): ... this. Updated all users.
551 (record_resume_step): Renamed to ...
552 (record_full_resume_step): ... this. Updated all users.
553 (record_resumed): Renamed to ...
554 (record_full_resumed): ... this. Updated all users.
555 (record_execution_dir): Renamed to ...
556 (record_full_execution_dir): ... this. Updated all users.
557 (record_resume): Renamed to ...
558 (record_full_resume): ... this. Updated all users.
559 (record_get_sig): Renamed to ...
560 (record_full_get_sig): ... this. Updated all users.
561 (record_sig_handler): Renamed to ...
562 (record_full_sig_handler): ... this. Updated all users.
563 (record_wait_cleanups): Renamed to ...
564 (record_full_wait_cleanups): ... this. Updated all users.
565 (record_wait_1): Renamed to ...
566 (record_full_wait_1): ... this. Updated all users.
567 (record_wait): Renamed to ...
568 (record_full_wait): ... this. Updated all users.
569 (record_stopped_by_watchpoint): Renamed to ...
570 (record_full_stopped_by_watchpoint): ... this. Updated all users.
571 (record_disconnect): Renamed to ...
572 (record_full_disconnect): ... this. Updated all users.
573 (record_detach): Renamed to ...
574 (record_full_detach): ... this. Updated all users.
575 (record_mourn_inferior): Renamed to ...
576 (record_full_mourn_inferior): ... this. Updated all users.
577 (record_kill): Renamed to ...
578 (record_full_kill): ... this. Updated all users.
579 (record_stopped_data_address): Renamed to ...
580 (record_full_stopped_data_address): ... this. Updated all users.
581 (record_registers_change): Renamed to ...
582 (record_full_registers_change): ... this. Updated all users.
583 (record_store_registers): Renamed to ...
584 (record_full_store_registers): ... this. Updated all users.
585 (record_xfer_partial): Renamed to ...
586 (record_full_xfer_partial): ... this. Updated all users.
587 (record_breakpoint): Renamed to ...
588 (record_full_breakpoint): ... this. Updated all users.
589 (record_breakpoint_p): Renamed to ...
590 (record_full_breakpoint_p): ... this. Updated all users.
591 (record_breakpoints): Renamed to ...
592 (record_full_breakpoints): ... this. Updated all users.
593 (record_sync_record_breakpoints): Renamed to ...
594 (record_full_sync_record_breakpoints): ... this.
595 Updated all users.
596 (record_init_record_breakpoints): Renamed to ...
597 (record_full_init_record_breakpoints): ... this.
598 Updated all users.
599 (record_insert_breakpoint): Renamed to ...
600 (record_full_insert_breakpoint): ... this. Updated all users.
601 (record_remove_breakpoint): Renamed to ...
602 (record_full_remove_breakpoint): ... this. Updated all users.
603 (record_can_execute_reverse): Renamed to ...
604 (record_full_can_execute_reverse): ... this. Updated all users.
605 (record_get_bookmark): Renamed to ...
606 (record_full_get_bookmark): ... this. Updated all users.
607 (record_goto_bookmark): Renamed to ...
608 (record_full_goto_bookmark): ... this. Updated all users.
609 (record_async): Renamed to ...
610 (record_full_async): ... this. Updated all users.
611 (record_can_async_p): Renamed to ...
612 (record_full_can_async_p): ... this. Updated all users.
613 (record_is_async_p): Renamed to ...
614 (record_full_is_async_p): ... this. Updated all users.
615 (record_execution_direction): Renamed to ...
616 (record_full_execution_direction): ... this. Updated all users.
617 (record_info): Renamed to ...
618 (record_full_info): ... this. Updated all users.
619 (record_delete): Renamed to ...
620 (record_full_delete): ... this. Updated all users.
621 (record_is_replaying): Renamed to ...
622 (record_full_is_replaying): ... this. Updated all users.
623 (record_goto_entry): Renamed to ...
624 (record_full_goto_entry): ... this. Updated all users.
625 (record_goto_begin): Renamed to ...
626 (record_full_goto_begin): ... this. Updated all users.
627 (record_goto_end): Renamed to ...
628 (record_full_goto_end): ... this. Updated all users.
629 (record_goto): Renamed to ...
630 (record_full_goto): ... this. Updated all users.
631 (init_record_ops): Renamed to ...
632 (init_record_full_ops): ... this. Updated all users.
633 (record_core_resume): Renamed to ...
634 (record_full_core_resume): ... this. Updated all users.
635 (record_core_kill): Renamed to ...
636 (record_full_core_kill): ... this. Updated all users.
637 (record_core_fetch_registers): Renamed to ...
638 (record_full_core_fetch_registers): ... this. Updated all users.
639 (record_core_prepare_to_store): Renamed to ...
640 (record_full_core_prepare_to_store): ... this. Updated all users.
641 (record_core_store_registers): Renamed to ...
642 (record_full_core_store_registers): ... this. Updated all users.
643 (record_core_xfer_partial): Renamed to ...
644 (record_full_core_xfer_partial): ... this. Updated all users.
645 (record_core_insert_breakpoint): Renamed to ...
646 (record_full_core_insert_breakpoint): ... this. Updated all users.
647 (record_core_remove_breakpoint): Renamed to ...
648 (record_full_core_remove_breakpoint): ... this. Updated all users.
649 (record_core_has_execution): Renamed to ...
650 (record_full_core_has_execution): ... this. Updated all users.
651 (init_record_core_ops): Renamed to ...
652 (init_record_full_core_ops): ... this. Updated all users.
653 (cmd_record_restore): Renamed to ...
654 (cmd_record_full_restore): ... this. Updated all users.
655 (record_save_cleanups): Renamed to ...
656 (record_full_save_cleanups): ... this. Updated all users.
657 (cmd_record_start): Renamed to ...
658 (cmd_record_full_start): ... this. Updated all users.
659 (set_record_insn_max_num): Renamed to ...
660 (set_record_full_insn_max_num): ... this. Updated all users.
661 (set_record_command): Renamed to ...
662 (set_record_full_command): ... this. Updated all users.
663 (show_record_command): Renamed to ...
664 (show_record_full_command): ... this. Updated all users.
665 (_initialize_record): Renamed to ...
666 (_initialize_record_full): ... this. Updated all users.
667
d02ed0bb
MM
6682013-03-11 Markus Metzger <markus.t.metzger@intel.com>
669
670 * record.h: Split into this and ...
671 * record-full.h: ... this.
672 * record.c: Split into this and ...
673 * record-full.c: ... this.
674 * target.h (target_ops): Add new fields to_info_record,
675 to_save_record, to_delete_record, to_record_is_replaying,
676 to_goto_record_begin, to_goto_record_end, to_goto_record.
677 (target_info_record): New.
678 (target_save_record): New.
679 (target_supports_delete_record): New.
680 (target_delete_record): New.
681 (target_record_is_replaying): New.
682 (target_goto_record_begin): New.
683 (target_goto_record_end): New.
684 (target_goto_record): New.
685 * target.c (target_info_record): New.
686 (target_save_record): New.
687 (target_supports_delete_record): New.
688 (target_delete_record): New.
689 (target_record_is_replaying): New.
690 (target_goto_record_begin): New.
691 (target_goto_record_end): New.
692 (target_goto_record): New.
693 * record.h: Declare struct cmd_list_element.
694 (record_cmdlist): New declaration.
695 (set_record_cmdlist): New declaration.
696 (show_record_cmdlist): New declaration.
697 (info_record_cmdlist): New declaration.
698 (cmd_record_goto): New declaration.
699 * record.c: Remove unnecessary includes.
700 Include inferior.h.
701 (cmd_record_goto): Remove declaration.
702 (record_cmdlist): Now extern. Initialize.
703 (set_record_cmdlist): Now extern. Initialize.
704 (show_record_cmdlist): Now extern. Initialize.
705 (info_record_cmdlist): Now extern. Initialize.
706 (find_record_target): New.
707 (require_record_target): New.
708 (cmd_record_start): Update.
709 (cmd_record_delete): Remove target-specific code.
710 Call target_delete_record.
711 (cmd_record_stop): Unpush any record target.
712 (set_record_insn_max_num): Move to record-full.c
713 (set_record_command): Add comment.
714 (show_record_command): Add comment.
715 (info_record_command): Update comment.
716 Remove target-specific code.
717 Call the record target's to_info_record.
718 (cmd_record_start): New.
719 (cmd_record_goto): Now extern.
720 Remove target-specific code.
721 Call target_goto_begin, target_goto_end, or target_goto.
722 (_initialize_record): Move record target ops initialization to
723 record-full.c.
724 Change "record" command help text.
725 Move "record restore", "record set", and "record show" commands to
726 record-full.c.
727 * Makefile.in (SFILES): Add record-full.c.
728 (HFILES_NO_SRCDIR): Add record-full.h.
729 (COMMON_OBS): Add record-full.o.
730 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
731 * arm-tdep.c: Include record-full.h.
732 * i386-linux-tdep.c: Include record-full.h instead of record.h.
733 * i386-tdep.c: Include record-full.h.
734 * infrun.c: Include record-full.h.
735 * linux-record.c: Include record-full.h.
736 * moxie-tdep.c: Include record-full.h.
737 * record-full.c: Include record-full.h.
738 Change module comment.
739 (set_record_full_cmdlist): New.
740 (show_record_full_cmdlist): New.
741 (record_full_cmdlist): New.
742 (record_goto_insn): New declaration.
743 (record_save): New declaration.
744 (record_check_insn_num): Change query string.
745 (record_info): New.
746 (record_delete): New.
747 (record_is_replaying): New.
748 (record_goto_entry): New.
749 (record_goto_begin): New.
750 (record_goto_end): New.
751 (record_goto): New.
752 (init_record_ops): Update.
753 (init_record_core_ops): Update.
754 (cmd_record_save): Rename to record_save. Remove target and arg checks.
755 (cmd_record_start): New.
756 (set_record_insn_max_num): Moved from record.c
757 (set_record_full_command): New.
758 (show_record_full_command): New.
759 (_initialize_record_full): New.
760
b48d48eb
MM
7612013-03-11 Markus Metzger <markus.t.metzger@intel.com>
762
763 * target.h (add_deprecated_target_alias): New.
764 * target.c (add_deprecated_target_alias): New.
765
a950d57c
MM
7662013-03-11 Markus Metzger <markus.t.metzger@intel.com>
767
768 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
769 and signal.h.
770 (linux_supports_btrace): Add kernel and
771 cpuid check.
772 (kernel_supports_btrace): New function.
773 (cpu_supports_btrace): New function.
774 (intel_supports_btrace): New function.
775
9accd112
MM
7762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
777
778 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
779 * remote.c: Include btrace.h.
780 (struct btrace_target_info): New struct.
781 (remote_supports_btrace): New function.
782 (send_Qbtrace): New function.
783 (remote_enable_btrace): New function.
784 (remote_disable_btrace): New function.
785 (remote_teardown_btrace): New function.
786 (remote_read_btrace): New function.
787 (init_remote_ops): Add btrace ops.
788 (enum <unnamed>): Add btrace packets.
789 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
790 (_initialize_remote): Add packet configuration for branch tracing.
791
c12a2917
MM
7922013-03-11 Markus Metzger <markus.t.metzger@intel.com>
793
794 * features/btrace.dtd: New file.
795 * Makefile.in (XMLFILES): Add btrace.dtd.
796 * btrace.h (parse_xml_btrace): New declaration.
797 * btrace.c: Include xml-support.h.
798 (parse_xml_btrace): New function.
799 (parse_xml_btrace_block): New function.
800 (block_attributes): New struct.
801 (btrace_attributes): New struct.
802 (btrace_children): New struct.
803 (btrace_elements): New struct.
804
3e3aea48
MM
8052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
806
807 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
808 (amd64_linux_enable_btrace): New.
809 (amd64_linux_disable_btrace): New.
810 (amd64_linux_teardown_btrace): New.
811 (_initialize_amd64_linux_nat): Initialize btrace ops.
812 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
813 (i386_linux_enable_btrace): New.
814 (i386_linux_disable_btrace): New.
815 (i386_linux_teardown_btrace): New.
816 (_initialize_i386_linux_nat): Initialize btrace ops.
817 * config/i386/linux.mh: Add linux-btrace.o.
818 * config/i386/linux64.mh: Add linux-btrace.o.
819
7c97f91e
MM
8202013-03-11 Markus Metzger <markus.t.metzger@intel.com>
821
822 * common/linux_btrace.h: New file.
823 * common/linux_btrace.c: New file.
824 * Makefile.in (SFILES): Add btrace.c.
825 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
826 (COMMON_OBS): Add btrace.o.
827 (linux-btrace.o): New rule.
828
1999790b 8292013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
830
831 * target.h: Include btrace.h.
832 (struct target_ops) <to_supports_btrace, to_enable_btrace,
833 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
834 * target.c (target_supports_btrace): New function.
835 (target_enable_btrace): New function.
836 (target_disable_btrace): New function.
837 (target_teardown_btrace): New function.
838 (target_read_btrace): New function.
839 * btrace.h: New file.
840 * btrace.c: New file.
841 * Makefile.in: Add btrace.c.
842 * gdbthread.h: Include btrace.h.
843 (struct thread_info): Add btrace field.
844 * thread.c: Include btrace.h.
845 (clear_thread_inferior_resources): Call target_teardown_btrace.
846 * common/btrace-common.h: New file.
847
61a31a67
JK
8482013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
849
850 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
851 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
852 kill_status to outer block.
853
05c56a9d
JK
8542013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
855
856 Fix entry-values if the callee called a noreturn function.
857 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
858 get_frame_address_in_block. Add new comment.
859
9112db09
JK
8602013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
861
862 Fix entry-values in C++ across CUs.
863 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
864 lookup_minimal_symbol. Add a comment.
865 * dwarf2read.c
866 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
867 DW_AT_linkage_name.
868
9b67fcec
YQ
8692013-03-08 Yao Qi <yao@codesourcery.com>
870
871 * tracepoint.c (_initialize_tracepoint): Indent the code.
872
6221be90
PA
8732013-03-08 Pedro Alves <palves@redhat.com>
874
875 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
876 (parse_find_args, find_command): Change type of pattern buffer
877 locals to 'gdb_byte *'.
878
be9a119c 8792013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
880 Hafiz Abid Qadeer <abidh@codesourcery.com>
881
882 * NEWS: Mention set and show trace-buffer-size commands.
883 Mention new packet.
884 * target.h (struct target_ops): New method
885 to_set_trace_buffer_size.
886 (target_set_trace_buffer_size): New macro.
887 * target.c (update_current_target): Set up new method.
888 * tracepoint.c (trace_buffer_size): New global.
889 (start_tracing): Send it to the target.
890 (set_trace_buffer_size): New function.
891 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
892 * remote.c (remote_set_trace_buffer_size): New function.
893 (_initialize_remote): Use it.
894 (QTBuffer:size) New remote command.
895 (PACKET_QTBuffer_size): New enum.
896 (remote_protocol_features): Add an entry for
897 PACKET_QTBuffer_size.
898
7da3ab79
TT
8992013-03-08 Tom Tromey <tromey@redhat.com>
900
901 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
902 variable.
903
0c1f71e7
PA
9042013-03-07 Pedro Alves <palves@redhat.com>
905
906 * target.c (target_read_stralloc, target_fileio_read_alloc):
907 *Cast pointer to 'gdb_byte *' in target call.
908
c8af03a2
PA
9092013-03-07 Pedro Alves <palves@redhat.com>
910
911 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
912 call.
913
529480d0
KS
9142013-03-07 Keith Seitz <keiths@redhat.com>
915
916 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
917 (trace_pass_command): Likewise.
918 * cli/cli-cmds.c: Include cli/cli-utils.h.
919 (source_command): Use skip-spaces.
920 (disassemble_command): Likewise.
921 * findcmd.c: Include cli/cli-utils.h.
922 (parse_find_args): Use skip_spaces.
923 * go32-nat.c: Include cli/cli-utils.h.
924 (go32_sldt): Use skip_spaces.
925 (go32_sgdt): Likewise.
926 (go32_sidt): Likewise.
927 (go32_pde): Likewise.
928 (go32_pte): Likewise.
929 (go32_pte_for_address): Likewise.
930 * infcmd.c: Include cli/cli-utils.h.
931 (registers_info): Use skip_spaces.
932 * linux-tdep.c (read_mapping): Use skip_spaces_const.
933 (linux_info_proc): Likewise.
934 * linux-thread-db.c: Include cli/cli-utils.h.
935 (info_auto_load_libthread_db): Use skip_spaces_const.
936 * m32r-rom.c: Include cli/cli-utils.h.
937 (m32r_upload_command): Use skip_spaces.
938 * maint.c: Include cli/cli-utils.h.
939 (maintenance_translate_address): Use skip_spaces.
940 * mi/mi-parse.c: Include cli/cli-utils.h.
941 (mi_parse_argv): Use skip_spaces.
942 (mi_parse): Likewise.
943 * minsyms.c: Include cli/cli-utils.h.
944 (msymbol_hash_iw): Use skip_spaces_const.
945 * objc-lang.c: Include cli/cli-utils.h.
946 (parse_selector): Use skip_spaces.
947 (parse_method): Likewise.
948 * python/python.c: Include cli/cli-utils.h.
949 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
950 (python_command)[HAVE_PYTHON]: Likewise.
951 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
952 * remote-m32r-sdi.c: Include cli/cli-utils.h.
953 (m32r_load): Use skip_spaces.
954 * serial.c: Include cli/cli-utils.h.
955 (serial_open): Use skip_spaces_const.
956 * stack.c: Include cli/cli-utils.h.
957 (parse_frame_specification_1): Use skip_spaces_const.
958 * symfile.c: Include cli/cli-utils.h.
959 (set_ext_lang_command): Use skip_spaces.
960 * symtab.c: Include cli/cli-utils.h.
961 (rbreak_command): Use skip_spaces.
962 * thread.c (thread_name_command): Use skip_spaces.
963 * tracepoint.c (validate_actionline): Use skip_spaces.
964 (encode_actions_1): Likewise.
965 (trace_find_range_command): Likewise.
966 (trace_find_outside_command): Likewise.
967 (trace_dump_actions): Likewise.
968
ac91cd70
PA
9692013-03-07 Pedro Alves <palves@redhat.com>
970
971 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
972 * expprint.c (print_subexp_standard): Likewise.
973 * utils.c (host_char_to_target): Likewise.
974 * valprint.c (generic_emit_char, generic_printstr): Likewise.
975 * varobj.c (value_get_print_value): Change type of local to char*.
976 Cast it gdb_byte * in call to language printer.
977
2898e560
PA
9782013-03-07 Pedro Alves <palves@redhat.com>
979
980 * charset.c (struct wchar_iterator) <input>: Change type to 'const
981 gdb_byte *'.
982 (make_wchar_iterator): Remove cast to char*.
983 (wchar_iterate): Change type of local.
984
a09b4448
PA
9852013-03-07 Pedro Alves <palves@redhat.com>
986
987 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
988 for 'regcache->register_status'.
989
20ced3e4
PA
9902013-03-07 Pedro Alves <palves@redhat.com>
991
c2d6a675 992 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
993 int.
994
fe106009
PA
9952013-03-07 Pedro Alves <palves@redhat.com>
996
997 * stap-probe.c (handle_stap_probe): Add cast to char*.
998
8ac2c12b
PA
9992013-03-07 Pedro Alves <palves@redhat.com>
1000
1001 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
1002 RECORD_MSGRCV>: Pass a signed variable to
1003 regcache_raw_read_signed, instead of an unsigned one.
1004
99f0a309
PA
10052013-03-07 Pedro Alves <palves@redhat.com>
1006
1007 * remote-notif.c (notif_debug): Change type to int.
1008 * remote-notif.h (notif_debug): Likewise.
1009
964b8317
PA
10102013-03-07 Pedro Alves <palves@redhat.com>
1011
1012 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
1013
f0cc8ad4
PA
10142013-03-07 Pedro Alves <palves@redhat.com>
1015
1016 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
1017 * remote.h (hex2bin, bin2hex): ... here.
1018 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
1019
77dec115
EZ
10202013-03-07 Eli Zaretskii <eliz@gnu.org>
1021
1022 * utils.c (initialize_utils): Improve doc strings of "set/show
1023 width", "set/show height", and "set/show pagination".
1024
741d92cf
KS
10252013-03-06 Keith Seitz <keiths@redhat.com>
1026
1027 * ax-gdb.c (gen_printf): Make FORMAT const.
1028 * ax-gdb.h (gen_printf): Likewise.
1029 * ax-general.c (ax_string): Make STR const.
1030 * ax.h (ax_string): Likewise.
1031
7b6c814e
DE
10322013-03-06 Doug Evans <dje@google.com>
1033
1034 * elfread.c (elf_symfile_read): Move debugging printf to more
1035 logical location.
1036
634334ab
PA
10372013-03-06 Pedro Alves <palves@redhat.com>
1038
1039 * python/py-utils.c (target_string_to_unicode): Delete function.
1040 * python/python-internal.h (target_string_to_unicode): Delete
1041 declaration.
1042
e482a1a7
PM
10432013-03-06 Pierre Muller <muller@sourceware.org>
1044
1045 * linespec.c (get_current_search_block): ARI fix, use (void)
1046 for empty parameter list.
1047
4eeaa230
DE
10482013-03-05 Doug Evans <dje@google.com>
1049
1050 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
1051 of old ada_lookup_symbol_list. In !full_search case, don't
1052 search superblocks.
1053 (ada_lookup_symbol_list): Delete arg full_search, all callers
1054 updated. Call ada_lookup_symbol_list_worker.
1055 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
1056 * ada-lang.h (ada_lookup_symbol_list): Update.
1057 * language.h (language_defn): Update comment for
1058 la_iterate_over_symbols.
1059 * linespec.c (iterate_over_file_blocks): New function.
1060 (iterate_over_all_matching_symtabs): Call it.
1061 (lookup_prefix_sym): Ditto.
1062 (get_current_search_block): New function.
1063 (get_search_block): Delete.
1064 (find_label_symbols): Call get_current_search_block.
1065 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
1066 * symtab.c (iterate_over_symbols): Don't search superblocks.
1067
b69b1fb1
YQ
10682013-03-05 Yao Qi <yao@codesourcery.com>
1069
1070 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
1071 parameter VAR's type from "unsigned int" to "int".
1072 * command.h (var_zuinteger_unlimited): Update its comments.
1073 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
1074
3c095f49
CV
10752013-03-05 Corinna Vinschen <vinschen@redhat.de>
1076
1077 * NEWS: Mention new target x86_64-*-cygwin*.
1078
b5b0b0af
CV
10792013-03-05 Corinna Vinschen <vinschen@redhat.de>
1080
1081 * configure.host: Add x86_64-*-cygwin* as host.
1082 * configure.tgt: Add x86_64-*-cygwin* as target.
1083 * config/i386/cygwin64.mh: New file.
1084
f6f99966
JK
10852013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1086
1087 * linespec.c (decode_line_2): Fix duplicate request off by two message.
1088
33f448b1
JK
10892013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1090
1091 * linespec.c (struct linespec_canonical_name): New.
1092 (struct linespec_state): Change canonical_names type to it.
1093 (add_sal_to_sals): Change variable canonical_name to canonical. Change
1094 xrealloc element size. Initialize the different CANONICAL fields.
1095 (canonical_to_fullform): New.
1096 (filter_results): Use it. Add variables canonical, fullform and
1097 cleanup.
1098 (struct decode_line_2_item, decode_line_2_compare_items): New.
1099 (decode_line_2): Remove variables iter and item_names, add variables
1100 items and items_count. Modify the code for these new variables.
1101
feb14725
CV
11022013-03-04 Corinna Vinschen <vinschen@redhat.com>
1103
1104 * coff-pe-read.c (read_pe_exported_syms): Don't return without
1105 calling do_cleanup.
1106
e83b17ba
HZ
11072013-03-04 Luis Machado <lgustavo@codesourcery.com>
1108
1109 * tracepoint.c (build_traceframe_info): Add code for byte order.
1110
a2d13a0d
KB
11112013-03-02 Kevin Buettner <kevinb@redhat.com>
1112
8dddcae8
KB
1113 * v850-tdep.c: (v850e2_register_name): Revise system register
1114 names to match current V850E2M architecture specifications.
1115 Update register number enum comments too.
a2d13a0d 1116
d79e58d8
JW
11172013-03-01 Jiong Wang <jiwang@tilera.com>
1118 Pedro Alves <palves@redhat.com>
1119
1120 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
1121 to END_ADDR.
1122 (tilegx_skip_prologue): Limit prologue analysis to section end.
1123
c4be5165
JK
11242013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1125
1126 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
1127 use it.
1128
e362b510
PA
11292013-03-01 Pedro Alves <palves@redhat.com>
1130
1131 Use gdb_byte for bytes from the program being debugged.
1132
1133 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
1134 Change type of local 'buf' to gdb_byte.
1135 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
1136 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1137 * cris-tdep.c (cris_sigcontext_addr)
1138 (cris_sigtramp_frame_unwind_cache): Likewise.
1139 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
1140 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
1141 Likewise.
1142 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
1143 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
1144 (hppa32_hpux_search_dummy_call_sequence)
1145 (hppa_hpux_supply_save_state): Likewise.
1146 * hppa-linux-tdep.c (insns_match_pattern)
1147 (hppa_linux_find_global_pointer): Likewise.
1148 * hppa-tdep.c (hppa_in_function_epilogue_p)
1149 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
1150 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
1151 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
1152 (i386fbsd_collect_uthread): Likewise.
1153 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
1154 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
1155 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
1156 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
1157 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
1158 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
1159 (ia64_libunwind_frame_prev_register)
1160 (ia64_libunwind_sigtramp_frame_this_id)
1161 (ia64_find_global_pointer_from_dynamic_section)
1162 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
1163 (ia64_unwind_pc): Likewise.
1164 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
1165 * m68hc11-tdep.c (m68hc11_push_dummy_call)
1166 (m68hc11_extract_return_value): Likewise.
1167 * m68klinux-nat.c (fetch_register, store_register): Likewise.
1168 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
1169 (mep_get_insn, mep_push_dummy_call): Likewise.
1170 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1171 (mips_linux_in_dynsym_stub): Likewise.
1172 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
1173 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
1174 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
1175 to gdb_byte.
1176 * remote-mips.c (mips_set_register): Likewise.
1177 * remote-sim.c (gdbsim_fetch_register): Likewise.
1178 * score-tdep.c (score7_fetch_inst): Change type of parameter
1179 'memblock' and local 'buf' to gdb_byte.
1180 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
1181 Change type of local 'buf' to gdb_byte. Adjust.
1182 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
1183 to gdb_byte**.
1184 (score7_analyze_prologue): Change type of 'memblock' and
1185 'memblock_ptr' locals to gdb_byte*.
1186 * sh64-tdep.c (sh64_extract_return_value)
1187 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
1188 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
1189 * solib-pa64.c (pa64_solib_create_inferior_hook)
1190 (pa64_open_symbol_file_object): Remove local 'buf'.
1191 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
1192 (som_open_symbol_file_object): Likewise.
1193 * solib-spu.c (spu_current_sos): Likewise.
1194 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
1195 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
1196 (spu_store_registers): Likewise.
1197 * target.c (debug_print_register): Likewise.
1198 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
1199 * xstormy16-tdep.c (xstormy16_store_return_value)
1200 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
1201 (xstormy16_find_jmp_table_entry): Likewise.
1202
75cc61ca 12032013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
1204
1205 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
1206 (tilegx_gdbarch_init): Install it.
1207
ddb08e9c
TT
12082013-02-28 Tom Tromey <tromey@redhat.com>
1209
1210 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
1211 PyLong_Check.
1212
62d7fb51
DE
12132013-02-28 Doug Evans <dje@google.com>
1214
1215 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
1216 * python/python.c (gdbpy_find_pc_line): Ditto.
1217
c4a9e8b4
TT
12182013-02-28 Tom Tromey <tromey@redhat.com>
1219
1220 * contrib/excheck.py: New file.
1221 * contrib/exsummary.py: New file.
1222 * contrib/gcc-with-excheck: New file.
1223
7f6a5dde
TT
12242013-02-28 Tom Tromey <tromey@redhat.com>
1225
1226 * python/python.c (gdbpy_print_stack): Call begin_line and
1227 fprintf_filtered inside TRY_CATCH.
1228
9e974e55
TT
12292013-02-28 Tom Tromey <tromey@redhat.com>
1230
1231 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
1232 inside TRY_CATCH.
1233
dd5fa3e7
TT
12342013-02-28 Tom Tromey <tromey@redhat.com>
1235
1236 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
1237 frame_object_to_frame_info inside TRY_CATCH.
1238
86a3263f
TT
12392013-02-28 Tom Tromey <tromey@redhat.com>
1240
1241 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
1242 TRY_CATCH.
1243
81b52a3a
TT
12442013-02-28 Tom Tromey <tromey@redhat.com>
1245
1246 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
1247
d50a0ce2
CV
12482013-02-27 Corinna Vinschen <vinschen@redhat.com>
1249
1250 * windows-nat.c: Throughout, fix format strings and casts of
1251 printf-like functions to avoid type related warnings on all
1252 platforms.
1253 (handle_output_debug_string): Fetch context information address
1254 from debug string using string_to_core_addr.
1255
e1f58301
JW
12562013-02-27 Jiong Wang <jiwang@tilera.com>
1257
1258 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
1259 * regformats/reg-tilegx32.dat: New.
1260
4fcd89fc
JW
12612013-02-27 Jiong Wang <jiwang@tilera.com>
1262
1263 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
1264
748d24e6
JW
12652013-02-27 Jiong Wang <jiwang@tilera.com>
1266
1267 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
1268
6c8e944d
YQ
12692013-02-27 Yao Qi <yao@codesourcery.com>
1270 Pedro Alves <palves@redhat.com>
1271
1272 * tracepoint.c (tfile_trace_find): For tfind
1273 pc/tp/range/outside, look for the next trace frame instead of
1274 always starting from frame 0.
1275
acd7db30
AG
12762013-02-26 Anthony Green <green@moxielogic.com>
1277
1278 * configure.tgt: Add support for moxie-*-rtems* target.
1279
025e6dce
PA
12802013-02-25 Pedro Alves <palves@redhat.com>
1281
1282 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
1283 warning text.
1284
ca9c94ef
MR
12852013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
1286
1287 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
1288 if $fp is used as the virtual frame pointer.
1289
24c274a1
AM
12902013-02-23 Alan Modra <amodra@gmail.com>
1291
1292 * elfread.c (elf_symtab_read): Do not use udata.p here to find
1293 symbol size.
1294 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
1295 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
1296 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
1297 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
1298
bfada189
JK
12992013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1300
1301 Code cleanup.
1302 * elfread.c (build_id_bfd_get): Make the return type const.
1303 (build_id_verify): Make the check parameter const.
1304 (build_id_to_debug_filename): Make the build_id parameter and variable
1305 data const.
1306 (find_separate_debug_file_by_buildid): Make the variable build_id const.
1307
c0355132
AM
13082013-02-21 Alan Modra <amodra@gmail.com>
1309
1310 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
1311
9f44fbc0
SCR
13122013-02-20 Siva Chandra Reddy <sivachandra@google.com>
1313
1314 Add a new method 'disassemble' to gdb.Architecture class.
1315 * python/py-arch.c (archpy_disassmble): Implementation of the
1316 new method gdb.Architecture.disassemble.
1317 (arch_object_methods): Add entry for the new method.
1318
b74ea3eb
JW
13192013-02-20 Jiong Wang <jiwang@tilera.com>
1320
1321 * MAINTAINERS (Write After Approval): Add myself to the list.
1322
61a672f1
PA
13232013-02-19 Pedro Alves <palves@redhat.com>
1324
1325 Garbage collect 'struct monitor_ops'::load_routine.
1326
1327 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
1328 * monitor.c (monitor_load): No longer call
1329 current_monitor->load_routine.
1330 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
1331 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
1332 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
1333
40e397df
PA
13342013-02-19 Pedro Alves <palves@redhat.com>
1335
1336 PR gdb/15161
1337
1338 Harmonize with generic_load.
1339
1340 * monitor.c: Include "readline/readline.h".
1341 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
1342 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
1343 long/strtol for the 'load_offset' local. Error out if no argument
1344 is given or if too many arguments are given. Tilde expand the
1345 passed in file name.
1346
f698ca8e
KT
13472013-02-19 Kai Tietz <ktietz@redhat.com>
1348
1349 PR gdb/15161
1350 * symfile.c (load_section_data): Change type of load_offset
1351 to CORE_ADDR.
1352 (generic_load): User strtoulst instead of strtoul for conversion
1353 of load_offset.
1354
3361b059
WL
13552013-02-19 Jiong Wang <jiwang@tilera.com>
1356
1357 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
1358 for return address, "lr" register, saved on stack.
1359 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
1360 after we invoke tilegx_analyze_prologue.
1361
3e9d5130
WL
13622013-02-19 Jiong Wang <jiwang@tilera.com>
1363
bb1bcd86
WL
1364 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
1365
3361b059 13662013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 1367
b74ea3eb 1368 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 1369
4aaf2503
WL
13702013-02-19 Jiong Wang <jiwang@tilera.com>
1371
b74ea3eb 1372 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
1373 (tilegx_write_pc): New function.
1374 (tilegx_cannot_reference_register): Return zero if REGNO
1375 is TILEGX_FAULTNUM_REGNUM.
1376 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
1377 (tilegx_register_name): Add handling of "faultnum" register.
1378 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
1379 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
1380 handling of TILEGX_FAULTNUM_REGNUM.
1381 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
1382
bc23a956
WL
13832013-02-19 Jiong Wang <jiwang@tilera.com>
1384
1385 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 1386 should be aligned to 64bit.
bc23a956 1387
42f45f1a
KT
13882013-02-19 Kai Tietz <ktietz@redhat.com>
1389
1390 * windows-nat.c (windows_xfer_memory): Fix debug-output
1391 for LLP64.
1392
6ce4c112
LL
13932013-02-19 Lei Liu <lei.liu2@windriver.com>
1394
1395 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
1396 Don't check DSP register number if HAVE_DSP is not set.
1397
30e8ee25
AM
13982013-02-19 Alan Modra <amodra@gmail.com>
1399
1400 * elfread.c (struct build_id): Delete. Use struct elf_build_id
1401 throughout file instead.
1402 (build_id_bfd_get): Update to use new elf_tdata build_id field.
1403 Don't xmalloc return value.
1404 (build_id_verify): Similarly. Don't xfree.
1405 (build_id_to_debug_filename): Update.
1406 (find_separate_debug_file_by_buildid): Update, don't xfree.
1407
4c9ad8c2
TT
14082013-02-18 Tom Tromey <tromey@redhat.com>
1409
1410 PR gdb/15102:
1411 * dwarf2read.c (read_subrange_type): Use result of
1412 'check_typedef'.
1413
983dc440
YQ
14142013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
1415
1416 * frame.c: Remove one extra white space after #include
1417 directive.
1418
7fb2b84a
JK
14192013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1420
1421 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
1422
edceb2a9
JK
14232013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1424
1425 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
1426 and dir commands into an if block.
1427
e81b7af8
TT
14282013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
1429
1430 * python/py-breakpoint (struct pybp_code): Use int instead of
1431 enum type_code.
1432
f5911ea1
HAQ
14332013-02-15 Pedro Alves <pedro@codesourcery.com>
1434 Hafiz Abid Qadeer <abidh@codesourcery.com>
1435
1436 * NEWS: Mention new field "trace-file".
1437 * tracepoint.c (trace_status_mi): Output "trace-file" field.
1438 (tfile_open): Record the trace file's filename in the trace
1439 status.
1440 (tfile_files_info): Mention the name of the trace file.
1441 Check the "filename" field explicitely.
1442 (trace_status_command): Explicitely check "filename" field.
1443 (trace_find_command): Ditto.
1444 (trace_find_pc_command): Ditto.
1445 (trace_find_tracepoint_command): Ditto.
1446 (trace_find_line_command): Ditto.
1447 (trace_find_range_command): Ditto.
1448 (trace_find_outside_command): Ditto.
1449 * tracepoint.h (struct trace_status) <from_file>: Rename it
1450 to "filename" and make it hold the trace file's filename
1451 instead of a boolean.
1452 * remote.c (remote_get_trace_status): Initialize "filename"
1453 field with NULL instead of 0.
1454
796cb314
YQ
14552013-02-15 Yao Qi <yao@codesourcery.com>
1456
1457 * remote.c: Fix a typo.
1458
42e79b1d
PM
14592013-02-14 Pierre Muller <muller@sourceware.org>
1460
1461 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
1462
baea0dae
PA
14632013-02-14 Pedro Alves <palves@redhat.com>
1464
1465 * utils.c (savestring): Don't #undef it. Move function to
1466 common/common-utils.c.
1467 * common/common-utils.c: Include gdb_string.h.
1468 (savestring): Move here from utils.c.
1469 * common/common-utils.h (savestring): Declare.
1470
57c3b6ed
PA
14712013-02-14 Pedro Alves <palves@redhat.com>
1472
1473 * utils.c (savestring): Rename parameter 'size' to 'len'.
1474
d6c44983
YZ
14752013-02-14 Pedro Alves <palves@redhat.com>
1476 Yufeng Zhang <yufeng.zhang@arm.com>
1477
1478 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
1479 (aarch64_inferior_data, struct aarch64_inferior_data):
1480 Delete.
1481 (struct aarch64_process_info): New.
1482 (aarch64_process_list): New global.
1483 (aarch64_find_process_pid, aarch64_add_process)
1484 (aarch64_process_info_get): New functions.
1485 (aarch64_inferior_data_get): Delete.
1486 (aarch64_process_info_get): New function.
1487 (aarch64_forget_process): New function.
1488 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
1489 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
1490 aarch64_get_debug_reg_state.
1491 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
1492 instead of linux_nat_iterate_watchpoint_lwps.
1493 (aarch64_linux_new_fork): New function.
1494 (aarch64_linux_child_post_startup_inferior): Use
1495 aarch64_forget_process instead of aarch64_init_debug_reg_state.
1496 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
1497 (aarch64_linux_remove_hw_breakpoint)
1498 (aarch64_handle_aligned_watchpoint)
1499 (aarch64_handle_unaligned_watchpoint)
1500 (aarch64_linux_insert_watchpoint)
1501 (aarch64_linux_remove_watchpoint)
1502 (aarch64_linux_stopped_data_address): Adjust to pass the current
1503 process id to aarch64_debug_reg_state.
1504 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
1505 linux_nat_new_fork hook, and aarch64_forget_process as
1506 linux_nat_forget_process hook; remove the call to
1507 register_inferior_data_with_cleanup.
1508
4819b3f8
PA
15092013-02-14 Pedro Alves <palves@redhat.com>
1510
1511 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
1512 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
1513 lval_memory.
1514
1773c82c
HAQ
15152013-02-14 Pedro Alves <pedro@codesourcery.com>
1516 Hafiz Abid Qadeer <abidh@codesourcery.com>
1517
1518 * tracepoint.h (validate_trace_state_variable_name): Declare.
1519 * tracepoint.c (validate_trace_state_variable_name): New.
1520 (trace_variable_command): Parse the trace state variable's name
1521 without using parse_expression. Do several validations.
1522 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
1523 trace state variable's name with parse_expression. Validate it.
1524
53778a97
YQ
15252013-02-14 Yao Qi <yao@codesourcery.com>
1526
1527 * infcmd.c (breakpoint_proceeded): Remove it.
1528
7b3ae3a6
YQ
15292013-02-14 Yao Qi <yao@codesourcery.com>
1530
1531 * tracepoint.c (end_actions_pseudocommand): Make it static.
1532 (while_stepping_pseudocommand): Likewise.
1533 * tracepoint.h (end_actions_pseudocommand): Remove the
1534 declaration.
1535 (while_stepping_pseudocommand): Likewise.
1536
64580925
YQ
15372013-02-14 Yao Qi <yao@codesourcery.com>
1538
1539 * cli/cli-decode.c (help_cmd): Remove the declaration of
1540 "cmdlist".
1541 (help_all): Likewise.
1542
26cb8b7c
PA
15432013-02-13 Pedro Alves <palves@redhat.com>
1544
1545 * amd64-linux-nat.c (update_debug_registers_callback):
1546 Update comment.
1547 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
1548 iterate_over_lwps.
1549 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
1550 i386_debug_reg_state.
1551 (amd64_linux_new_fork): New function.
1552 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
1553 linux_nat_new_fork hook, and i386_forget_process as
1554 linux_nat_forget_process hook.
1555 * i386-linux-nat.c (update_debug_registers_callback):
1556 Update comment.
a8256ea1 1557 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
1558 iterate_over_lwps.
1559 (i386_linux_prepare_to_resume): Pass the lwp's pid to
1560 i386_debug_reg_state.
1561 (i386_linux_new_fork): New function.
1562 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
1563 linux_nat_new_fork hook, and i386_forget_process as
1564 linux_nat_forget_process hook.
1565 * i386-nat.c (i386_init_dregs): Delete.
1566 (i386_inferior_data, struct i386_inferior_data):
1567 Delete.
1568 (struct i386_process_info): New.
1569 (i386_process_list): New global.
1570 (i386_find_process_pid, i386_add_process, i386_process_info_get):
1571 New functions.
1572 (i386_inferior_data_get): Delete.
1573 (i386_process_info_get): New function.
1574 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
1575 (i386_forget_process): New function.
1576 (i386_cleanup_dregs): Rewrite.
1577 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
1578 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
1579 (i386_stopped_data_address, i386_insert_hw_breakpoint)
1580 (i386_remove_hw_breakpoint): Adjust to pass the current process id
1581 to i386_debug_reg_state.
1582 (i386_use_watchpoints): Don't register inferior data.
1583 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
1584 adjust comment.
1585 (i386_forget_process): Declare.
1586 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
1587 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
1588 New static globals.
1589 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
1590 (add_initial_lwp): New, factored out from ...
1591 (add_lwp): ... this. Don't check the number of lwps before
1592 calling linux_nat_new_thread.
1593 (linux_nat_iterate_watchpoint_lwps): Delete.
1594 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
1595 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
1596 forks and vforks.
1597 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
1598 initial lwp.
1599 (linux_nat_kill, linux_nat_mourn_inferior): Call
1600 linux_nat_forget_process.
1601 (linux_nat_set_new_fork, linux_nat_set_forget_process)
1602 (linux_nat_forget_process): New functions.
1603 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
1604 type.
1605 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
1606 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
1607 types.
1608 (linux_nat_set_new_fork, linux_nat_set_forget_process)
1609 (linux_nat_forget_process): New declarations.
1610
1611 * amd64fbsd-nat.c (super_mourn_inferior): New global.
1612 (amd64fbsd_mourn_inferior): New function.
1613 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
1614 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
1615
5befea72
MS
16162013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
1617
55015247
YQ
1618 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
1619 Adding _().
5befea72 1620
1d3ffd6b
MS
16212013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
1622
1623 * aarch64-linux-nat.c (debug_reg_change_callback)
1624 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
1625 %s and phex().
1626
6eb04473
MS
16272013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
1628
1629 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
1630 with LONGEST.
1631
a016fc87
HAQ
16322013-02-13 Pedro Alves <palves@redhat.com>
1633 Hafiz Abid Qadeer <abidh@codesourcery.com>
1634
1635 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
1636
e234dfaf
TT
16372013-02-12 Tom Tromey <tromey@redhat.com>
1638
1639 PR symtab/11464:
1640 * c-exp.y (lex_one_token): Initialize other fields of yylval on
1641 NAME return.
1642 (classify_inner_name): Remove 'first_name' argument, add
1643 'context'. Remove unused variable.
1644 (yylex): Explicitly maintain the context type. Exit loop earlier
1645 if NAME result is seen.
1646
0b1afbb3
PA
16472013-02-12 Pedro Alves <palves@redhat.com>
1648
1649 * amd64-darwin-tdep.c: Add (C) after Copyright.
1650 * cli/cli-cmds.h: Ditto.
1651 * cli/cli-decode.c: Ditto.
1652 * cli/cli-decode.h: Ditto.
1653 * cli/cli-dump.c: Ditto.
1654 * cli/cli-dump.h: Ditto.
1655 * cli/cli-interp.c: Ditto.
1656 * cli/cli-logging.c: Ditto.
1657 * cli/cli-script.c: Ditto.
1658 * cli/cli-script.h: Ditto.
1659 * cli/cli-setshow.c: Ditto.
1660 * cli/cli-setshow.h: Ditto.
1661 * cli/cli-utils.c: Ditto.
1662 * cli/cli-utils.h: Ditto.
1663 * config/alpha/nm-osf3.h: Ditto.
1664 * config/djgpp/djconfig.sh: Ditto.
1665 * config/i386/nm-fbsd.h: Ditto.
1666 * config/i386/nm-i386gnu.h: Ditto.
1667 * config/nm-linux.h: Ditto.
1668 * config/nm-nto.h: Ditto.
1669 * config/rs6000/nm-rs6000.h: Ditto.
1670 * config/sparc/nm-sol2.h: Ditto.
1671 * darwin-nat-info.c: Ditto.
1672 * dfp.c: Ditto.
1673 * dfp.h: Ditto.
1674 * gdb-demangle.h: Ditto.
1675 * i386-darwin-nat.c: Ditto.
1676 * i386-darwin-tdep.c: Ditto.
1677 * linux-fork.h: Ditto.
1678 * m32c-tdep.c: Ditto.
1679 * microblaze-linux-tdep.c: Ditto.
1680 * microblaze-rom.c: Ditto.
1681 * microblaze-tdep.c: Ditto.
1682 * microblaze-tdep.h: Ditto.
1683 * mips-linux-tdep.h: Ditto.
1684 * ppc-ravenscar-thread.c: Ditto.
1685 * ppc-ravenscar-thread.h: Ditto.
1686 * prologue-value.c: Ditto.
1687 * prologue-value.h: Ditto.
1688 * ravenscar-thread.c: Ditto.
1689 * ravenscar-thread.h: Ditto.
1690 * sparc-ravenscar-thread.c: Ditto.
1691 * sparc-ravenscar-thread.h: Ditto.
1692 * tilegx-linux-tdep.c: Ditto.
1693 * unwind_stop_reasons.def: Ditto.
1694 * windows-nat.h: Ditto.
1695 * xtensa-linux-tdep.c: Ditto.
1696 * xtensa-xtregs.c: Ditto.
1697 * regformats/regdat.sh: Ditto.
1698 * regformats/regdef.h: Ditto.
1699
6c01dd94
PA
17002013-02-12 Pedro Alves <palves@redhat.com>
1701
1702 * break-catch-sig.c: Update copyright years.
1703
b65a2bd9
SCR
17042013-02-11 Siva Chandra Reddy <sivachandra@google.com>
1705
1706 Add support for a destructor for ui_out data and use it to
1707 provide a ui_out destructor.
1708 * ui-out.h: Declare the new ui_out destructor.
1709 (ui_out_impl): Add a field for data destructor in ui_out_impl.
1710 * ui-out.c (default_data_destroy): Add a default data destructor
1711 which does nothing.
1712 (default_ui_out_impl): Set the new data_destroy field to
1713 default_data_destroy
1714 (uo_data_destroy): Local function which invokes the data
1715 destructor if present.
1716 (clear_table): Local function which clears the table data of a
1717 ui_out object.
1718 (ui_out_destroy): Public function which frees a ui_out object.
1719 (ui_out_table_end): Use the new clear_table function.
1720 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
1721 NULL.
1722 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
1723 to NULL.
1724
c2792f5a
DE
17252013-02-11 Doug Evans <dje@google.com>
1726
1727 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
1728 (printf_decfloat): New function. Broken out from ui_printf.
1729 Remove unnecessary code to shift the entire format string down.
1730 (printf_pointer): New function.
1731 (ui_printf): Code to print C strings, wide C strings, decfloats,
1732 and pointers moved to separate functions.
1733
d9e98382
SDJ
17342013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
1735
1736 * valops.c (value_assign): Handling bitfield offset in
1737 `lval_internalvar_component' case.
1738
4ff3ce77
DE
17392013-02-08 Doug Evans <dje@google.com>
1740
1741 * common/format.c (parse_format_string): Fix whitespace.
1742
901900c4
MGD
17432013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
1744
1745 * stack.c (return_command): Work around uninitialized variable
1746 warning.
1747
b5dbc8d4
YZ
17482013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
1749
1750 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
1751 number of the registers from 36 to 34.
1752
51d66578
MS
17532013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
1754
1755 * NEWS: Mention new AArch64 native and target support.
1756
176b1c95
MS
17572013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
1758
1759 * MAINTAINERS (Write After Approval): Add myself.
1760
9d19df75
MS
17612013-02-08 Jim MacArthur <jim.macarthur@arm.com>
1762 Marcus Shawcroft <marcus.shawcroft@arm.com>
1763 Nigel Stephens <nigel.stephens@arm.com>
1764 Yufeng Zhang <yufeng.zhang@arm.com>
1765
1766 * aarch64-linux-nat.c: New file.
1767 * config/aarch64/linux.mh: New file.
1768 * configure.host: Add AArch64.
1769 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
1770
7e1e0340
DE
17712013-02-07 Doug Evans <dje@google.com>
1772
1773 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
1774 disassemble command.
1775
45e25a36
MS
17762013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
1777
1778 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1779 set_gdbarch_fetch_tls_load_module_address.
1780
bbfdfe1c
DM
17812013-02-06 David S. Miller <davem@davemloft.net>
1782
1783 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
1784 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
1785 * value.c (struct_return_convention): New function.
1786 (using_struct_return): Implement in terms of struct_return_convention.
1787 * value.h (struct_return_convention): Declare.
1788 * stack.c (return_command): Allow successful overriding of the return
1789 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
1790
bc9abe4a
TT
17912013-02-06 Tom Tromey <tromey@redhat.com>
1792
1793 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
1794 outside of TRY_CATCH.
1795
134a2066
YQ
17962013-02-06 Yao Qi <yao@codesourcery.com>
1797
1798 * mi/mi-interp.c: Include "tracepoint.h".
1799 (mi_tsv_modified): Declare.
1800 (mi_tsv_created, mi_tsv_deleted): Update declaration.
1801 (mi_interpreter_init): Call observer_attach_tsv_modified.
1802 (mi_tsv_modified): New.
1803 (mi_tsv_created, mi_tsv_deleted): Update.
1804 * tracepoint.c (trace_variable_command): Call
1805 observer_notify_tsv_modified if the initial value of tsv is
1806 changed.
1807 (delete_trace_state_variable): Call
1808 observer_notify_tsv_deleted earlier.
1809 (trace_variable_command): Caller update.
1810 (create_tsv_from_upload): Likewise.
1811 * observer.sh: Declare "struct trace_state_variable".
1812
1813 * NEWS: Mention the new MI notification "=tsv-modified".
1814
59be2b6a
DE
18152013-02-05 Doug Evans <dje@google.com>
1816
1817 * completer.c (location_completer): Fix typo in comment.
1818
d30113d4
JK
18192013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1820
1821 * breakpoint.c (add_location_to_breakpoint): Insert the location with
1822 ADDRESS sorted.
1823
14ac654f
MS
18242013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
1825
1826 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
1827 Refactor if statement to avoid trailing || operator.
1828
543bf33d
AT
18292013-02-05 Andreas Tobler <andreast@fgznet.ch>
1830
1831 * NEWS: Add PowerPC FreeBSD as a new native configuration.
1832
dc18f110
AT
18332013-02-04 Andreas Tobler <andreast@fgznet.ch>
1834
1835 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
1836 * configure.host: Add powerpc*-*-freebsd* target.
1837 * configure.tgt: Add target info for powerpc*-*-freebsd*.
1838 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
1839 * config/powerpc/fbsd.mh: New file.
1840
b3ac9c77
SDJ
18412013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
1842 Denys Vlasenko <dvlasenk@redhat.com>
1843 Pedro Alves <palves@redhat.com>
1844
1845 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
1846 (struct elf_internal_linux_prpsinfo): Forward declare.
1847 * gdbarch.h, gdbarch.c: Regenerate.
1848 * linux-tdep.c: Include `cli/cli-utils.h'.
1849 (linux_fill_prpsinfo): New function.
1850 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
1851 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
1852 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
1853 depending on gdbarch pointer bitness.
1854 * ppc-linux-tdep.c: Include elf-bfd.h.
1855 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
1856 on 32-bit.
1857
176eb98c
MS
18582013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1859 Marcus Shawcroft <marcus.shawcroft@arm.com>
1860 Nigel Stephens <nigel.stephens@arm.com>
1861 Yufeng Zhang <yufeng.zhang@arm.com>
1862
1863 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
1864
cf0dbd6f
MS
18652013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1866 Marcus Shawcroft <marcus.shawcroft@arm.com>
1867 Nigel Stephens <nigel.stephens@arm.com>
1868 Yufeng Zhang <yufeng.zhang@arm.com>
1869
1870 * aarch64-newlib-tdep.c: New file.
1871 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
1872 aarch64*-*-elf.
1873 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
1874 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
1875 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
1876 * osabi.c (gdb_osabi_names): Add "Newlib".
1877
1ae3db19
MS
18782013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1879 Marcus Shawcroft <marcus.shawcroft@arm.com>
1880 Nigel Stephens <nigel.stephens@arm.com>
1881 Yufeng Zhang <yufeng.zhang@arm.com>
1882
1883 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
1884 (ALLDEPFILES): Add aarch64-linux-tdep.c.
1885 * aarch64-linux-tdep.c: New file.
1886 * aarch64-linux-tdep.h: New file.
1887 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
1888 * configure.tgt: Add aarch64-none-linux-gnu.
1889
07b287a0
MS
18902013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1891 Marcus Shawcroft <marcus.shawcroft@arm.com>
1892 Nigel Stephens <nigel.stephens@arm.com>
1893 Yufeng Zhang <yufeng.zhang@arm.com>
1894
1895 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
1896 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
1897 (ALLDEPFILES): Add aarch64-tdep.c.
1898 * aarch64-tdep.c: New file.
1899 * aarch64-tdep.h: New file.
1900 * configure.tgt: Add AArch64.
1901 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
1902 (aarch64-expedite): New definition.
1903 * features/aarch64-core.xml: New file.
1904 * features/aarch64-fpu.xml: New file.
1905 * features/aarch64-without-fpu.c: New file (generated).
1906 * features/aarch64-without-fpu.xml: New file.
1907 * features/aarch64.c: New file (generated).
1908 * features/aarch64.xml: New file.
1909 * regformats/aarch64-without-fpu.dat: New file (generated).
1910 * regformats/aarch64.dat: New file (generated).
1911
0f1b18ab
JK
19122013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1913
1914 * contrib/expect-read1.c: New file.
1915 * contrib/expect-read1.sh: New file.
1916
233d95b5
JK
19172013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1918
1919 * dwarf2read.c (file_file_name): New function with code from
1920 file_full_name.
1921 (file_full_name): Move most of the code to file_file_name.
1922 (macro_start_file): Rename variable full_name to file_name and use
1923 file_file_name for it. Add comp_dir parameter to new_macro_table.
1924 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
1925 macro_source_file->filename access by macro_source_fullname call.
1926 * macroscope.c (_initialize_macroscope): Update the new_macro_table
1927 caller.
1928 * macrotab.c (struct macro_table): New field comp_dir.
1929 (macro_include): New variables link_fullname and source_fullname.
1930 Replace any macro_source_file->filename access by macro_source_fullname
1931 call.
1932 (macro_lookup_inclusion): Remove the partial filenames checking code.
1933 (check_for_redefinition): New variables source_fullname and
1934 found_key_fullname. Replace any macro_source_file->filename access by
1935 macro_source_fullname call.
1936 (macro_undef): New variables source_fullname and key_fullname. Replace
1937 any macro_source_file->filename access by macro_source_fullname call.
1938 (macro_lookup_definition): New variables retval and source_fullname.
1939 Replace any macro_source_file->filename access by macro_source_fullname
1940 call.
1941 (foreach_macro): New variable key_fullname. Replace any
1942 macro_source_file->filename access by macro_source_fullname call.
1943 (foreach_macro_in_scope): New variable datum_fullname. Replace any
1944 macro_source_file->filename access by macro_source_fullname call.
1945 (new_macro_table): Add parameter comp_dir. Initialize T with it.
1946 (macro_source_fullname): New function.
1947 * macrotab.h (struct macro_source_file): Extent the filename field
1948 comment.
1949 (new_macro_table): New parameter comp_dir, add a comment for it.
1950 (macro_source_fullname): new declaration.
1951
da235a7c
JK
19522013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1953
1954 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
1955 this_real_name to outer block. Use it also for
1956 compare_filenames_for_search.
1957 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
1958 with dw2_get_real_path for file_matcher, considering also
1959 BASENAMES_MAY_DIFFER.
1960 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
1961
fbd9ab74
JK
19622013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1963
1964 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
1965 to the file_matcher parameter. Pass 0 to it.
1966 (dwarf2_create_include_psymtab): Copy also DIRNAME.
1967 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
1968 NULL psymtab_to_fullname result.
1969 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
1970 an expected filename instead.
1971 (expand_symtabs_matching_via_partial): Add basenames parameter to the
1972 file_matcher parameter. Call also psymtab_to_fullname, after newly
1973 considering BASENAMES_MAY_DIFFER.
1974 * source.c (rewrite_source_path): Remove static.
1975 * source.h (rewrite_source_path): New declaration.
1976 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
1977 the expand_symtabs_matching field. Comment it.
1978 * symtab.c (file_matches): New function comment. Add parameter
1979 basenames, implement it.
1980 (search_symbols_file_matches): Add basenames parameter. Update the
1981 file_matches caller.
1982 (search_symbols): Match FILES also against symtab_to_fullname.
1983 Optimize it for BASENAMES_MAY_DIFFER.
1984
56d397a3
JK
19852013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1986
1987 * source.c (print_source_lines_base): Print for TUI also "fullname".
1988 * tui/tui-data.c (init_content_element): Change tui_locator_element
1989 field to full_name.
1990 * tui/tui-data.h (struct tui_locator_element): Likewise.
1991 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
1992 tui_update_locator_filename calls to tui_update_locator_fullname.
1993 Replace symtab->filename refererence by symtab_to_fullname call.
1994 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
1995 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
1996 field to full_name. Replace symtab->filename refererence by
1997 symtab_to_fullname call.
1998 (tui_show_symtab_source): Rename parameter to fullname. Change
1999 tui_locator_element field to full_name.
2000 * tui/tui-stack.c: Include source.h.
2001 (tui_set_locator_filename): Rename the declaration to ...
2002 (tui_set_locator_fullname): ... here. Rename its parameter to
2003 fullname, updates its comment.
2004 (tui_set_locator_info): Rename its parameter to fullname.
2005 (tui_set_locator_filename): Rename the definition to ...
2006 (tui_set_locator_fullname): ... here. Rename its parameter to
2007 fullname, updates its comment. Change tui_locator_element field to
2008 full_name.
2009 (tui_set_locator_info): Rename its parameter to fullname.
2010 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
2011 (tui_update_locator_filename): Rename to ...
2012 (tui_update_locator_fullname): ... here. Rename callee to
2013 tui_set_locator_fullname.
2014 (tui_show_frame_info): Replace symtab->filename refererence by
2015 symtab_to_fullname call.
2016 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
2017 (tui_update_locator_fullname): ... here.
2018 * tui/tui-winsource.c (tui_display_main): Rename the callee to
2019 tui_update_locator_fullname. Replace symtab->filename refererence by
2020 symtab_to_fullname call.
2021 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
2022 Rename the callee to tui_update_locator_fullname.
2023 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
2024
05cba821
JK
20252013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2026
2027 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
2028 by symtab_to_filename_for_display calls.
2029 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
2030 (clear_command): New variable sal_fullname, initialize it. Replace
2031 compare_filenames_for_search by filename_cmp with sal_fullname.
2032 (say_where, update_static_tracepoint): Replace symtab->filename
2033 refererences by symtab_to_filename_for_display calls.
2034 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
2035 Likewise.
2036 * dwarf2read.c: Include source.h.
2037 (fixup_go_packaging): Replace symtab->filename refererences by
2038 symtab_to_filename_for_display calls.
2039 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
2040 Replace symtab->filename refererences by symtab_to_filename_for_display
2041 calls.
2042 (create_sals_line_offset, convert_linespec_to_sals): New variable
2043 fullname, initialize it, replace symtab->filename reference by the
2044 variable.
2045 * linux-fork.c: Include source.h.
2046 (info_checkpoints_command): Replace symtab->filename refererences by
2047 symtab_to_filename_for_display calls.
2048 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
2049 by symtab_to_filename_for_display calls.
2050 * mdebugread.c: Include source.h.
2051 (psymtab_to_symtab_1): Replace symtab->filename refererences by
2052 symtab_to_filename_for_display calls.
2053 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2054 (mi_cmd_file_list_exec_source_files): Likewise.
2055 * printcmd.c: Include source.h.
2056 (build_address_symbolic): Replace symtab->filename refererences by
2057 symtab_to_filename_for_display calls.
2058 * psymtab.c (partial_map_symtabs_matching_filename)
2059 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
2060 with psymtab_to_fullname.
2061 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
2062 by symtab_to_filename_for_display calls.
2063 (stpy_get_filename): New variable filename, initialize it, use instead
2064 of symtab->filename refererences.
2065 (salpy_str): Make variable filename const char *. Replace
2066 symtab->filename refererences by symtab_to_filename_for_display calls.
2067 * skip.c: Include source.h and filenames.h.
2068 (skip_file_command): Remove const from the symtab variable. Replace
2069 symtab->filename refererences by symtab_to_fullname call.
2070 (function_name_is_marked_for_skip): New variables searched_for_fullname
2071 and fullname. Use them to search also with symtab's fullname.
2072 * source.c (find_source_lines): Replace symtab->filename refererences
2073 by symtab_to_filename_for_display calls.
2074 (print_source_lines_base): New variable filename, use it instead of
2075 symtab->filename. Replace symtab->filename refererences by
2076 symtab_to_filename_for_display calls.
2077 (line_info, forward_search_command): Replace symtab->filename
2078 refererences by symtab_to_filename_for_display calls.
2079 (reverse_search_command): Replace symtab->filename refererences by
2080 symtab_to_filename_for_display calls. New variable filename for it.
2081 * stack.c (frame_info): Likewise.
2082 * symmisc.c: Include source.h.
2083 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
2084 (maintenance_info_symtabs): Replace symtab->filename refererences by
2085 symtab_to_filename_for_display calls.
2086 * symtab.c (iterate_over_some_symtabs): Call
2087 compare_filenames_for_search also with symtab_to_fullname.
2088 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
2089 symtab->filename refererences by symtab_to_filename_for_display calls.
2090 (find_line_symtab): Replace symtab->filename refererences by
2091 symtab_to_filename_for_display calls.
2092 (file_matches): Replace filename_cmp by compare_filenames_for_search.
2093 (print_symbol_info): Make the last parameter const char *. New
2094 variable s_filename. Use it in the function.
2095 (symtab_symbol_info): Make the last_filename variable const char *.
2096 Replace symtab->filename refererences by symtab_to_filename_for_display
2097 calls.
2098 (rbreak_command): New variable fullname. Use it. Replace
2099 symtab->filename refererence by symtab_to_filename_for_display call.
2100 * tracepoint.c (set_traceframe_context, trace_find_line_command)
2101 (print_one_static_tracepoint_marker): Replace symtab->filename
2102 refererences by symtab_to_filename_for_display calls.
2103 * tui/tui-source.c (tui_set_source_content): New variables filename and
2104 s_filename. Replace symtab->filename refererences by this variable.
2105 Replace other symtab->filename refererences by
2106 symtab_to_filename_for_display calls.
2107
1b56eb55
JK
21082013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
2109 Jan Kratochvil <jan.kratochvil@redhat.com>
2110
2111 Add a new variable that controls a way in which filenames are
2112 displayed.
2113 * NEWS (set filename-display): New entry.
2114 * source.c (filename_display_basename, filename_display_relative)
2115 (filename_display_absolute, filename_display_kind_names)
2116 (filename_display_string, show_filename_display_string)
2117 (symtab_to_filename_for_display): New.
2118 (_initialize_source): Added initialization of 'filename-display'
2119 variable.
2120 * source.h (symtab_to_filename_for_display): Added declaration.
2121 * stack.c (print_frame): Added new variable and calling of a new
2122 function and condition with this variable. Changed third argument of
2123 calling of a function.
2124
aa079c93
JK
21252013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2126
2127 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
2128 Rename field reference filename to fullname.
2129 * tui/tui-data.h (struct tui_source_info): Rename field filename to
2130 fullname. New comment for it.
2131 * tui/tui-source.c (tui_set_source_content): Rename field reference
2132 filename to fullname. Initialize field by symtab_to_fullname now.
2133 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
2134 reference filename to fullname. Use symtab_to_fullname during
2135 comparison.
2136
652a8996
JK
21372013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2138
2139 Code cleanup.
2140 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
2141 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
2142 filename to fullname. Rename variable this_name to this_fullname.
2143 Lowercase FILENAME_CMP call.
2144 (dw2_find_symbol_file): New comment for the returned string.
2145 (dwarf2_gdb_index_functions): Rename the function to
2146 dw2_expand_symtabs_with_fullname.
2147 * psymtab.c (read_psymtabs_with_filename): Rename to ...
2148 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
2149 fullname.
2150 (psym_functions): Rename the function to read_psymtabs_with_fullname.
2151 * symfile.h (struct quick_symbol_functions): Rename field
2152 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
2153 parameter filename to fullname. Document returned string meaning for
2154 find_symbol_file.
2155 * symtab.c (find_line_symtab): Rename the called function to
2156 expand_symtabs_with_fullname.
2157
af529f8f
JK
21582013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2159
2160 Code cleanup.
2161 * breakpoint.c (clear_command): Remove variable is_abs, unify the
2162 call of filename_cmp with compare_filenames_for_search.
2163 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
2164 is_abs, unify the call of FILENAME_CMP with
2165 compare_filenames_for_search. New gdb_asserts for real_path and name.
2166 Unify the call of compare_filenames_for_search with FILENAME_CMP.
2167 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
2168 * symfile.h (struct quick_symbol_functions): Extend the comment for
2169 map_symtabs_matching_filename.
2170 * symtab.c (compare_filenames_for_search): Remove the function comment
2171 relative path requirement. Handle absolute filenames, with a comment.
2172 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
2173 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
2174 real_path and name. Unify the call of compare_filenames_for_search
2175 with FILENAME_CMP.
2176 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
2177
2f202fde
JK
21782013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2179
2180 Code cleanup.
2181 * breakpoint.c (print_breakpoint_location): Replace bp_location field
2182 source_file references by symtab field references. Remove variables
2183 sal and fullname.
2184 (momentary_breakpoint_from_master, add_location_to_breakpoint):
2185 (clear_command, say_where): Replace bp_location field source_file
2186 references by symtab field references.
2187 (bp_location_dtor): Remove the source_file reference.
2188 (update_static_tracepoint): Replace bp_location field source_file
2189 references by symtab field references.
2190 (breakpoint_free_objfile): New function.
2191 * breakpoint.h (struct bp_location): Extend the comment for line_number.
2192 Replace the field source_file by field symtab, extend its comment.
2193 (breakpoint_free_objfile): New declaration.
2194 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
2195 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
2196 field source_file references by symtab field references.
2197
f5b95b50
JK
21982013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2199
2200 Replace xfullpath calls by gdb_realpath calls.
2201 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
2202 function comment.
2203 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
2204 Remove it from the iterate_over_some_symtabs call.
2205 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
2206 Remove it from the dw2_map_expand_apply calls, remove a block handling
2207 it.
2208 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
2209 Remove it from the iterate_over_some_symtabs call.
2210 (partial_map_symtabs_matching_filename): Remove parameter full_path.
2211 Remove it from the partial_map_expand_apply calls, remove a block
2212 handling it. Drop gdb_realpath call and cleanups from the real_path
2213 handling.
2214 * source.c (openp): Drop the comment part about xfullpath. Replace
2215 xfullpath calls by gdb_realpath calls.
2216 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
2217 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
2218 from method map_symtabs_matching_filename and its comment.
2219 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
2220 gdb_realpath call.
2221 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
2222 remove it also from the function comment, remove a block handling it.
2223 Drop gdb_realpath call and cleanups from the real_path handling.
2224 (iterate_over_symtabs): Drop variable full_path and its use.
2225 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
2226 * utils.c (xfullpath): Remove.
2227 * utils.h (xfullpath): Remove.
2228
d78489bf
AT
22292013-02-01 Andreas Tobler <andreast@fgznet.ch>
2230
2231 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
2232 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
2233 (ALLDEPFILES): Add ppc64-tdep.c.
2234 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
2235 ppc64-tdep.o to gdb_target_obs.
2236 * ppc64-tdep.h: New file.
2237 * ppc64-tdep.c: New file.
2238 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
2239 ppc-linux-tdep.c to here.
2240 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
2241 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
2242 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
2243 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
2244 from ppc-linux-tdep.c to here.
2245 (ppc64_convert_from_func_ptr_addr): Rename from
2246 ppc64_linux_convert_from_func_ptr_addr to
2247 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
2248 here.
2249 * rs6000-tdep.c:
2250 (read_insn): Move from ppc-linux-tdep.c to here.
2251 (insns_match_pattern, insn_d_field, insn_ds_field): Move
2252 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
2253 * ppc-linux-tdep.c: Include ppc64-tdep.h.
2254 Removed above functions.
2255 (ppc_linux_init_abi): Adjust.
2256
8db60374
AR
22572013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
2258
2259 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
2260
f2e5f4ce
AR
22612013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
2262
2263 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
2264
c1f7d745
PA
22652013-02-01 Pedro Alves <palves@redhat.com>
2266
2267 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
2268 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
2269
8a92335b
JK
22702013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2271
2272 * elfread.c (elf_symfile_read): Limit separate debug info additions to
2273 files with no separate debug info.
2274 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
2275 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
2276 only for files with no separate debug info.
2277
8eacb197
TT
22782013-01-31 Tom Tromey <tromey@redhat.com>
2279
2280 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
2281 change type.
2282 (struct jit_program_space_data): Rename from jit_inferior_data.
2283 Update comments.
2284 (get_jit_program_space_data): Rename from get_jit_inferior_data.
2285 Change return type. Attach data to program space.
2286 (jit_program_space_data_cleanup): Rename from
2287 jit_inferior_data_cleanup; change argument type.
2288 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
2289 change type.
2290 (jit_register_code): Update.
2291 (jit_update_inferior_cache): Remove.
2292 (jit_breakpoint_deleted): Get jit data from the location's program
2293 space.
2294 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
2295 'ps_data', change type.
2296 (jit_inferior_init, jit_breakpoint_re_set_internal)
2297 (jit_event_handler): Update.
2298 (free_objfile_data): Get data from objfile's program space.
2299 (_initialize_jit): Update.
2300
f25c0135
TT
23012013-01-31 Tom Tromey <tromey@redhat.com>
2302
2303 PR gdb/13987:
2304 * jit.c (struct jit_inferior_data) <cached_code_address,
2305 jit_breakpoint>: New fields.
2306 (jit_breakpoint_re_set_internal): Fix logging. Only create
2307 breakpoint if cached address has changed.
2308 (jit_update_inferior_cache, jit_breakpoint_deleted): New
2309 functions.
2310 (_initialize_jit): Register breakpoint deleted observer.
2311
974a734b
AR
23122013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2313
2314 * infrun.c (handle_syscall_event): Remove unused gdbarch.
2315 (save_infcall_suspend_state): Ifdef out unused inf.
2316 (restore_infcall_suspend_state): Ifdef out unused inf.
2317 * jit.c (jit_register_code): Remove unused i, b, inf_data.
2318 (jit_frame_sniffer): Remove unused inf_data.
2319
df54f8eb
AR
23202013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2321
2322 * c-exp.y (classify_inner_name): Remove unused type.
2323 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
2324 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
2325 need_escape.
2326 (c_get_string): Remove unused kind.
2327 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
2328
5799c0b9
AR
23292013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2330
2331 * charset.c (intermediate_encoding): Remove unused i.
2332 * completer.c (signal_completer): Remove unused i.
2333 * continuations.c (discard_my_continuations_1): Remove unused
2334 continuation_ptr.
2335 * corelow.c (core_close): Remove unuseD name.
2336 (get_core_siginfo): Remove unused pid.
2337 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
2338 i, cps.
2339 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
2340 (loclist_describe_location): Remove unused first.
2341 * event-top.c (command_line_handler): Remove unused got_eof.
2342 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
2343 (resize_section_table): Remove unused old_value.
2344 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
2345 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
2346 * i386-tdep.c (i386_process_record): Remove unused rex.
2347 * infcmd.c (get_return_value): Remove unused uiout.
2348 * jv-lang.c (type_from_class): Remove unused is_array.
2349 * jv-valprint.c (java_val_print): Remove unused i.
2350 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
2351 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
2352 * m2-typeprint.c (m2_print_type): Remove unused code.
2353 * macroexp.c (get_character_constant): Remove unused body_start.
2354 (macro_stringify): Remove unused result.
2355 * objc-lang.c (find_methods): Remove unused gdbarch.
2356 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
2357 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
2358 * stack.c (print_frame_args): Remove unused summary.
2359 * thread.c (thread_apply_command): Remove unused p.
2360 * valarith.c (value_x_unop): Remove unused mangle_ptr.
2361 * valops.c (search_struct_method): Remove unused skip.
2362 * valprint.c (generic_val_print): Remove unused byte_order.
2363 * varobj.c (varobj_update): Remove unused changed.
2364 * cli/cli-cmds.c (complete_command): Remove unused next_item.
2365 (alias_command): Remove unused c.
2366 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
2367 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
2368 format.
2369 (mi_cmd_data_write_memory): Remove unused word_format.
2370 (mi_cmd_data_write_memory_bytes): Remove unused r.
2371 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
2372 p_start, p_end.
2373 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
2374 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
2375 line_width.
2376
c656bca5
AR
23772013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2378
2379 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
2380 * symtab.c (iterate_over_symtabs): Remove unused s.
2381 (find_pc_sect_symtab): Remove unused pspAce.
2382 (find_pc_sect_line): Remove unused alt_symtab.
2383 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
2384 (completion_list_add_name): Remove unused newsize.
2385
7078baeb
TT
23862013-01-31 Tom Tromey <tromey@redhat.com>
2387
2388 PR c++/14998:
2389 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
2390 TYPE_CODE_FUNC.
2391
c2e8b827
AR
23922013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2393
2394 * target.c (target_read_string): Remove unused origlen.
2395
0e43993a
AR
23962013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2397
2398 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
2399 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
2400 * ax-general.c (ax_print): Remove unused is_float.
2401 * blockframe.c (block_innermost_frame): Remove unused start, end.
2402 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
2403
765a97ab
AR
24042013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2405
2406 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
2407 (svr4_read_so_list): Remove unused lmo.
2408 * solib-target.c (solib_target_relocate_section_addresses): Remove
2409 unused flags.
2410
a99dad3d
TT
24112013-01-30 Tom Tromey <tromey@redhat.com>
2412
2413 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
2414
3bff1ecd
TT
24152013-01-30 Tom Tromey <tromey@redhat.com>
2416
2417 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
2418 * utils.c (gnu_debuglink_crc32): Remove.
2419 * utils.h (gnu_debuglink_crc32): Don't declare.
2420
7d455152
TT
24212013-01-30 Tom Tromey <tromey@redhat.com>
2422
2423 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
2424 (read_structure_type, read_enumeration_type): Remove cast.
2425
abee88f2
TT
24262013-01-30 Tom Tromey <tromey@redhat.com>
2427
2428 * dwarf2read.c (read_namespace_type): Remove cast.
2429 (read_typedef): Likewise.
2430
8d9878a4
TT
24312013-01-29 Tom Tromey <tromey@redhat.com>
2432
2433 * dwarf2read.c (free_dwo_file): Remove assert.
2434
a543d2a9
TT
24352013-01-29 Tom Tromey <tromey@redhat.com>
2436
2437 * value.c (deprecated_set_value_modifiable): Remove.
2438 * value.h (deprecated_set_value_modifiable): Remove.
2439
bed911e5
DE
24402013-01-28 Doug Evans <dje@google.com>
2441
2442 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
2443 to addresses from dwo files.
2444
28c64fc2
SCR
24452013-01-25 Siva Chandra Reddy <sivachandra@google.com>
2446
2447 * valops.c (find_overload_match): Remove unused argument 'lax'.
2448 * value.h: Remove unused argument 'lax' from the declaration of
2449 find_overload_match.
2450 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
2451 to find_overload_match.
2452 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
2453 argument to find_overload_match.
2454
4d4ec4e5
TT
24552013-01-25 Tom Tromey <tromey@redhat.com>
2456
2457 * dwarf2read.c (processing_has_namespace_info): Remove.
2458 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
2459 (process_die, read_func_scope, dwarf2_start_symtab)
2460 (new_symbol_full): Update.
2461
195a3f6c
TT
24622013-01-25 Tom Tromey <tromey@redhat.com>
2463
2464 * cp-namespace.c (cp_set_block_scope): Remove.
2465 * cp-support.h (cp_set_block_scope): Remove.
2466 * dbxread.c: Include block.h.
2467 (cp_set_block_scope): New function.
2468 (process_one_symbol): Update.
2469 * dwarf2read.c (read_func_scope): Use block_set_scope.
2470
8ba0730a
PA
24712013-01-25 Pedro Alves <palves@redhat.com>
2472
2473 * remote.c (add_current_inferior_and_thread): Tweak comment.
2474
12aaed36
TT
24752013-01-25 Tom Tromey <tromey@redhat.com>
2476
2477 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2478 (cp_add_using_directive): Add 'copy_names' argument.
2479 * cp-support.h (cp_add_using_directive): Update.
2480 (struct using_direct) <import_src, import_dest, alias,
2481 declaration>: Now const.
2482 * dwarf2read.c (read_import_statement): Use obconcat.
2483 Don't copy names passed to cp_add_using_directive.
2484
7fc75ca7
TT
24852013-01-25 Tom Tromey <tromey@redhat.com>
2486
2487 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
2488
3405876a
PA
24892013-01-25 Pedro Alves <palves@redhat.com>
2490
2491 * remote.c (stop_reply_extract_thread): New.
2492 (add_current_inferior_and_thread): New parameter 'wait_status'.
2493 Handle it.
2494 (remote_start_remote): Pass wait status to
2495 add_current_inferior_and_thread.
2496 (extended_remote_run): Update comment.
2497 (extended_remote_create_inferior_1): Pass wait status to
2498 add_current_inferior_and_thread.
2499
8954db33
AB
25002013-01-25 Andrew Burgess <aburgess@broadcom.com>
2501 Ulrich Weigand <uweigand@de.ibm.com>
2502
2503 * valarith.c (value_vector_widen): New function for replicating a
2504 scalar into a vector.
2505 (value_binop): Use value_vector_widen to widen scalar to vector
2506 rather than casting, this better matches gcc C behaviour.
2507 * valops.c (value_casst): Update logic for casting between vector
2508 types, and for casting from scalar to vector, try to match gcc C
2509 behaviour.
2510 * value.h (value_vector_widen): Declare.
2511 * opencl-lang.c (opencl_value_cast): New opencl specific casting
2512 function, handle special case for casting scalar to vector.
2513 (opencl_relop): Use opencl_value_cast.
2514 (evaluate_subexp_opencl): Use opencl_value_cast instead of
2515 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
2516 in order to use opencl_value_cast.
2517
843b20dc
YQ
25182013-01-25 Yao Qi <yao@codesourcery.com>
2519
2520 * event-loop.c: Include "queue.h".
2521 (gdb_event_p): New typedef.
2522 (DECLARE_QUEUE_P): Use.
2523 (DEFINE_QUEUE_P): Use.
2524 (async_queue_event): Remove.
2525 (gdb_event_xfree): New.
2526 (initialize_event_loop): New.
2527 (process_event): Use QUEUE macros.
2528 (event_queue): Remove.
2529 (gdb_wait_for_event): Caller update.
2530 (check_async_event_handlers): Likewise.
2531 (poll_timers): Likewise.
2532 * event-loop.h (initialize_event_loop): Declare.
2533 * event-loop.c (gdb_event_xfree): New.
2534 * top.c (gdb_init): Call initialize_event_loop.
2535
20ad8856
YQ
25362013-01-25 Yao Qi <yao@codesourcery.com>
2537
2538 * event-loop.c (async_queue_event): Remove one parameter
2539 'position'. Remove code handling 'position' == TAIL.
2540 (gdb_wait_for_event): Caller update.
2541 (check_async_event_handlers): Caller update.
2542 (poll_timers): Caller update.
2543 * event-loop.h (enum queue_position): Remove.
2544
3bbbe775
MK
25452013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
2546
2547 * MAINTAINERS: Update my email.
2548
a87d9ac4
YQ
25492013-01-25 Yao Qi <yao@codesourcery.com>
2550
2551 * main.c (print_gdb_help): Remove "--epoch" from the help
2552 message.
2553
2077afdd
TD
25542013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
2555
2556 * symtab.c (skip_prologue_using_sal): Consider a file
2557 change the same as an increased line number
2558
63da4037
TD
25592013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
2560
30e8ee25 2561 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 2562
45e6c716
TT
25632013-01-24 Tom Tromey <tromey@redhat.com>
2564
2565 * ada-lang.h (ada_decode_symbol): Make return type const.
2566 * ada-lang.c (ada_decode_symbol): Likewise.
2567
b1ae631a
DE
25682013-01-23 Doug Evans <dje@google.com>
2569
2570 * linespec.c (find_linespec_symbols): Make static.
2571
55a78401
SDJ
25722013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
2573
2574 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
2575 type on float conversion for complex type.
2576
bea883fd
SCR
25772013-01-23 Siva Chandra Reddy <sivachandra@google.com>
2578
2579 Add a new class gdb.Architecture which exposes GDB's
2580 internal representation of architecture via GDB Python API.
2581 * Makefile.in: Add entries corresponding to the new file
2582 python/py-arch.c.
2583 * NEWS (Python Scripting): Add entries for the new class
2584 gdb.Architecture and the new method gdb.Frame.architecture.
2585 * python/py-arch.c: Implement gdb.Architecture class.
2586 * python/py-frame.c (frapy_arch): Implement the method
2587 gdb.Frame.architecture().
2588 (frame_object_methods): Add 'architecture' to the method table.
2589 * python/python-internal.h: Add declarations of new utility
2590 functions.
2591 * python/python.c (_initialize_python): Initialize
2592 gdb.Architecture class.
2593
796a7ff8
DE
25942013-01-23 Doug Evans <dje@google.com>
2595
2596 Work around binutils/15021.
2597 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
2598 type_unit_group out of union s. All uses updated.
2599 (read_index_from_section): Watch for index version 8.
2600 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
2601 an imported symtab.
2602 (write_psymtabs_to_index): Increment version number to 8.
2603
0928e93d
PA
26042013-01-22 Pedro Alves <palves@redhat.com>
2605
2606 * annotate.c (breakpoint_changed): Skip if breakpoint is not
2607 user-visible.
2608
9c97429f
PA
26092013-01-22 Pedro Alves <palves@redhat.com>
2610
2611 * annotate.c (annotate_breakpoints_changed): Rename to ...
2612 (annotate_breakpoints_invalid): ... this. Make static.
2613 (breakpoint_changed): Adjust.
2614 (_initialize_annotate): Always install the observers. Install a
2615 "breakpoint_created" observer.
2616 * annotate.h (annotate_breakpoints_changed): Delete declaration.
2617 * breakpoint.c (set_breakpoint_condition)
2618 (breakpoint_set_commands, do_map_commands_command)
2619 (init_raw_breakpoint, clear_command, set_ignore_count)
2620 (enable_breakpoint_disp): No longer call
2621 annotate_breakpoints_changed.
2622
bd00c694
PA
26232013-01-22 Pedro Alves <palves@redhat.com>
2624
2625 * annotate.c: Include "inferior.h".
2626 (frames_invalid_emitted)
2627 (breakpoints_invalid_emitted): New globals.
2628 (async_background_execution_p): New function.
2629 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
2630 emitting the annotation if it has already been emitted.
2631 (annotate_display_prompt): New function.
2632 * annotate.h (annotate_display_prompt): New declaration.
2633 * event-top.c: Include annotate.h.
2634 (display_gdb_prompt): Call annotate_display_prompt.
2635
187d10dd
PA
26362013-01-22 Pedro Alves <palves@redhat.com>
2637
2638 * annotate.c (ignore_count_changed): Delete.
2639 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
2640 (annotate_ignore_count_change): Delete.
2641 (annotate_stopped): Don't emit a delayed breakpoints-changed
2642 annotation.
2643 * annotate.h (annotate_ignore_count_change): Delete.
2644 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
2645 annotate_ignore_count_change.
2646
d84cf7eb
TT
26472013-01-22 Tom Tromey <tromey@redhat.com>
2648
2649 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
2650 require_rvalue for a register location.
2651
8f1d5693
MK
26522013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
2653
2654 * breakpoint.c (print_one_breakpoint_location): Add MI
2655 field 'thread-groups' when printing a breakpoint.
2656 (output_thread_groups): New function.
2657
aa6199c6
SCR
26582013-01-21 Siva Chandra Reddy <sivachandra@google.com>
2659
2660 * python/lib/gdb/commands/explore.py
2661 (CompoundExplorer.explore_expr): Correct the name of a method
2662 being invoked.
2663 (ExploreTypeCommand.invoke): Add a missing 'return'.
2664
d2afef13
TT
26652013-01-21 Tom Tromey <tromey@redhat.com>
2666
2667 * gdb_obstack.h (obconcat): Move declaration here, from...
2668 * symfile.h (obconcat): ... here.
2669 * gdb_obstack.c: New file.
2670 (obconcat): Move from...
2671 * symfile.c (obconcat): ... here.
2672 * Makefile.in (SFILES): Add gdb_obstack.c.
2673 (COMMON_OBS): Add gdb_obstack.o.
2674
10f0c4bb
TT
26752013-01-21 Tom Tromey <tromey@redhat.com>
2676
2677 * symfile.h (obsavestring): Don't declare.
2678 * symfile.c (obsavestring): Remove.
2679 * ada-exp.y: Use obstack_copy0, not obsavestring.
2680 * ada-lang.c: Use obstack_copy0, not obsavestring.
2681 * coffread.c: Use obstack_copy0, not obsavestring.
2682 * cp-namespace.c: Use obstack_copy0, not obsavestring.
2683 * dbxread.c: Use obstack_copy0, not obsavestring.
2684 * dwarf2read.c: Use obstack_copy0, not obsavestring.
2685 * jit.c: Use obstack_copy0, not obsavestring.
2686 * mdebugread.c: Use obstack_copy0, not obsavestring.
2687 * psymtab.c: Use obstack_copy0, not obsavestring.
2688 * stabsread.c: Use obstack_copy0, not obsavestring.
2689 * xcoffread.c: Use obstack_copy0, not obsavestring.
2690
86f62fd7
TT
26912013-01-21 Tom Tromey <tromey@redhat.com>
2692
2693 * dwarf2read.c (fixup_go_packaging): Save package name
2694 on objfile obstack.
2695 * gdbtypes.c (init_type): Don't copy name.
2696
15d034d0
TT
26972013-01-21 Tom Tromey <tromey@redhat.com>
2698
2699 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
2700 const.
2701 (struct attribute) <u.str>: Now const.
2702 (struct fnfieldlist) <name>: Now const.
2703 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
2704 (partial_die_parent_scope): Make return type const.
2705 (partial_die_full_name, add_partial_symbol): Update.
2706 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
2707 'name' const.
2708 (find_file_and_directory): Make 'name' and 'comp_dir' const.
2709 (read_file_scope, read_func_scope, dwarf2_add_field)
2710 (dwarf2_add_member_fn, read_structure_type)
2711 (process_enumeration_scope, read_array_type, read_module_type)
2712 (read_base_type, read_subrange_type): Update.
2713 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
2714 (new_symbol_full, guess_full_die_structure_name): Update.
2715 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
2716 (dwarf2_name): Return const type.
2717 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
2718 const.
2719
748e18ae
TT
27202013-01-21 Tom Tromey <tromey@redhat.com>
2721
2722 * gdbtypes.c (init_type): Make 'name' const.
2723 * gdbtypes.h (init_type): Update.
2724
46212e0b
TT
27252013-01-21 Tom Tromey <tromey@redhat.com>
2726
2727 * buildsym.c (patch_subfile_names): Use set_last_source_file.
2728 (start_symtab): Make 'name' and 'dirname' const. Use
2729 set_last_source_file.
2730 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
2731 (last_source_file): Define. Now static.
2732 (set_last_source_file, get_last_source_file): New functions.
2733 * buildsym.h (last_source_file): Don't declare.
2734 (start_symtab): Update.
2735 (set_last_source_file, get_last_source_file): Declare.
2736 * coffread.c (complete_symtab): Use set_last_source_file.
2737 (coff_end_symtab): Likewise.
2738 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
2739 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
2740 set_last_source_file.
2741 (process_one_symbol): Use get_last_source_file.
2742 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
2743 (psymtab_to_symtab_1): Use get_last_source_file.
2744 * xcoffread.c (process_linenos): Use get_last_source_file.
2745 (complete_symtab): Use set_last_source_file.
2746 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
2747 (scan_xcoff_symtab): Use set_last_source_file.
2748
9d2ceabe
TT
27492013-01-21 Tom Tromey <tromey@redhat.com>
2750
2751 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
2752 (symbol_set_names): Remove casts. Handle field const-ness.
2753
cfc594ee
TT
27542013-01-21 Tom Tromey <tromey@redhat.com>
2755
2756 * dwarf2read.c (new_symbol_full): Remove cast.
2757 * symtab.c (symbol_set_demangled_name): Make 'name' const.
2758 * symtab.h (symbol_set_demangled_name): Update.
2759
5484b13a
TT
27602013-01-21 Tom Tromey <tromey@redhat.com>
2761
2762 * main.c (captured_main): Call bfd_init.
2763
1605ef26
TT
27642013-01-21 Tom Tromey <tromey@redhat.com>
2765
2766 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
2767 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
2768 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
2769 * NEWS: Update.
2770
3b74cdc3
JK
27712013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2772
2773 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
2774
5a352474
JK
27752013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2776
2777 Fix gdb.fortran/common-block.exp crash in PIE mode.
2778 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
2779 LOC_COMMON_BLOCK.
2780 * f-valprint.c (info_common_command_for_block): Expect
2781 LOC_COMMON_BLOCK in gdb_assert.
2782 * symtab.h (struct general_symbol_info): Update comment for the
2783 common_block member.
2784 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
2785 (enum address_class): New member LOC_COMMON_BLOCK.
2786
c60797fd
DB
27872013-01-18 David Blaikie <dblaikie@gmail.com>
2788
2789 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 2790
46f35228
TT
27912013-01-18 Tom Tromey <tromey@redhat.com>
2792
2793 PR c++/14999:
2794 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
2795 Call require_rvalue.
2796
257e7a09
YQ
27972013-01-18 Yao Qi <yao@codesourcery.com>
2798
2799 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
2800 (dbx_read_symtab): New declaration.
2801 (dbx_psymtab_to_symtab): Delete.
2802 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
2803 Rename parameter PST to SELF. Exchanged two parameters.
2804 (start_psymtab): Caller update.
2805 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
2806 (dwarf2_read_symtab): New declaration.
2807 (dwarf2_psymtab_to_symtab): Delete.
2808 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
2809 Rename parameter PST to SELF. Exchanged two parameters.
2810 (create_partial_symtab): Caller update.
2811 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
2812 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
2813 Rename parameter PST to SELF. Exchanged two parameters.
2814 (parse_partial_symbols, new_psymtab): Caller update.
2815 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
2816 two parameters.
2817 * psymtab.c (psymtab_to_symtab): Caller update.
2818 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
2819 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
2820 Rename parameter PST to SELF. Exchanged two parameters.
2821 (xcoff_start_psymtab): Caller update.
2822
0de5618e
YQ
28232013-01-18 Yao Qi <yao@codesourcery.com>
2824
2825 * infrun.c (proceed): Rename local variable 'oneproc' to
2826 'force_step'.
2827
5c04624b
DE
28282013-01-17 Doug Evans <dje@google.com>
2829
848e3e78
DE
2830 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
2831 (dw2_build_type_unit_groups): Delete. All uses updated.
2832
5c04624b
DE
2833 * symtab.h (struct symbol_search): Add comment.
2834
d84fca2c
JK
28352013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2836
2837 * symtab.c (compare_filenames_for_search): New comment for
2838 HAS_DRIVE_SPEC.
2839
6108433d
TT
28402013-01-17 Tom Tromey <tromey@redhat.com>
2841
2842 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
2843
c89ffd86
JK
28442013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2845
2846 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
2847 initialize it by existing make_cleanup. Call new do_cleanups.
2848
db2b2972
TT
28492013-01-17 Tom Tromey <tromey@redhat.com>
2850
2851 * cp-abi.c (cp_abi_completer): New function.
2852 (_initialize_cp_abi): Set completer for "set cp-abi".
2853
be7d37a2
TT
28542013-01-17 Tom Tromey <tromey@redhat.com>
2855
2856 * mem-break.c: Remove obsolete comment.
2857 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
2858
c9fb1240
SD
28592012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
2860
2861 * jit.c (jit_reader_load_command): Interpret the jit reader name
2862 as an absolute path if it begins with a forward slash.
2863
db334a01
SD
28642012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
2865
2866 PR gdb/14550
2867
2868 * jit.c (finalize_symtab): Ensure that only the global block has a
2869 NULL superblock.
2870
7d928dac
PA
28712013-01-17 Pedro Alves <palves@redhat.com>
2872
2873 * acinclude.m4: Include ../config/plugins.m4,
2874 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
2875 * Makefile.in (aclocal_m4_deps): Update.
2876 * aclocal.m4: Renegerate.
2877
fb8cf7c5
DE
28782013-01-16 Doug Evans <dje@google.com>
2879
2880 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
2881
ab04a2af
TT
28822013-01-16 Pedro Alves <palves@redhat.com>
2883 Tom Tromey <tromey@redhat.com>
2884
2885 PR cli/7221:
2886 * NEWS: Add "catch signal".
2887 * breakpoint.c (base_breakpoint_ops): No longer static.
2888 (bpstat_explains_signal): New function.
2889 (init_catchpoint): No longer static.
2890 (base_breakpoint_explains_signal): New function.
2891 (base_breakpoint_ops): Initialize new field.
2892 * breakpoint.h (enum bpstat_signal_value): New.
2893 (struct breakpoint_ops) <explains_signal>: New field.
2894 (bpstat_explains_signal): Remove macro, declare as function.
2895 (base_breakpoint_ops, init_catchpoint): Declare.
2896 * break-catch-sig.c: New file.
2897 * inferior.h (signal_catch_update): Declare.
2898 * infrun.c (signal_catch): New global.
2899 (handle_syscall_event): Update for change to
2900 bpstat_explains_signal.
2901 (handle_inferior_event): Likewise. Always handle random signals
2902 via bpstats.
2903 (signal_cache_update): Check signal_catch.
2904 (signal_catch_update): New function.
2905 (_initialize_infrun): Initialize signal_catch.
2906 * Makefile.in (SFILES): Add break-catch-sig.c.
2907 (COMMON_OBS): Add break-catch-sig.o.
2908
8ac3646f
TT
29092013-01-16 Tom Tromey <tromey@redhat.com>
2910
2911 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
2912 (print_one_catch_solib, print_one_catch_syscall)
2913 (print_one_catch_exec, print_one_exception_catchpoint): Emit
2914 "catch-type".
2915
5a18e302
YQ
29162013-01-16 Yao Qi <yao@codesourcery.com>
2917
2918 * printcmd.c (current_display_number): Make it static.
2919
3f01d0d0
YQ
29202013-01-16 Yao Qi <yao@codesourcery.com>
2921
2922 * infcmd.c (step_once): Don't check '!single_inst' as it was
2923 checked before.
2924
1ed59174
JK
29252013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2926
2927 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
2928
44478ab3
TT
29292013-01-14 Tom Tromey <tromey@redhat.com>
2930
2931 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
2932 set command.
2933 * command.h (add_setshow_string_noescape_cmd): Update.
2934 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
2935 (complete_set_gnutarget): New function.
2936 (_initialize_core): Set the "set gnutarget" completer.
2937
06d66ee9
TT
29382013-01-14 Tom Tromey <tromey@redhat.com>
2939
2940 PR symtab/14442:
2941 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
2942 (c_type_print_modifier): Likewise.
2943 * dwarf2read.c (read_tag_restrict_type): New function.
2944 (read_type_die_1): Handle DW_TAG_restrict_type.
2945 * gdbtypes.c (make_restrict_type): New function.
2946 (recursive_dump_type): Handle TYPE_RESTRICT.
2947 * gdbtypes.h (enum type_flag_values): Renumber.
2948 (enum type_instance_flag_value): Add
2949 TYPE_INSTANCE_FLAG_RESTRICT.
2950 (TYPE_RESTRICT): New macro.
2951 (make_restrict_type): Declare.
2952
c9bf0622
TT
29532013-01-14 Tom Tromey <tromey@redhat.com>
2954
2955 PR symtab/14931:
2956 * psymtab.c (struct psymtab_state): New.
2957 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
2958 functions.
2959 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
2960 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
2961
44d594fd
PA
29622013-01-14 Richard Sharman <richard_sharman@mitel.com>
2963 Pedro Alves <palves@redhat.com>
2964
2965 PR remote/14786
2966
2967 * remote.c (remote_threads_info): Make a copy of the reply from
2968 qfThreadInfo and use that instead of rs->buf.
2969
442e4d9c
YQ
29702013-01-14 Yao Qi <yao@codesourcery.com>
2971
2972 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
2973 (dbx_psymtab_to_symtab): Likewise.
2974 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
2975 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
2976 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
2977
5b12a61c
JK
29782013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2979
2980 * parse.c (parse_exp_in_context): New variable inner_chain. Call
2981 make_cleanup_restore_current_language. Call set_language. Move
2982 OLD_CHAIN and INNER_CHAIN cleanups.
2983 * utils.c (do_restore_current_language)
2984 (make_cleanup_restore_current_language): New functions.
2985 * utils.h (make_cleanup_restore_current_language): New declaration.
2986
f0a4b570
JK
29872013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2988
2989 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
2990 non-existing files.
2991
57b3c00c
JK
2992 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
2993 non-existing files if FILENAME is already absolute.
2994
daefa854
JK
29952013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2996
2997 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
2998 fputs_filtered. Append trailing newline.
2999
ca9c6ee2
YQ
30002013-01-11 Yao Qi <yao@codesourcery.com>
3001 Stan Shebs <stan@codesourcery.com>
3002
3003 * psymtab.c (init_psymbol_list): Clarify the comment.
3004
f28045c2
YQ
30052013-01-11 Yao Qi <yao@codesourcery.com>
3006
3007 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
3008 (update_dprintf_command_list): Assert that 'printf_line' is
3009 non-null. Remove condition check.
3010
da5132d3
JK
30112013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3012
3013 Code cleanup.
3014 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
3015 type const char *.
3016 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
3017 const char *.
3018 * tui/tui-source.h (tui_source_is_displayed): Likewise.
3019
843e694d
AG
30202013-01-09 Anthony Green <green@moxielogic.com>
3021
3022 * cp-abi.c (cplus_print_vtable): Don't return value from void
3023 function.
3024 * ada-lang.c (re_set_catch_assert): Ditto.
3025
da51c347
DE
30262013-01-09 Doug Evans <dje@google.com>
3027
3028 * symfile.h (quick_symbol_functions): Delete member
3029 pre_expand_symtabs_matching. All uses removed.
3030 * dwarf2read.c (dw2_lookup_symbol): Implement.
3031 (dw2_do_expand_symtabs_matching): Delete.
3032 (dw2_pre_expand_symtabs_matching): Delete.
3033 (struct dw2_symtab_iterator): New type.
3034 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
3035 (dw2_expand_symtabs_for_function): Rewrite.
3036 (dwarf2_gdb_index_functions): Update.
3037 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
3038 (psym_functions): Update.
3039
b2259038
TT
30402013-01-09 Tom Tromey <tromey@redhat.com>
3041
3042 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
3043 * configure: Rebuild.
3044 * configure.ac: Add somread.o to the build if BFD has SOM
3045 support.
3046 * somread.c: Include som/aout.h, not syms.h.
3047 (som_symtab_read): Use som_external_symbol_dictionary_record.
3048 Unpack records manually.
3049 (_initialize_somread): Declare.
3050
bdad4180
MF
30512012-01-08 Mike Frysinger <vapier@gentoo.org>
3052
3053 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
3054 Cast return_address to 64bits.
3055
03cdf680
HZ
30562013-01-08 Hui Zhu <hui_zhu@mentor.com>
3057
3058 * printcmd.c: Remove define of function output_command.
3059 * tracepoint.c: Remove extern of function output_command.
3060 * valprint.h: (output_command): New extern.
3061
8a808554
TT
30622013-01-07 Tom Tromey <tromey@redhat.com>
3063
3064 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
3065 Remove.
3066 (objc_language_defn): Use c_printchar, c_printstr,
3067 c_emit_char.
3068
e93a8774
TT
30692013-01-07 Tom Tromey <tromey@redhat.com>
3070
3071 PR cli/7719:
3072 * NEWS: Update.
3073 * ada-valprint.c (printstr, print_field_values): Remove
3074 "inspect_it" code.
3075 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
3076 code.
3077 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
3078 code.
3079 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
3080 * main.c (captured_main): Remove "epoch" argument.
3081 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
3082 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
3083 * p-valprint.c (pascal_object_print_value_fields): Remove
3084 "inspect_it" code.
3085 * printcmd.c (print_command_1): Remove 'inspect' argument.
3086 (print_command, call_command): Update.
3087 (inspect_command): Remove.
3088 (_initialize_printcmd): Make "inspect" an alias for "print".
3089 * top.c (epoch_interface): Remove.
3090 * top.h (epoch_interface): Remove.
3091 * valprint.c (user_print_options): Update.
3092 (print_converted_chars_to_obstack): Remove "inspect_it" code.
3093 * valprint.h (struct value_print_options) <inspect_it>: Remove
3094 field.
3095
30962013-01-04 Tom Tromey <tromey@redhat.com>
3097
3098 * valprint.h (read_string): Add 'extern'.
3099
b967eb24
JB
31002013-01-07 Joel Brobecker <brobecker@adacore.com>
3101
3102 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
3103 used to decide whether to define darwin_read_dyld_info or not.
3104
78a8b30e
PM
31052013-01-03 Pierre Muller <muller@sourceware.org>
3106
3107 * main.c (relocate_gdb_directory): Avoid calling stat function
3108 if DIR is empty.
3109
50da2f25
YQ
31102013-01-03 Yao Qi <yao@codesourcery.com>
3111
3112 * psymtab.c (fixup_psymbol_section): Update declaration.
3113 (fixup_psymbol_section): Remove code returning value.
3114
e7e8980f
YQ
31152013-01-03 Yao Qi <yao@codesourcery.com>
3116
3117 * symtab.h: Remove some out of date comments.
3118 (enum exception_event_kind): Move it ...
3119 * breakpoint.c: ... here.
3120
569283d4
MF
31212013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
3122
9f9d9a96 3123 PR gdb/14405
569283d4
MF
3124 * darwin-nat.c (darwin_read_dyld_info): Only build if
3125 TASK_DYLD_INFO_COUNT is defined.
3126 (darwin_xfer_partial): Call darwin_read_dyld_info only if
3127 TASK_DYLD_INFO_COUNT is defined.
3128
2e36fbea
TT
31292013-01-02 Tom Tromey <tromey@redhat.com>
3130
3131 * symfile.h (struct ecoff_debug_hack): Remove.
3132 * objfiles.c: Don't include mdebugread.h.
3133
4f05add4
TT
31342013-01-02 Tom Tromey <tromey@redhat.com>
3135
3136 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
3137 * configure.ac: Check for Mach-O support in BFD. Update
3138 CONFIG_OBS.
3139 * configure: Rebuild.
3140
def63ff0
TT
31412013-01-02 Tom Tromey <tromey@redhat.com>
3142
3143 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
3144 * configure.ac: Use GDB_AC_CHECK_BFD.
3145 * configure: Rebuild.
3146
60c5dd93
MK
31472013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
3148
3149 * MAINTAINERS: Update my email.
3150
6e58437e
JB
31512013-01-01 Joel Brobecker <brobecker@adacore.com>
3152
3153 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
3154
627fe805
JB
31552013-01-01 Joel Brobecker <brobecker@adacore.com>
3156
3157 * rs6000-nat.c (bss_data_overlap): New function.
3158 (vmap_symtab): Use it to adjust the .bss section's offset.
3159
28e7fd62
JB
31602013-01-01 Joel Brobecker <brobecker@adacore.com>
3161
3162 Update year range in copyright notice of all files.
3163
e93a8774 31642013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
3165
3166 * top.c (print_gdb_version): Update copyright year.
3167
72b20e9c 3168For older changes see ChangeLog-2012.
c906108c
SS
3169\f
3170Local Variables:
3171mode: change-log
3172left-margin: 8
3173fill-column: 74
3174version-control: never
57da7796 3175coding: utf-8
c906108c 3176End:
This page took 1.597032 seconds and 4 git commands to generate.